Skip to main content
POST
/
revenue
/
bulk
Create Bulk Revenues
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/revenue/bulk \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "revenues": [
    {
      "title": "<string>",
      "amount": 123,
      "currency": "<string>",
      "source": "<string>",
      "transactionDate": "2023-11-07T05:31:56Z",
      "artist": "<string>",
      "asset": "<string>",
      "product": "<string>",
      "splits": [
        {}
      ],
      "metadata": {},
      "memo": "<string>"
    }
  ]
}'
{
  "message": "Bulk revenue creation completed",
  "createdRevenues": [
    "Revenue One",
    "Revenue Two"
  ],
  "processedCount": 3,
  "totalAmount": 7500.25,
  "errors": [
    "Invalid currency for Revenue Three"
  ]
}
Create Bulk Revenues Description:
The /revenue/bulk endpoint allows creation of multiple revenue records simultaneously.
Method:
POST
Request Payload:
ParameterTypeDescription
revenuesarrayArray of revenue objects

Authentication

This endpoint requires authentication. Include your bearer token in the Authorization header.

Request Body

Request Schema

FieldTypeRequiredDescription
revenuesarray

Responses

✅ 201 - Created with possible errors

⚠️ 401 - Unauthorized

❌ 500 - Internal Server Error

Tags

Revenue

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Body

application/json
revenues
object[]
required

Response

Created with possible errors

message
string
createdRevenues
string[]
processedCount
integer
totalAmount
number
errors
string[]
I