curl --request DELETE \
--url https://api.royalti.io/payment/{id} \
--header 'Authorization: Bearer <token>'{
"message": "Payment deleted successfully."
}Delete Payment
curl --request DELETE \
--url https://api.royalti.io/payment/{id} \
--header 'Authorization: Bearer <token>'{
"message": "Payment deleted successfully."
}/payment/{id} endpoint deletes a specific payment.
Method:DELETE
Path Parameter:
| Parameter | Type | Description |
|---|---|---|
| id | string | The unique identifier of the payment |
const response = await fetch('https://api.royalti.io/payment/example-id', {
method: 'DELETE',
headers: {
'Authorization': `Bearer ${token}`,
},
});
const data = await response.json();
console.log(data);