Delete Bulk Payments
Description:
The /payment/bulk/delete
endpoint allows deletion of multiple payments simultaneously.
Method:
POST
Request Payload:
Parameter | Type | Description |
---|---|---|
paymentIds | array | Array of payment IDs to delete |
curl --request POST \
--url https://server26-dot-royalti-project.uc.r.appspot.com/payment/bulk/delete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"paymentIds": [
"<string>"
]
}'
{
"message": "Payments deleted successfully",
"deletedCount": 5
}
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/bulk/delete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"paymentIds": [
"<string>"
]
}'
{
"message": "Payments deleted successfully",
"deletedCount": 5
}