API referencePayments
Refund a payment
Sends money back to the payer. Omit the amount to refund everything not already refunded. The Gladys fee is not returned.
Choose a TEST app to send requests from the playground.
post
/payments/{reference}/refundsSends money back to the payer. Omit the amount to refund everything not already refunded. The Gladys fee is not returned.
BearerAuthheader
AuthorizationBearer <token>An access token from POST /oauth/token: client_credentials for your own app, or authorization_code for a user who connected it.
reference*stringPayment reference
Idempotency-Key?stringOne value per action, resent unchanged on every retry. Will become required (400 IDEMPOTENCY_KEY_REQUIRED without it)
Amount and reason
application/json- body
amount?stringmetadata?stringreason?stringCreated
application/json- response
data?error?message?stringmeta?success?booleancurl -X POST "https://example.com/payments/string/refunds" \ -H "Content-Type: application/json" \ -d '{}'{ "error": { "code": "string", "details": { "property1": "string", "property2": "string" }, "message": "string" }, "message": "string", "meta": { "pagination": { "next_cursor": "string", "page": 0, "per_page": 0, "total_items": 0, "total_pages": 0 } }, "success": true, "data": { "amount": "1500.00", "created_at": "string", "currency": "string", "environment": "LIVE", "metadata": "string", "payment_reference": "string", "reason": "string", "reference": "string" }}