Skip to main content
POST
/
revenue
/
bulk
/
delete
Delete Bulk Revenues
curl --request POST \
  --url https://api.royalti.io/revenue/bulk/delete \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "ids": [
    "<string>"
  ]
}
'
{
  "message": "Revenues deleted successfully",
  "deletedCount": 5,
  "totalAmount": 12500.75
}
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

Delete Bulk Revenues Description:
The /revenue/bulk/delete endpoint allows deletion of multiple revenue records simultaneously.
Method:
POST
Request Payload:
ParameterTypeDescription
revenueIdsarrayArray of revenue IDs to delete

Code Examples

const response = await fetch('https://api.royalti.io/revenue/bulk/delete', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "ids": [
      {}
    ]
  })
});

const data = await response.json();
console.log(data);

Authorizations

Authorization
string
header
required

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

Body

application/json
ids
string[]
required

Array of revenue IDs to delete

Response

Success

message
string
deletedCount
integer
totalAmount
number