DELETE
/
api
/
withdrawals
Delete multiple withdrawals
curl --request DELETE \
  --url http://localhost:3000/api/withdrawals \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "ids": [
    "<string>"
  ]
}
'
{
  "success": true,
  "message": "<string>",
  "data": {
    "deletedCount": 123
  }
}
Bulk delete emits withdrawal:updated with action deleted and payload { ids } (no per-document withdrawalNumber in that payload).

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
ids
string[]
required
Minimum array length: 1

Response

Withdrawals deleted

success
boolean
Example:

true

message
string
data
object