Refunds

Base URL: https://api.aikloop.example/v3

Send your secret key as a Bearer token in the Authorization header: Authorization: Bearer sk_live_... (or sk_test_... in test mode).

POST /refunds

Refund all or part of a payment.

Request body: form-encoded (application/x-www-form-urlencoded).

FieldTypeDescription
payment_idstringRequired. The payment to refund, for example pay_123.
amount_minorintegerOptional. Partial refund amount in minor units. Leave it out to refund the full amount.
HeaderDescription
Idempotency-KeyRequired.