Bancoagrícola Logo
RefundsTokenization

Country:

POST

/payments/{paymentId}/refund

Refund Payment

Process a refund for an existing payment

URL Parameters

paymentId

string
required

Unique identifier for the payment to refund

example

amount

number

Refund amount in cents (optional for full refund)

example

reason

string
required

Reason for refund

example

Response Examples

200

Refund processed successfully

400

Invalid refund request

500

Internal server error

Language

Login required to test API

Code Examples

cURL

curl -X POST "https://api.akua.la/payments/pay_1234567890/refund" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "amount": 500,
  "reason": "requested_by_customer"
}''