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"
  ]
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

201
application/json

Created with possible errors

The response is of type object.