> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fintoc.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Objeto Refund

Un objeto `Refund` representa una transacción de reembolso dentro del sistema de pagos de Fintoc.

```json theme={null}
{
  "id": "re_3MjTCxEhuqCR3lNz1NgprEoI",
  "object": "refund",
  "amount": 100,
  "created_at": "2021-10-15T15:23:11.474Z",
  "currency": "clp",
  "metadata": {},
  "mode": "live",
  "resource_id": "pi_3MjTCxEhuqCR3lNz1FLrtTeH",
  "resource_type": "payment_intent",
  "status": "succeeded",
  "updated_at": "2021-11-15T12:23:11.474Z"
}
```

| Atributo        | Tipo      | Descripción                                                                                                                                                                                           |
| :-------------- | :-------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `id`            | `string`  | Identificador único del objeto Refund.                                                                                                                                                                |
| `object`        | `string`  | String que representa el tipo de objeto. Su valor para los reembolsos siempre corresponderá a `refund`.                                                                                               |
| `amount`        | `integer` | Monto a reembolsar, representado como un entero. Este valor siempre debe ser mayor que 0 y menor o igual al monto del PaymentIntent correspondiente. Por defecto es el monto total del PaymentIntent. |
| `created_at`    | `string`  | Fecha de creación del Refund, usando formato ISO 8601.                                                                                                                                                |
| `currency`      | `string`  | Código de moneda ISO 4217. Por ahora soporta `CLP` y `MXN`.                                                                                                                                           |
| `metadata`      | `hash`    | Conjunto de pares [clave-valor](/es/v2023-11-15/reference/fintoc-api/metadata) para almacenar información adicional estructurada sobre el objeto.                                                     |
| `mode`          | `string`  | Indica si el Refund está en modo `live` o `test` (sandbox). Depende del modo del objeto original.                                                                                                     |
| `resource_id`   | `string`  | Referencia el ID del `PaymentIntent` a reembolsar.                                                                                                                                                    |
| `resource_type` | `string`  | Puede tomar un único valor posible: `PaymentIntent`.                                                                                                                                                  |
| `status`        | `string`  | Estado del Refund. Puede ser `created`, `in_progress`, `succeeded`, `failed` o `canceled`.                                                                                                            |
| `updated_at`    | `string`  | Fecha de última actualización del objeto Refund, usando formato ISO 8601.                                                                                                                             |

## Estados del Refund

| Estado        | Descripción                                                                                                |
| :------------ | :--------------------------------------------------------------------------------------------------------- |
| `created`     | El reembolso fue creado y comenzará a procesarse a las 18:00 del día hábil más cercano.                    |
| `in_progress` | El reembolso se está procesando y debería llegar a la cuenta bancaria de tu cliente en 1 o 2 días hábiles. |
| `succeeded`   | El reembolso fue transferido exitosamente a la cuenta de tu cliente.                                       |
| `failed`      | Ocurrió un error al procesar el reembolso.                                                                 |
| `canceled`    | El comercio solicitó cancelar un reembolso creado.                                                         |
