Skip to main content
POST
/
payment
/
bulk
/
delete
Delete Bulk Payments
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
}
Delete Bulk Payments Description:
The /payment/bulk/delete endpoint allows deletion of multiple payments simultaneously.
Method:
POST
Request Payload:
ParameterTypeDescription
paymentIdsarrayArray of payment IDs to delete

Authentication

This endpoint requires authentication. Include your bearer token in the Authorization header.

Request Body

Request Schema

FieldTypeRequiredDescription
paymentIdsarrayArray of payment IDs to delete

Responses

✅ 200 - Success

⚠️ 401 - Unauthorized

❌ 500 - Internal Server Error

Tags

Payment

Authorizations

Authorization
string
header
required

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

Body

application/json
paymentIds
string[]
required

Array of payment IDs to delete

Response

Success

message
string
deletedCount
integer
I