Skip to main content
DELETE
/
payment-request
/
{id}
Delete Payment Request
curl --request DELETE \
  --url https://api.royalti.io/payment-request/{id} \
  --header 'Authorization: Bearer <token>'
{
  "message": "Payment request deleted successfully."
}
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

Delete Payment Request Description:
The /payment-request/{id} endpoint deletes a specific payment request.
Method:
DELETE
Path Parameter:
ParameterTypeDescription
idstringThe unique identifier of the payment request

Code Examples

const response = await fetch('https://api.royalti.io/payment-request/example-id', {
  method: 'DELETE',
  headers: {
    'Authorization': `Bearer ${token}`,
  },
});

const data = await response.json();
console.log(data);

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Path Parameters

id
string
required

Payment Request ID

Response

Success

message
string