Saltar al contenido principal
POST
Refund a payment

Autorizaciones

x-api-key
string
header
requerido

Parámetros de ruta

id
string<uuid>
requerido

The unique identifier of the payment method

paymentId
string<uuid>
requerido

The unique identifier of the payment to refund

Cuerpo

application/json

Request body for refunding a payment. Refunds are always for the full charge amount.

reason
string

Reason for the refund. Useful for accounting and auditing purposes.

Ejemplo:

"Customer requested cancellation"

Respuesta

Payment refunded successfully

Response after refunding a payment

id
string<uuid>
requerido

Unique identifier of the payment

Ejemplo:

"11111111-2222-3333-4444-555555555555"

status
enum<string>
requerido

Payment status after refund

Opciones disponibles:
REFUNDED
amount
number<decimal>
requerido

The refunded amount

currency
string
requerido
Ejemplo:

"MXN"

refund
object
requerido

What the refund returned to the customer and what it cost the business.

externalId
string | null

The idempotency key supplied when the payment was created, echoed back so you can map this payment id to your own order reference. Null when none was supplied. Not to be confused with the payment method externalId, which identifies the saved card.

Ejemplo:

"invoice-2025-01-8842"