curl --request POST \
--url https://api.royalti.io/payment/bulk/delete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
"<string>"
]
}
'{
"message": "Payments deleted successfully",
"deletedCount": 5
}Delete Bulk Payments
curl --request POST \
--url https://api.royalti.io/payment/bulk/delete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
"<string>"
]
}
'{
"message": "Payments deleted successfully",
"deletedCount": 5
}/payment/bulk/delete endpoint allows deletion of multiple payments simultaneously.
Method:POST
Request Payload:
| Parameter | Type | Description |
|---|---|---|
| ids | array | Array of payment IDs to delete |
const response = await fetch('https://api.royalti.io/payment/bulk/delete', {
method: 'POST',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
"ids": [
{}
]
})
});
const data = await response.json();
console.log(data);