The
/revenue/{id}
endpoint allows updating details of a specific revenue record.
Method:PUT
Path Parameter:
Parameter | Type | Description |
---|---|---|
id | string | The unique identifier of the revenue record |
Parameter | Type | Description |
---|---|---|
title | string | Updated title/description |
amount | number | Updated revenue amount |
currency | string | Updated currency |
source | string | Updated revenue source |
transactionDate | string | Updated transaction date |
splits | array | Updated split information |
metadata | object | Updated metadata |
memo | string | Updated notes |
Authentication
This endpoint requires authentication. Include your bearer token in the Authorization header.Path Parameters
Parameter | Type | In | Required | Description |
---|---|---|---|---|
id | string | path | ✅ | Revenue ID |
Request Body
Request Schema
Field | Type | Required | Description |
---|---|---|---|
title | string | ❌ | |
amount | number | ❌ | |
currency | string | ❌ | |
source | string | ❌ | |
transactionDate | string | ❌ | |
splits | array | ❌ | |
metadata | object | ❌ | |
memo | string | ❌ |
Responses
✅ 200 - Success
⚠️ 401 - Unauthorized
⚠️ 404 - Not Found
❌ 500 - Internal Server Error
Tags
Revenue
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Path Parameters
Revenue ID
Body
application/json