curl --request DELETE \
--url https://api.royalti.io/split/{id} \
--header 'Authorization: Bearer <token>'{
"message": "Split was deleted successfully."
}/split/
curl --request DELETE \
--url https://api.royalti.io/split/{id} \
--header 'Authorization: Bearer <token>'{
"message": "Split was deleted successfully."
}/split/{splitId} endpoint deletes the split with the specified splitId from the system.
Method:DELETE
const response = await fetch('https://api.royalti.io/split/example-id', {
method: 'DELETE',
headers: {
'Authorization': `Bearer ${token}`,
},
});
const data = await response.json();
console.log(data);