Skip to main content
POST
/
api
/
public
/
v1
/
payments
/
void
Void payment
curl --request POST \
  --url https://app.tagadapay.com/api/public/v1/payments/void \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "paymentId": "pay_123xyz"
}
'
{
  "id": "pay_123xyz",
  "status": "failed",
  "subStatus": "voided",
  "amount": 2999,
  "currency": "USD",
  "voidedAt": "2024-03-20T10:30:00Z"
}

Authorizations

Authorization
string
header
required

Enter your API key as: Bearer your-api-key

Body

application/json
paymentId
string
required

Response

Successful response