Skip to main content
POST
/
split
/
bulk
/
delete
Bulk delete Splits
curl --request POST \
  --url https://api.royalti.io/split/bulk/delete \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "ids": [
    "a8787d14-1149-4b10-9e29-7ef054de8c3f",
    "b9898e25-2250-5c21-af3a-8fg165ef9d4g",
    "c0a0af36-3361-6d32-bg4b-9gh276fg0e5h"
  ]
}
'
{
  "message": "Split configurations deleted successfully",
  "deletedCount": 3,
  "errors": []
}
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

Bulk Delete Revenue Split Configurations The Bulk Delete Revenue Split Configurations endpoint (/split/bulk/delete) allows users to delete multiple revenue split configurations in bulk. Method:
POST
Request Payload: The request payload should be a JSON object with an array of revenue split configuration IDs (ids) to be deleted.
ParameterTypeRequiredDescription
idsstring[]YesAn array of revenue split configuration IDs (UUIDs) to be deleted
This request deletes multiple revenue split configurations with the specified UUIDs. Ensure you provide the necessary authentication token in the request header and the IDs of the configurations you want to delete in the request payload.

Code Examples

const response = await fetch('https://api.royalti.io/split/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<uuid>[]
required

An array of revenue split configuration IDs (UUIDs) to be deleted

Response

Split configurations deleted successfully

message
string
deletedCount
integer
errors
string[]