Skip to main content
POST
/
payment-request
/
bulk
/
delete
Delete Bulk Payment Requests
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/payment-request/bulk/delete \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "ids": [
    "<string>"
  ]
}'
{
  "message": "Bulk payment requests deleted successfully.",
  "deletedCount": 3
}
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Code Examples

const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/payment-request/bulk/delete', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "ids": [
      {}
    ]
  })
});

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

Authorizations

Authorization
string
header
required

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

Body

application/json
ids
string[]
required

Array of payment request IDs to delete

Response

Success

message
string
deletedCount
integer