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