curl --request GET \
--url https://api.royalti.io/revenue/{id} \
--header 'Authorization: Bearer <token>'{
"message": "Revenue retrieved successfully",
"revenue": {
"id": "revenue-uuid-123",
"title": "Streaming Revenue - January 2024",
"amount": 2500.5,
"currency": "USD",
"source": "streaming",
"transactionDate": "2024-01-15T10:30:00Z",
"memo": "Monthly streaming revenue distribution",
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z"
}
}Get Revenue
curl --request GET \
--url https://api.royalti.io/revenue/{id} \
--header 'Authorization: Bearer <token>'{
"message": "Revenue retrieved successfully",
"revenue": {
"id": "revenue-uuid-123",
"title": "Streaming Revenue - January 2024",
"amount": 2500.5,
"currency": "USD",
"source": "streaming",
"transactionDate": "2024-01-15T10:30:00Z",
"memo": "Monthly streaming revenue distribution",
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z"
}
}/revenue/{id} endpoint retrieves detailed information about a specific revenue record.
Method:GET
Path Parameter:
| Parameter | Type | Description |
|---|---|---|
| id | string | The unique identifier of the revenue record |
| Parameter | Type | Description |
|---|---|---|
| include (Optional) | string | Additional data to include (Artist, Asset, Product, Splits) |
const response = await fetch('https://api.royalti.io/revenue/example-id', {
method: 'GET',
headers: {
'Authorization': `Bearer ${token}`,
},
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Revenue ID
Additional data to include (Artist, Asset, Product, Splits)