Docs
Español
Español
  • SimpleFi
    • Pagos en tienda física
    • Pagos en tienda online
    • Tokens disponibles
  • Gestión del comercio
    • Autenticación
    • Configuración del negocio
    • Solicitudes de pago
    • Notificaciones de estado
    • QR estático
  • Checkout
    • 1. Declaración del monto
    • 2. Selección de token
    • 3. Pago
    • 4. Confirmación del pago
  • Referencia de la API
    • Autenticación
    • Errores
    • Creación de solicitud de pago
    • Consulta del estado de un pago
    • Cancelar una solicitud de pago
    • Devolver un pago
    • Webhook de notificaciones
    • Vincular comercio a red
  • Detalles de implementación según método
    • Checkout Redirect
    • QR Dinámico
Powered by GitBook
On this page
  1. Referencia de la API

Devolver un pago

PreviousCancelar una solicitud de pagoNextWebhook de notificaciones

Last updated 10 months ago

Para marcar un pago como devuelto:

La devolución efectiva del dinero será responsabilidad del comercio, ya que SimpleFi no tiene acceso a los fondos.

Refund Payment Request

put
Authorizations
Path parameters
payment_request_idanyRequired
Responses
200
Successful Response
application/json
422
Validation Error
application/json
put
PUT /payment_requests/{payment_request_id}/refund HTTP/1.1
Host: 
Accept: */*
{
  "id": "text",
  "order_id": 1,
  "ars_amount": 1,
  "ars_paid": 1,
  "amount": 1,
  "amount_paid": 1,
  "currency": "ARS",
  "items": [
    {
      "id": "text",
      "quantity": 1,
      "name": "text",
      "price": 1,
      "currency": "ARS"
    }
  ],
  "usd_amount": 1,
  "reference": {},
  "memo": "text",
  "notification_url": "text",
  "status": "pending",
  "status_detail": "not_paid",
  "approved_at": "2025-05-25T19:18:04.020Z",
  "expiration_time": "2025-05-25T19:18:04.020Z",
  "delivered": true,
  "transactions": [
    {
      "id": "text",
      "price_details": {
        "currency": "ARS",
        "currency_amount": 1,
        "currency_final_amount": 1,
        "base_amount": 1,
        "final_amount": 1,
        "paid_amount": 1,
        "discount_rate": 1,
        "rate": 1
      },
      "coin": "BTC",
      "chain_id": 1,
      "address": "text",
      "status": "not_paid",
      "payment_request_id": "text",
      "memo": "text",
      "additional_info": {},
      "payments": [
        {
          "hash": "text",
          "block": 1,
          "amount": 1,
          "paid_by": "text",
          "paid_at": "2025-05-25T19:18:04.020Z",
          "linked_at": "2025-05-25T19:18:04.020Z"
        }
      ],
      "date_created": "2025-05-25T19:18:04.020Z",
      "last_modified": "2025-05-25T19:18:04.020Z"
    }
  ],
  "card_payment": {
    "provider": "stripe",
    "session_url": "text",
    "price_details": {
      "currency": "ARS",
      "amount": 1,
      "final_amount": 1,
      "usd_final_amount": 1,
      "paid_amount": 1,
      "discount_rate": 1,
      "rate": 1
    },
    "status": "not_paid",
    "date_created": "2025-05-25T19:18:04.020Z",
    "last_modified": "2025-05-25T19:18:04.020Z"
  },
  "payments": [
    {
      "hash": "text",
      "block": 1,
      "amount": 1,
      "paid_by": "text",
      "paid_at": "2025-05-25T19:18:04.020Z",
      "linked_at": "2025-05-25T19:18:04.020Z",
      "coin": "BTC"
    }
  ],
  "merchant_id": "text",
  "date_created": "2025-05-25T19:18:04.020Z",
  "last_modified": "2025-05-25T19:18:04.020Z",
  "checkout_url": "text",
  "conflict": true
}