Delete Bulk Payment Requests
Description:
The /payment-request/bulk/delete
endpoint allows deletion of multiple payment requests simultaneously.
Method:
POST
Request Payload:
Parameter | Type | Description |
---|---|---|
paymentRequestIds | array | Array of payment request IDs to delete |
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
}
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Success
The response is of type object
.
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
}