cURL
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" }
Void an authorized payment transaction. This cancels a previously authorized payment before it has been captured.
Important notes:
Common error codes:
Enter your API key as: Bearer your-api-key
Bearer your-api-key
Successful response