Features
Refunds
Tokenization
Recurring Payments
POST/v1/payments/{id}/refund

Reembolsar

Este endpoint permite hacer una devolución total o parcial de un pago cuya captura este en proceso o completa. Se debe incluir un monto de forma obligatoria.

id

string
required

El id del pago sobre el que se quiere realizar la devolución

example

Request Body

1 parameter

amount

object

Monto a devolver, incluyendo valor y moneda.

Request Preview
{
  "amount": {}
}

Responses

200

200

{
  "payment": {
    "id": "example_string",
    "transaction": {
      "amount": 123,
      "authorization_code": "example_string",
      "id": "example_string",
      "status": "example_string",
      "status_detail": "example_string",
      "network_data": {
        "approval_code": "example_string",
        "settlement_date": "example_string",
        "system_trace_audit_number": "example_string",
        "transmission_date_time": "example_string"
      },
      "type": "example_string"
    }
  }
}
Log in to use your API keys with Try It!
REQUEST
123456