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": []
}Bulk Delete Revenue Split Configurations
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": []
}/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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| ids | string[] | Yes | An 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.
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);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
An array of revenue split configuration IDs (UUIDs) to be deleted