openapi: 3.1.0
info:
  title: CachicamoCash API
  version: 1.0.0
  description: |-
    API REST de CachicamoCash para validar y conciliar pagos, cobrar con bancos de Venezuela y con pasarelas internacionales, y recibir avisos firmados de lo que ocurre en la cuenta. Todo lo que el panel hace con pagos, links, checkout, clientes y suscripciones se puede automatizar con esta API.

    ## Qué cubre la API

    - **Pagos y conciliaciones**: validar un pago móvil contra el banco, leer y exportar los pagos, conciliarlos con una factura, un recibo u otra referencia y revertir la conciliación.
    - **Links de pago** con pasarelas de Venezuela e internacionales, con reparto del cobro entre aliados donde la pasarela lo permite.
    - **Checkout**: carts con una URL de pago que el comprador abre sin cuenta, con productos de catálogo o líneas propias, varias conexiones y métodos por cart, sesiones de pago y decisión sobre los pagos fuera de la oferta.
    - **Débito inmediato y C2P** con los bancos que los ofrecen.
    - **Clientes, tarjetas guardadas y cobros directos**: el comprador guarda su tarjeta en una página segura del proveedor y el comercio cobra después sin que esté delante.
    - **Suscripciones de clientes** con cobro periódico sobre una tarjeta guardada o con el proveedor.
    - **Reembolsos y disputas**: reembolso total o parcial al medio con que pagó el comprador y avisos de las disputas que el proveedor abre.
    - **Consulta**: conexiones, proveedores, uso del plan, tasas del día, trazas de cada llamada al banco o la pasarela y entregas de notificaciones.

    Qué conexión admite cada operación está en la tabla «Qué conexión sirve para qué» y en el texto de cada operación y de cada tag. Una conexión sólo puede hacer lo que su proveedor admite.

    ## URL base y formato

    La URL base es https://api.cachicamo.cash y todas las rutas empiezan por `/v1`. Se usa HTTPS y JSON en UTF-8 (`Content-Type: application/json`); las subidas de foto son `multipart/form-data` con el archivo en el campo `file` y las exportaciones devuelven CSV. Los identificadores son UUID. Los métodos son `GET` para leer, `POST` para crear o ejecutar, `PUT` para reemplazar y `DELETE` para borrar.

    ## Autenticación

    Cada petición lleva la API key en la cabecera `Authorization: Bearer ccash_live_...`; nunca en la URL ni en el cuerpo.

    - **Cómo crearla**: en el panel, **Desarrolladores → API keys → Crear API key**. Se le pone un nombre y se marcan sólo los permisos que la integración necesita; la clave completa se muestra una sola vez. Toda clave empieza por `ccash_live_` y los primeros 16 caracteres (el prefijo) la identifican en la lista del panel y en la bitácora.
    - **De quién es**: una API key es de la persona que la crea. Opera en la cuenta de esa persona; si la persona pertenece a otras cuentas, la cabecera opcional `X-Account-UUID` elige en cuál. Una cuenta a la que no pertenece responde `404`.
    - **Permisos efectivos**: son la intersección de los permisos de la clave y los del rol de la persona en esa cuenta. Una ruta sin el permiso responde `403` con `api_key_scope_missing`; una clave vencida, revocada o inexistente responde `401` con `api_key_invalid`. Revocar una clave es inmediato.
    - **Alcance**: una API key lee las conexiones y sube o quita el QR de cobro de una conexión, pero no crea ni cambia conexiones, credenciales, notificaciones ni el plan: eso se hace en el panel. Para una integración que sólo consulta, marca únicamente permisos terminados en `:read`.
    - **Ambientes**: no hay dos APIs. Las conexiones de pruebas (`SANDBOX`) y las reales (`PRODUCTION`) viven en la misma URL; el `environment` de cada conexión dice cuál es. Un cobro, un débito o un reembolso en una conexión `PRODUCTION` mueve dinero de verdad.

    Permisos por operación (cada operación nombra el suyo en `x-cash-scope`):

    | Permiso | Habilita |
    |---|---|
    | `payments:verify` | Validar un pago |
    | `payments:read`, `payments:read_all` | Leer, listar y exportar pagos, validaciones y trazas de un pago; con `payments:read` sólo los pagos que creó esa persona y con `payments:read_all` los de toda la cuenta |
    | `payments:refund` | Reembolsar un pago |
    | `reconciliations:read`, `reconciliations:create`, `reconciliations:revert` | Leer, crear y revertir conciliaciones |
    | `payment_links:read`, `payment_links:create` | Leer links y la tasa del día; crear y cancelar links |
    | `immediate_debits:read`, `immediate_debits:create` | Leer y crear débitos inmediatos, y confirmarlos |
    | `c2p_charges:read`, `c2p_charges:create` | Leer y crear cobros C2P |
    | `connections:read`, `connections:update` | Leer proveedores, conexiones y trazas; subir o quitar el QR de cobro |
    | `usage:read` | Leer el uso del plan |
    | `notifications:read`, `notifications:resend` | Leer entregas y tipos de evento; enviar pruebas y reenviar |
    | `products:read`, `products:create`, `products:update`, `products:delete` | Catálogo de productos y sus fotos |
    | `checkout_carts:read`, `checkout_carts:create`, `checkout_carts:update` | Carts, sesiones de pago y su revisión |
    | `customers:read`, `customers:create`, `customers:update`, `customers:delete` | Clientes y sus métodos guardados |
    | `saved_methods:create`, `saved_methods:delete` | Pedir que el cliente guarde su método y desvincularlo |
    | `provider_charges:read`, `provider_charges:create`, `provider_charges:resolve` | Leer cobros directos, crearlos (sensible: cobra sin el comprador delante) y cerrar uno en revisión |
    | `merchant_subscriptions:read`, `merchant_subscriptions:create`, `merchant_subscriptions:update` | Leer, crear y administrar suscripciones de clientes |

    ## Repetición segura con Idempotency-Key

    Las altas que cobran o crean algo admiten la cabecera `Idempotency-Key`: letras, números, guion y guion bajo, hasta 64 caracteres, con un valor único por operación (por ejemplo, el número de pedido). Es opcional en links, débitos inmediatos, cobros C2P, carts de checkout y suscripciones, y obligatoria en cobros directos y reembolsos.

    - Si la red falla y no se sabe si la operación se hizo, se repite la misma petición con la misma clave: con el mismo cuerpo devuelve el recurso ya creado, con la cabecera de respuesta `Idempotent-Replayed`, sin crear otro.
    - Con otro cuerpo responde `409` `idempotency_key_reused`; con un formato inválido, `400` `idempotency_key_invalid`; sin clave donde es obligatoria, `400` `idempotency_key_required`.
    - La clave se recuerda un tiempo limitado, de al menos un día. Pasado ese tiempo la misma clave crea una operación nueva.
    - Un débito inmediato o un C2P que no confirmó puede haberse cobrado igual: antes de cobrar de nuevo se consulta su estado; la repetición con la misma clave devuelve el cobro ya hecho.

    ## Paginación

    Toda lista crece por cursor, sin total ni páginas numeradas. Se pide con `limit` (el valor por defecto y el máximo están en el parámetro) y `cursor`. La respuesta es `{"items": [...], "next_cursor": "..."}`: se pasa `next_cursor` como `cursor` para la página siguiente hasta que sea `null`. El cursor es opaco y sólo vale con los mismos filtros con que se pidió.

    ## Fechas y zona horaria

    Las listas que crecen sin límite exigen `from` y `to` (`aaaa-mm-dd`, ambos inclusive). Son fechas del calendario de la zona horaria de la cuenta, no instantes en UTC: `2026-11-06` empieza y termina a medianoche de esa zona. Un rango demasiado amplio responde `400` `date_range_too_wide` y la falta de rango, `400` `date_range_required`. Los instantes (`created_at`, `paid_at`, `expires_at`) van en RFC 3339 con zona; las fechas de negocio (`payment_date`, `operation_date`) van como `aaaa-mm-dd`.

    ## Montos y monedas

    - **Los montos son cadenas decimales con punto, nunca números**: `"1250.00"`. Al enviar se admiten hasta dos decimales (enteros en monedas sin decimales); las respuestas los devuelven con cuatro, `"1250.0000"`. Las tasas de cambio son cadenas con ocho decimales. Se opera con una librería decimal, nunca con `float`.
    - **Monedas**: códigos ISO 4217 del catálogo de la cuenta (`ARS`, `BOB`, `BRL`, `CLP`, `COP`, `CRC`, `CUP`, `DOP`, `EUR`, `GTQ`, `HNL`, `MXN`, `NIO`, `PAB`, `PEN`, `PYG`, `USD`, `UYU` y `VES`). El precio de un link o de una línea puede ir en cualquiera; **el cobro se hace siempre en la moneda de la conexión** y, si es otra, el monto se convierte al crear y queda fijo con su tasa. La tabla «Moneda de cobro» dice en cuál cobra cada conexión.

    ## Errores

    Toda respuesta de error trae `message` (localizado según la petición) y `error_key` (estable, no cambia con el idioma); a veces `details_error` amplía el motivo. Un `400` de validación puede traer en cambio la lista de campos inválidos, cada uno con `field`, `rule` y `message`. Se programa contra `error_key`, nunca contra el texto de `message`, y no se muestra `message` al comprador.

    | Código | Cuándo | Qué hacer |
    |---|---|---|
    | `400` | Dato inválido, o una referencia dentro del cuerpo a algo que no existe en la cuenta (por ejemplo un `customer_uuid` desconocido) | Corregir el dato; repetir igual no sirve |
    | `401` | `api_key_invalid`: clave ausente, inválida, vencida o revocada | Usar otra clave |
    | `402` | La suscripción de la cuenta no permite la operación o el servicio está suspendido (`subscription_required`, `subscription_links_suspended`, `subscription_charges_suspended`, `subscription_reconciliation_suspended`) | El comercio regulariza su suscripción en el panel |
    | `403` | `api_key_scope_missing` (la clave no tiene el permiso), el rol de la persona no permite la operación o hay términos pendientes de aceptar | Crear una clave con el permiso o resolver el pendiente en el panel |
    | `404` | El recurso identificado en la ruta no existe en la cuenta, o la cuenta de `X-Account-UUID` no es una a la que pertenece la persona | Revisar el identificador |
    | `409` | Duplicado o conflicto de estado real: clave de repetición reusada, conexión inactiva, pago ya conciliado, versión desactualizada | Leer `error_key` y actuar según el caso |
    | `429` | `rate_limit_exceeded` (demasiadas peticiones) o un cupo de la cuenta o del plan agotado (`quota_limit_reached`, `plan_monthly_quota_reached`) | Con `rate_limit_exceeded`, esperar `Retry-After` segundos y reintentar. Con un cupo agotado no reintentar: el comercio escribe a soporte |
    | `503` | El banco, la pasarela o el servicio no pudo responder (`provider_unavailable`, `service_unavailable`, `exchange_rate_unavailable`, `spidi_rate_changeover`, `split_partner_unverifiable`) | Reintentar con espera creciente; en un cobro, consultar antes su estado |
    | `500` | Fallo del servidor, con un mensaje genérico | Consultar el recurso antes de repetir un cobro |

    La API no responde `422`: un dato inválido es siempre `400`. Un `503`, un `500` o un tiempo de espera agotado en un cobro **no** dicen que no se cobró; se consulta el recurso y el pago antes de volver a cobrar.

    ## Límites de ritmo

    La API limita las peticiones por API key en el tiempo. Al agotar el límite responde `429` con `error_key` `rate_limit_exceeded` y las cabeceras `Retry-After` (segundos que hay que esperar), `X-RateLimit-Limit`, `X-RateLimit-Remaining` y `X-RateLimit-Reset`. Se espera lo que indica `Retry-After`; no se reintenta en ráfaga. Aparte del ritmo hay cupos de la cuenta y del plan (pagos aceptados al mes, recursos que se crean, operaciones por ventana de tiempo): sus cifras son decisiones internas de la cuenta y no se publican; al agotarse responden `429` con `quota_limit_reached` o `plan_monthly_quota_reached` y reintentar no sirve.

    ## Notificaciones firmadas

    Cada conexión y cada cart de checkout puede avisar a un servidor del comercio de lo que ocurre (`payment.accepted`, `payment_link.paid`, `provider_charge.succeeded` y los demás de la sección **Notificaciones**, cuya lista vigente da `GET /v1/webhook-event-types`). El aviso llega como `POST` con el cuerpo crudo firmado con HMAC-SHA256 en `X-Cash-Signature`, junto con `X-Cash-Event-Id` (para descartar repetidos), `X-Cash-Delivery-Id`, `X-Cash-Event-Type` y `X-Cash-Timestamp`. La dirección debe ser HTTPS y se configura en el panel; el secreto de firma se muestra una sola vez. Cómo verificar la firma, qué hacer con los repetidos y cómo reenviar: sección **Notificaciones** de esta referencia y [Notificaciones](https://docs.cachicamo.cash/desarrolladores/notificaciones). Los avisos del checkout están en [Avisos del checkout](https://docs.cachicamo.cash/desarrolladores/avisos-del-checkout).

    ## Qué conexión sirve para qué

    Una conexión son los datos de una cuenta de un banco o de una pasarela. Cada proveedor admite unas operaciones y otras no; `Sí` es que la admite y `—` que no. El código entre comillas es el valor de `provider` en la API. Los bancos de Venezuela cobran con débito inmediato y C2P; las pasarelas, con links de pago. En Binance (cuenta personal) la referencia a validar son los últimos 6 dígitos del número de operación o el número completo; si dos operaciones terminan en los mismos dígitos la validación es ambigua (`reference_ambiguous`) y se repite con el número completo.

    **Bancos de Venezuela y Binance (cuenta personal): pagos que se validan**

    | Conexión | Validar pago móvil | Avisos del banco | Checkout | Débito inmediato | C2P |
    |---|---|---|---|---|---|
    | Bancaribe (`BANCARIBE_P2P`) | Sí | Sí | Sí | Sí | Sí |
    | Banco de Venezuela (`BDV_P2P`) | Sí | Sí | Sí | — | Sí |
    | Banco del Tesoro (`BT_P2P`) | Sí | — | Sí | — | — |
    | Banco Venezolano de Crédito (`BVC_P2P`) | Sí | — | Sí | Sí | Sí |
    | Binance (cuenta personal) (`BINANCE_PERSONAL`) | Sí | — | Sí | — | — |
    | BNC (`BNC_P2P`) | Sí | Sí | Sí | Sí | Sí |
    | Mercantil (`MERCANTIL_P2P`) | Sí | — | Sí | — | Sí |
    | R4 (`R4_P2P`) | Sí | Sí | Sí | Sí | Sí |

    **Pasarelas con links de pago**

    | Conexión | Links de pago | Checkout | Tarjetas guardadas y cobros directos | Suscripciones | Reembolsos | Avisos de disputas | Cuotas | Reparto |
    |---|---|---|---|---|---|---|---|---|
    | BDV Biopago (`BDV_BIOPAGO`) | Sí | Sí | — | — | — | — | — | — |
    | Binance Pay (comercio) (`BINANCE_PAY`) | Sí | Sí | — | — | Sí | — | — | — |
    | Mercado Pago (`MERCADO_PAGO`) | Sí | Sí | Sí | Sí | Sí | Sí | Sí | — |
    | PayPal (`PAYPAL`) | Sí | Sí | — | — | Sí | Sí | — | — |
    | Spidi (`SPIDI`) | Sí | Sí | — | — | — | — | — | Sí |
    | Stripe (`STRIPE`) | Sí | Sí | Sí | Sí | Sí | Sí | Sí | — |
    | WayuPay (`WAYU_PAY`) | Sí | Sí | — | — | — | — | — | — |

    La conexión además debe estar activa y tener cargados los datos que la operación pide: `capabilities` de cada conexión (`IMMEDIATE_DEBIT`, `C2P`, `CARD_TOKEN`) dice qué puede cobrar hoy con lo que tiene cargado, `checkout_methods` qué métodos ofrece en el checkout y `provider_capabilities` lo que su proveedor sabe hacer. `GET /v1/providers` entrega los campos y rangos que pide cada proveedor.

    ### Moneda de cobro

    Cada conexión cobra en una moneda. Un precio en otra moneda se convierte al crear el link o la sesión y queda fijo con su tasa. Las conexiones con moneda propia cobran en la que se fijó en su ajuste `currency` al crearlas, dentro de las que admite el proveedor.

    | Conexión (moneda de cobro) | Moneda de cobro | Monedas que admite |
    |---|---|---|
    | Bancaribe (`BANCARIBE_P2P`) | Bolívares (`VES`); un precio en otra moneda se convierte con la tasa del día | — |
    | Banco de Venezuela (`BDV_P2P`) | Bolívares (`VES`); un precio en otra moneda se convierte con la tasa del día | — |
    | Banco del Tesoro (`BT_P2P`) | Bolívares (`VES`); un precio en otra moneda se convierte con la tasa del día | — |
    | Banco Venezolano de Crédito (`BVC_P2P`) | Bolívares (`VES`); un precio en otra moneda se convierte con la tasa del día | — |
    | BDV Biopago (`BDV_BIOPAGO`) | Bolívares (`VES`); un precio en otra moneda se convierte con la tasa del día | — |
    | Binance (cuenta personal) (`BINANCE_PERSONAL`) | Dólares (`USD`), en stablecoins atadas al dólar | — |
    | Binance Pay (comercio) (`BINANCE_PAY`) | Dólares (`USD`), en stablecoins atadas al dólar | — |
    | BNC (`BNC_P2P`) | Bolívares (`VES`); un precio en otra moneda se convierte con la tasa del día | — |
    | Mercado Pago (`MERCADO_PAGO`) | La del ajuste `currency` de la conexión | `ARS`, `BRL`, `CLP`, `COP`, `MXN`, `PEN`, `UYU` |
    | Mercantil (`MERCANTIL_P2P`) | Bolívares (`VES`); un precio en otra moneda se convierte con la tasa del día | — |
    | PayPal (`PAYPAL`) | La del ajuste `currency` de la conexión | `BRL`, `EUR`, `MXN`, `USD` |
    | R4 (`R4_P2P`) | Bolívares (`VES`); un precio en otra moneda se convierte con la tasa del día | — |
    | Spidi (`SPIDI`) | Bolívares (`VES`); un precio en otra moneda se convierte con la tasa del día | — |
    | Stripe (`STRIPE`) | La del ajuste `currency` de la conexión | `ARS`, `BOB`, `BRL`, `CLP`, `COP`, `CRC`, `DOP`, `EUR`, `GTQ`, `HNL`, `MXN`, `NIO`, `PAB`, `PEN`, `PYG`, `USD`, `UYU` |
    | WayuPay (`WAYU_PAY`) | Bolívares (`VES`); un precio en otra moneda se convierte con la tasa del día | — |

    ## Dónde seguir

    - [Integrar por API](https://docs.cachicamo.cash/desarrolladores/integrar-por-api): primeros llamados, validar, conciliar, links, débito inmediato y C2P.
    - [API keys](https://docs.cachicamo.cash/desarrolladores/api-keys): crear, revocar y elegir permisos.
    - [Crear un checkout](https://docs.cachicamo.cash/desarrolladores/crear-checkout) y [Avisos del checkout](https://docs.cachicamo.cash/desarrolladores/avisos-del-checkout).
    - [Cobros con tarjeta guardada](https://docs.cachicamo.cash/desarrolladores/cobros-con-tarjeta): clientes, cobros directos, suscripciones y reembolsos.
    - [Notificaciones](https://docs.cachicamo.cash/desarrolladores/notificaciones): firma, repetidos y reenvío.
    - [Buenas prácticas](https://docs.cachicamo.cash/desarrolladores/buenas-practicas).
  x-description-en: |-
    REST API of CachicamoCash to verify and reconcile payments, charge with Venezuelan banks and international gateways, and receive signed notices of what happens in the account. Everything the dashboard does with payments, links, checkout, customers and subscriptions can be automated with this API.

    ## What the API covers

    - **Payments and reconciliations**: verify a mobile payment against the bank, read and export payments, reconcile them with an invoice, a receipt or another reference, and revert the reconciliation.
    - **Payment links** with Venezuelan and international gateways, with the charge split between partners where the gateway allows it.
    - **Checkout**: carts with a payment URL the buyer opens without an account, with catalog products or own lines, several connections and methods per cart, payment sessions and the decision on payments outside the offer.
    - **Immediate debit and C2P** with the banks that offer them.
    - **Customers, saved cards and direct charges**: the buyer saves a card on a secure provider page and the merchant charges later without the buyer present.
    - **Customer subscriptions** with periodic charges on a saved card or with the provider.
    - **Refunds and disputes**: full or partial refund to the means the buyer paid with, and notices of the disputes the provider opens.
    - **Reading**: connections, providers, plan usage, daily rates, traces of every call to the bank or gateway, and notification deliveries.

    Which connection supports each operation is in the table "Which connection serves for what" and in the text of every operation and tag. A connection can only do what its provider supports.

    ## Base URL and format

    The base URL is https://api.cachicamo.cash and every route starts with `/v1`. HTTPS and UTF-8 JSON are used (`Content-Type: application/json`); photo uploads are `multipart/form-data` with the file in the `file` field and exports return CSV. Identifiers are UUIDs. Methods are `GET` to read, `POST` to create or run, `PUT` to replace and `DELETE` to delete.

    ## Authentication

    Every request carries the API key in the `Authorization: Bearer ccash_live_...` header; never in the URL or the body.

    - **How to create it**: in the dashboard, **Developers → API keys → Create API key**. Give it a name and tick only the permissions the integration needs; the full key is shown once. Every key starts with `ccash_live_` and its first 16 characters (the prefix) identify it in the dashboard list and in the log.
    - **Whose it is**: an API key belongs to the person who creates it. It operates in that person's account; if the person belongs to other accounts, the optional `X-Account-UUID` header picks which one. An account the person does not belong to answers `404`.
    - **Effective permissions**: the intersection of the key permissions and the person's role permissions in that account. A route without the permission answers `403` with `api_key_scope_missing`; an expired, revoked or unknown key answers `401` with `api_key_invalid`. Revoking a key is immediate.
    - **Reach**: an API key reads connections and uploads or removes the payment QR of a connection, but it does not create or change connections, credentials, notifications or the plan: that is done in the dashboard. For a read-only integration, tick only permissions ending in `:read`.
    - **Environments**: there are not two APIs. Test connections (`SANDBOX`) and real ones (`PRODUCTION`) live at the same URL; the `environment` of each connection says which is which. A charge, a debit or a refund on a `PRODUCTION` connection moves real money.

    Permissions per operation (each operation names its own in `x-cash-scope`):

    | Permission | Enables |
    |---|---|
    | `payments:verify` | Verify a payment |
    | `payments:read`, `payments:read_all` | Read, list and export payments, verifications and payment traces; `payments:read` only the payments that person created and `payments:read_all` those of the whole account |
    | `payments:refund` | Refund a payment |
    | `reconciliations:read`, `reconciliations:create`, `reconciliations:revert` | Read, create and revert reconciliations |
    | `payment_links:read`, `payment_links:create` | Read links and the daily rate; create and cancel links |
    | `immediate_debits:read`, `immediate_debits:create` | Read and create immediate debits, and confirm them |
    | `c2p_charges:read`, `c2p_charges:create` | Read and create C2P charges |
    | `connections:read`, `connections:update` | Read providers, connections and traces; upload or remove the payment QR |
    | `usage:read` | Read plan usage |
    | `notifications:read`, `notifications:resend` | Read deliveries and event types; send tests and resend |
    | `products:read`, `products:create`, `products:update`, `products:delete` | Product catalog and its photos |
    | `checkout_carts:read`, `checkout_carts:create`, `checkout_carts:update` | Carts, payment sessions and their review |
    | `customers:read`, `customers:create`, `customers:update`, `customers:delete` | Customers and their saved methods |
    | `saved_methods:create`, `saved_methods:delete` | Ask the customer to save a method and detach it |
    | `provider_charges:read`, `provider_charges:create`, `provider_charges:resolve` | Read direct charges, create them (sensitive: it charges without the buyer present) and close one under review |
    | `merchant_subscriptions:read`, `merchant_subscriptions:create`, `merchant_subscriptions:update` | Read, create and manage customer subscriptions |

    ## Safe repetition with Idempotency-Key

    Creations that charge or create something accept the `Idempotency-Key` header: letters, digits, hyphen and underscore, up to 64 characters, with a unique value per operation (for example the order number). It is optional on links, immediate debits, C2P charges, checkout carts and subscriptions, and required on direct charges and refunds.

    - If the network fails and it is unknown whether the operation happened, the same request is repeated with the same key: with the same body it returns the resource already created, with the `Idempotent-Replayed` response header, without creating another.
    - With another body it answers `409` `idempotency_key_reused`; with an invalid format, `400` `idempotency_key_invalid`; without a key where it is required, `400` `idempotency_key_required`.
    - The key is remembered for a limited time, at least one day. After that the same key creates a new operation.
    - An immediate debit or a C2P that did not confirm may have been charged anyway: before charging again its status is read; repeating with the same key returns the charge already made.

    ## Pagination

    Every list grows by cursor, with no total and no numbered pages. It is requested with `limit` (the default and the maximum are in the parameter) and `cursor`. The response is `{"items": [...], "next_cursor": "..."}`: `next_cursor` is passed as `cursor` for the next page until it is `null`. The cursor is opaque and only valid with the same filters it was requested with.

    ## Dates and time zone

    Lists that grow without limit require `from` and `to` (`yyyy-mm-dd`, both inclusive). They are calendar dates in the account time zone, not UTC instants: `2026-11-06` starts and ends at midnight of that zone. A range that is too wide answers `400` `date_range_too_wide` and a missing range, `400` `date_range_required`. Instants (`created_at`, `paid_at`, `expires_at`) use RFC 3339 with zone; business dates (`payment_date`, `operation_date`) use `yyyy-mm-dd`.

    ## Amounts and currencies

    - **Amounts are decimal strings with a point, never numbers**: `"1250.00"`. Requests accept up to two decimals (integers in currencies without decimals); responses return four, `"1250.0000"`. Exchange rates are strings with eight decimals. Use a decimal library, never `float`.
    - **Currencies**: ISO 4217 codes of the account catalog (`ARS`, `BOB`, `BRL`, `CLP`, `COP`, `CRC`, `CUP`, `DOP`, `EUR`, `GTQ`, `HNL`, `MXN`, `NIO`, `PAB`, `PEN`, `PYG`, `USD`, `UYU` and `VES`). The price of a link or a line can be in any of them; **the charge is always made in the currency of the connection** and, if it is another one, the amount is converted at creation and stays fixed with its rate. The "Charge currency" table says which currency each connection charges in.

    ## Errors

    Every error response carries `message` (localized to the request) and `error_key` (stable, it does not change with the language); sometimes `details_error` widens the reason. A validation `400` may instead carry the list of invalid fields, each with `field`, `rule` and `message`. Program against `error_key`, never against the text of `message`, and do not show `message` to the buyer.

    | Code | When | What to do |
    |---|---|---|
    | `400` | Invalid data, or a reference inside the body to something that does not exist in the account (for example an unknown `customer_uuid`) | Fix the data; repeating it as is does not help |
    | `401` | `api_key_invalid`: missing, invalid, expired or revoked key | Use another key |
    | `402` | The account subscription does not allow the operation or the service is suspended (`subscription_required`, `subscription_links_suspended`, `subscription_charges_suspended`, `subscription_reconciliation_suspended`) | The merchant settles the subscription in the dashboard |
    | `403` | `api_key_scope_missing` (the key lacks the permission), the person role does not allow the operation or terms are pending acceptance | Create a key with the permission or resolve the pending item in the dashboard |
    | `404` | The resource identified in the route does not exist in the account, or the account in `X-Account-UUID` is not one the person belongs to | Check the identifier |
    | `409` | Real duplicate or state conflict: reused repetition key, inactive connection, payment already reconciled, outdated version | Read `error_key` and act accordingly |
    | `429` | `rate_limit_exceeded` (too many requests) or an account or plan quota exhausted (`quota_limit_reached`, `plan_monthly_quota_reached`) | With `rate_limit_exceeded`, wait `Retry-After` seconds and retry. With an exhausted quota do not retry: the merchant writes to support |
    | `503` | The bank, gateway or service could not answer (`provider_unavailable`, `service_unavailable`, `exchange_rate_unavailable`, `spidi_rate_changeover`, `split_partner_unverifiable`) | Retry with growing waits; on a charge, read its status first |
    | `500` | Server failure, with a generic message | Read the resource before repeating a charge |

    The API never answers `422`: invalid data is always `400`. A `503`, a `500` or a timeout on a charge does **not** say the charge did not happen; read the resource and the payment before charging again.

    ## Rate limits

    The API limits requests per API key over time. When the limit is exhausted it answers `429` with `error_key` `rate_limit_exceeded` and the `Retry-After` (seconds to wait), `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset` headers. Wait what `Retry-After` says; do not retry in bursts. Apart from the rate there are account and plan quotas (accepted payments per month, resources that are created, operations per time window): their figures are internal decisions of the account and are not published; when exhausted they answer `429` with `quota_limit_reached` or `plan_monthly_quota_reached` and retrying does not help.

    ## Signed notifications

    Each connection and each checkout cart can notify a merchant server of what happens (`payment.accepted`, `payment_link.paid`, `provider_charge.succeeded` and the others in the **Notificaciones** section, whose current list is given by `GET /v1/webhook-event-types`). The notice arrives as a `POST` with the raw body signed with HMAC-SHA256 in `X-Cash-Signature`, together with `X-Cash-Event-Id` (to drop repeats), `X-Cash-Delivery-Id`, `X-Cash-Event-Type` and `X-Cash-Timestamp`. The address must be HTTPS and is configured in the dashboard; the signing secret is shown once. How to verify the signature, what to do with repeats and how to resend: the **Notificaciones** section of this reference and [Notifications](https://docs.cachicamo.cash/desarrolladores/notificaciones). Checkout notices are in [Checkout notices](https://docs.cachicamo.cash/desarrolladores/avisos-del-checkout).

    ## Which connection serves for what

    A connection is the data of a bank or gateway account. Each provider supports some operations and not others; `Yes` means it supports it and `—` that it does not. The code in quotes is the value of `provider` in the API. Venezuelan banks charge with immediate debit and C2P; gateways with payment links. On Binance (personal account) the reference to verify is the last 6 digits of the operation number or the full number; if two operations end in the same digits the verification is ambiguous (`reference_ambiguous`) and is repeated with the full number.

    **Venezuelan banks and Binance (personal account): payments that are verified**

    | Connection | Verify mobile payment | Bank notices | Checkout | Immediate debit | C2P |
    |---|---|---|---|---|---|
    | Bancaribe (`BANCARIBE_P2P`) | Yes | Yes | Yes | Yes | Yes |
    | Banco de Venezuela (`BDV_P2P`) | Yes | Yes | Yes | — | Yes |
    | Banco del Tesoro (`BT_P2P`) | Yes | — | Yes | — | — |
    | Banco Venezolano de Crédito (`BVC_P2P`) | Yes | — | Yes | Yes | Yes |
    | Binance (cuenta personal) (`BINANCE_PERSONAL`) | Yes | — | Yes | — | — |
    | BNC (`BNC_P2P`) | Yes | Yes | Yes | Yes | Yes |
    | Mercantil (`MERCANTIL_P2P`) | Yes | — | Yes | — | Yes |
    | R4 (`R4_P2P`) | Yes | Yes | Yes | Yes | Yes |

    **Gateways with payment links**

    | Connection | Payment links | Checkout | Saved cards and direct charges | Subscriptions | Refunds | Dispute notices | Installments | Split |
    |---|---|---|---|---|---|---|---|---|
    | BDV Biopago (`BDV_BIOPAGO`) | Yes | Yes | — | — | — | — | — | — |
    | Binance Pay (comercio) (`BINANCE_PAY`) | Yes | Yes | — | — | Yes | — | — | — |
    | Mercado Pago (`MERCADO_PAGO`) | Yes | Yes | Yes | Yes | Yes | Yes | Yes | — |
    | PayPal (`PAYPAL`) | Yes | Yes | — | — | Yes | Yes | — | — |
    | Spidi (`SPIDI`) | Yes | Yes | — | — | — | — | — | Yes |
    | Stripe (`STRIPE`) | Yes | Yes | Yes | Yes | Yes | Yes | Yes | — |
    | WayuPay (`WAYU_PAY`) | Yes | Yes | — | — | — | — | — | — |

    The connection must also be active and have loaded the data the operation asks for: `capabilities` of each connection (`IMMEDIATE_DEBIT`, `C2P`, `CARD_TOKEN`) says what it can charge today with what it has loaded, `checkout_methods` which methods it offers at checkout and `provider_capabilities` what its provider can do. `GET /v1/providers` returns the fields and ranges each provider asks for.

    ### Charge currency

    Each connection charges in one currency. A price in another currency is converted when the link or the session is created and stays fixed with its rate. Connections with their own currency charge in the one set in their `currency` setting when created, among those the provider supports.

    | Connection (charge currency) | Charge currency | Currencies it supports |
    |---|---|---|
    | Bancaribe (`BANCARIBE_P2P`) | Bolivars (`VES`); a price in another currency is converted with the day rate | — |
    | Banco de Venezuela (`BDV_P2P`) | Bolivars (`VES`); a price in another currency is converted with the day rate | — |
    | Banco del Tesoro (`BT_P2P`) | Bolivars (`VES`); a price in another currency is converted with the day rate | — |
    | Banco Venezolano de Crédito (`BVC_P2P`) | Bolivars (`VES`); a price in another currency is converted with the day rate | — |
    | BDV Biopago (`BDV_BIOPAGO`) | Bolivars (`VES`); a price in another currency is converted with the day rate | — |
    | Binance (cuenta personal) (`BINANCE_PERSONAL`) | Dollars (`USD`), in dollar-pegged stablecoins | — |
    | Binance Pay (comercio) (`BINANCE_PAY`) | Dollars (`USD`), in dollar-pegged stablecoins | — |
    | BNC (`BNC_P2P`) | Bolivars (`VES`); a price in another currency is converted with the day rate | — |
    | Mercado Pago (`MERCADO_PAGO`) | The one of the `currency` setting of the connection | `ARS`, `BRL`, `CLP`, `COP`, `MXN`, `PEN`, `UYU` |
    | Mercantil (`MERCANTIL_P2P`) | Bolivars (`VES`); a price in another currency is converted with the day rate | — |
    | PayPal (`PAYPAL`) | The one of the `currency` setting of the connection | `BRL`, `EUR`, `MXN`, `USD` |
    | R4 (`R4_P2P`) | Bolivars (`VES`); a price in another currency is converted with the day rate | — |
    | Spidi (`SPIDI`) | Bolivars (`VES`); a price in another currency is converted with the day rate | — |
    | Stripe (`STRIPE`) | The one of the `currency` setting of the connection | `ARS`, `BOB`, `BRL`, `CLP`, `COP`, `CRC`, `DOP`, `EUR`, `GTQ`, `HNL`, `MXN`, `NIO`, `PAB`, `PEN`, `PYG`, `USD`, `UYU` |
    | WayuPay (`WAYU_PAY`) | Bolivars (`VES`); a price in another currency is converted with the day rate | — |

    ## Where to go next

    - [Integrate by API](https://docs.cachicamo.cash/desarrolladores/integrar-por-api): first calls, verify, reconcile, links, immediate debit and C2P.
    - [API keys](https://docs.cachicamo.cash/desarrolladores/api-keys): create, revoke and choose permissions.
    - [Create a checkout](https://docs.cachicamo.cash/desarrolladores/crear-checkout) and [Checkout notices](https://docs.cachicamo.cash/desarrolladores/avisos-del-checkout).
    - [Charges with a saved card](https://docs.cachicamo.cash/desarrolladores/cobros-con-tarjeta): customers, direct charges, subscriptions and refunds.
    - [Notifications](https://docs.cachicamo.cash/desarrolladores/notificaciones): signature, repeats and resend.
    - [Best practices](https://docs.cachicamo.cash/desarrolladores/buenas-practicas).
  x-cash-api-revision: cd6dc08a50ae1cf7491679c1d0619de101450e9000290b95ec1ea467d9c3cb81
servers:
  - url: https://api.cachicamo.cash
security:
  - apiKey: []
tags:
  - name: Proveedores
    description: |-
      Catálogo de los bancos y pasarelas que se pueden conectar, con los campos que cada uno pide, las operaciones que admite, sus ambientes y la moneda en que cobra. Se consulta antes de cobrar para saber qué pedirle a cada conexión.
    x-description-en: |-
      Catalog of the banks and gateways that can be connected, with the fields each one asks for, the operations it supports, its environments and the currency it charges in. It is read before charging to know what to ask of each connection.
  - name: Conexiones
    description: |-
      Las conexiones de la cuenta: cada una es una cuenta de un banco o de una pasarela con su ambiente (`SANDBOX` o `PRODUCTION`), su estado y lo que puede cobrar hoy. La API sólo las lee y sube o quita el QR de cobro; crearlas y cambiar sus credenciales se hace en el panel y nunca se devuelven.
    x-description-en: |-
      The account connections: each one is a bank or gateway account with its environment (`SANDBOX` or `PRODUCTION`), its status and what it can charge today. The API only reads them and uploads or removes the payment QR; creating them and changing their credentials is done in the dashboard and they are never returned.
  - name: Validar pago móvil
    x-cash-providers: [BANCARIBE_P2P, BDV_P2P, BT_P2P, BVC_P2P, BINANCE_PERSONAL, BNC_P2P, MERCANTIL_P2P, R4_P2P]
    description: |-
      Comprueba en el banco que un pago móvil existe y coincide en monto, y lo registra para conciliarlo.

      **Conexiones que lo admiten:** Bancaribe (`BANCARIBE_P2P`), Banco de Venezuela (`BDV_P2P`), Banco del Tesoro (`BT_P2P`), Banco Venezolano de Crédito (`BVC_P2P`), Binance (cuenta personal) (`BINANCE_PERSONAL`), BNC (`BNC_P2P`), Mercantil (`MERCANTIL_P2P`), R4 (`R4_P2P`).
    x-description-en: |-
      Checks at the bank that a mobile payment exists and matches the amount, and records it to be reconciled.

      **Connections that support it:** Bancaribe (`BANCARIBE_P2P`), Banco de Venezuela (`BDV_P2P`), Banco del Tesoro (`BT_P2P`), Banco Venezolano de Crédito (`BVC_P2P`), Binance (cuenta personal) (`BINANCE_PERSONAL`), BNC (`BNC_P2P`), Mercantil (`MERCANTIL_P2P`), R4 (`R4_P2P`).
  - name: Links de pago
    x-cash-providers: [BDV_BIOPAGO, BINANCE_PAY, MERCADO_PAGO, PAYPAL, SPIDI, STRIPE, WAYU_PAY]
    x-cash-split-providers: [SPIDI]
    description: |-
      Links de pago: una dirección que se entrega al comprador para que pague en la página de la pasarela, con el monto fijado al crearlo.

      **Conexiones que lo admiten:** BDV Biopago (`BDV_BIOPAGO`), Binance Pay (comercio) (`BINANCE_PAY`), Mercado Pago (`MERCADO_PAGO`), PayPal (`PAYPAL`), Spidi (`SPIDI`), Stripe (`STRIPE`), WayuPay (`WAYU_PAY`).

      **Conexiones que admiten el reparto del cobro:** Spidi (`SPIDI`).
    x-description-en: |-
      Payment links: an address handed to the buyer to pay on the gateway page, with the amount fixed at creation.

      **Connections that support it:** BDV Biopago (`BDV_BIOPAGO`), Binance Pay (comercio) (`BINANCE_PAY`), Mercado Pago (`MERCADO_PAGO`), PayPal (`PAYPAL`), Spidi (`SPIDI`), Stripe (`STRIPE`), WayuPay (`WAYU_PAY`).

      **Connections that support splitting the charge:** Spidi (`SPIDI`).
  - name: Checkout
    x-cash-providers: [BANCARIBE_P2P, BDV_P2P, BT_P2P, BVC_P2P, BDV_BIOPAGO, BINANCE_PERSONAL, BINANCE_PAY, BNC_P2P, MERCADO_PAGO, MERCANTIL_P2P, PAYPAL, R4_P2P, SPIDI, STRIPE, WAYU_PAY]
    x-cash-split-providers: [SPIDI]
    x-cash-installments-providers: [MERCADO_PAGO, STRIPE]
    description: |-
      Carts de checkout con su URL de pago, las sesiones de pago de los compradores y las decisiones sobre pagos en revisión. Un cart ofrece al comprador las conexiones y métodos que se elijan: `REDIRECT` (página de la pasarela), `REPORTED_PAYMENT` (pago móvil que el comprador reporta), `BINANCE_REPORTED` (pago a una cuenta personal de Binance que el comprador reporta), `IMMEDIATE_DEBIT`, `C2P` y `CARD_TOKEN`. En `BINANCE_REPORTED` el comprador reporta los últimos 6 dígitos del número de operación de Binance o el número completo; el reporte público del pago responde `NOT_FOUND` con `reason` `REFERENCE_AMBIGUOUS` cuando dos operaciones terminan en los mismos dígitos.

      **Conexiones que lo admiten:** Bancaribe (`BANCARIBE_P2P`), Banco de Venezuela (`BDV_P2P`), Banco del Tesoro (`BT_P2P`), Banco Venezolano de Crédito (`BVC_P2P`), BDV Biopago (`BDV_BIOPAGO`), Binance (cuenta personal) (`BINANCE_PERSONAL`), Binance Pay (comercio) (`BINANCE_PAY`), BNC (`BNC_P2P`), Mercado Pago (`MERCADO_PAGO`), Mercantil (`MERCANTIL_P2P`), PayPal (`PAYPAL`), R4 (`R4_P2P`), Spidi (`SPIDI`), Stripe (`STRIPE`), WayuPay (`WAYU_PAY`).

      **Conexiones que admiten el reparto del cobro:** Spidi (`SPIDI`).

      **Conexiones que ofrecen cuotas:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).
    x-description-en: |-
      Checkout carts with their payment URL, buyer payment sessions and decisions on payments under review. A cart offers the buyer the connections and methods chosen: `REDIRECT` (gateway page), `REPORTED_PAYMENT` (mobile payment the buyer reports), `BINANCE_REPORTED` (payment to a personal Binance account the buyer reports), `IMMEDIATE_DEBIT`, `C2P` and `CARD_TOKEN`. In `BINANCE_REPORTED` the buyer reports the last 6 digits of the Binance operation number or the full number; the public payment report answers `NOT_FOUND` with `reason` `REFERENCE_AMBIGUOUS` when two operations end in the same digits.

      **Connections that support it:** Bancaribe (`BANCARIBE_P2P`), Banco de Venezuela (`BDV_P2P`), Banco del Tesoro (`BT_P2P`), Banco Venezolano de Crédito (`BVC_P2P`), BDV Biopago (`BDV_BIOPAGO`), Binance (cuenta personal) (`BINANCE_PERSONAL`), Binance Pay (comercio) (`BINANCE_PAY`), BNC (`BNC_P2P`), Mercado Pago (`MERCADO_PAGO`), Mercantil (`MERCANTIL_P2P`), PayPal (`PAYPAL`), R4 (`R4_P2P`), Spidi (`SPIDI`), Stripe (`STRIPE`), WayuPay (`WAYU_PAY`).

      **Connections that support splitting the charge:** Spidi (`SPIDI`).

      **Connections that offer installments:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).
  - name: Débito inmediato
    x-cash-providers: [BANCARIBE_P2P, BVC_P2P, BNC_P2P, R4_P2P]
    description: |-
      Débito inmediato en dos pasos: el banco del pagador le envía una clave y el comercio la confirma para cobrar.

      **Conexiones que lo admiten:** Bancaribe (`BANCARIBE_P2P`), Banco Venezolano de Crédito (`BVC_P2P`), BNC (`BNC_P2P`), R4 (`R4_P2P`).
    x-description-en: |-
      Immediate debit in two steps: the payer bank sends a key and the merchant confirms it to charge.

      **Connections that support it:** Bancaribe (`BANCARIBE_P2P`), Banco Venezolano de Crédito (`BVC_P2P`), BNC (`BNC_P2P`), R4 (`R4_P2P`).
  - name: Cobros C2P
    x-cash-providers: [BANCARIBE_P2P, BDV_P2P, BVC_P2P, BNC_P2P, MERCANTIL_P2P, R4_P2P]
    description: |-
      Cobro C2P en un solo paso, con la clave de pago que el pagador generó en su banco.

      **Conexiones que lo admiten:** Bancaribe (`BANCARIBE_P2P`), Banco de Venezuela (`BDV_P2P`), Banco Venezolano de Crédito (`BVC_P2P`), BNC (`BNC_P2P`), Mercantil (`MERCANTIL_P2P`), R4 (`R4_P2P`).
    x-description-en: |-
      C2P charge in a single step, with the payment key the payer generated at their bank.

      **Connections that support it:** Bancaribe (`BANCARIBE_P2P`), Banco de Venezuela (`BDV_P2P`), Banco Venezolano de Crédito (`BVC_P2P`), BNC (`BNC_P2P`), Mercantil (`MERCANTIL_P2P`), R4 (`R4_P2P`).
  - name: Pagos
    description: |-
      Pagos registrados en la cuenta, su detalle, la conciliación con una referencia propia y la exportación. Un pago nace de una validación, de un aviso del banco, de un link, de un débito inmediato, de un C2P o de un cobro directo (`source`).
    x-description-en: |-
      Payments recorded in the account, their detail, reconciliation with an own reference and export. A payment is born from a verification, a bank notice, a link, an immediate debit, a C2P or a direct charge (`source`).
  - name: Conciliaciones
    description: |-
      Marca un pago aceptado como registrado en el sistema del comercio (factura, recibo u otra referencia) y la revierte dentro de su plazo. Sirve con pagos de cualquier conexión.
    x-description-en: |-
      Marks an accepted payment as recorded in the merchant system (invoice, receipt or another reference) and reverts it within its window. It works with payments of any connection.
  - name: Reembolsos y disputas
    x-cash-providers: [BINANCE_PAY, MERCADO_PAGO, PAYPAL, STRIPE]
    x-cash-disputes-providers: [MERCADO_PAGO, PAYPAL, STRIPE]
    description: |-
      Reembolso total o parcial de un pago ya cobrado: vuelve siempre al medio con que pagó el comprador, nunca a otro destino. Las disputas que abre el comprador las responde el comercio en el panel del proveedor; la API las refleja en `dispute_status` del pago y en los avisos `payment.dispute_opened` y `payment.dispute_closed`.

      **Conexiones que lo admiten:** Binance Pay (comercio) (`BINANCE_PAY`), Mercado Pago (`MERCADO_PAGO`), PayPal (`PAYPAL`), Stripe (`STRIPE`).

      **Conexiones que avisan disputas:** Mercado Pago (`MERCADO_PAGO`), PayPal (`PAYPAL`), Stripe (`STRIPE`).
    x-description-en: |-
      Full or partial refund of an already collected payment: it always returns to the means the buyer paid with, never to another destination. Disputes opened by the buyer are answered by the merchant in the provider panel; the API reflects them in `dispute_status` of the payment and in the `payment.dispute_opened` and `payment.dispute_closed` notices.

      **Connections that support it:** Binance Pay (comercio) (`BINANCE_PAY`), Mercado Pago (`MERCADO_PAGO`), PayPal (`PAYPAL`), Stripe (`STRIPE`).

      **Connections that report disputes:** Mercado Pago (`MERCADO_PAGO`), PayPal (`PAYPAL`), Stripe (`STRIPE`).
  - name: Clientes
    x-cash-providers: [MERCADO_PAGO, STRIPE]
    description: |-
      Clientes del comercio, sus métodos de pago guardados y los links con que el comprador autoriza guardar uno. La API nunca recibe datos de tarjeta: los guarda el comprador en una página segura del proveedor, tras aceptar las condiciones de cobro, y aquí sólo se ven marca, últimos cuatro dígitos y estado.

      **Conexiones que lo admiten:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).
    x-description-en: |-
      Merchant customers, their saved payment methods and the links with which the buyer authorizes saving one. The API never receives card data: the buyer saves it on a secure provider page, after accepting the charge terms, and here only brand, last four digits and status are seen.

      **Connections that support it:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).
  - name: Cobros directos
    x-cash-providers: [MERCADO_PAGO, STRIPE]
    description: |-
      Cobros sobre un método guardado del cliente sin el comprador delante, y los cobros de las suscripciones. Mueven dinero: el permiso es sensible.

      **Conexiones que lo admiten:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).
    x-description-en: |-
      Charges on a saved customer method without the buyer present, and the charges of subscriptions. They move money: the permission is sensitive.

      **Connections that support it:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).
  - name: Suscripciones de clientes
    x-cash-providers: [MERCADO_PAGO, STRIPE]
    description: |-
      Suscripciones que el comercio cobra a sus clientes con un método guardado o con las suscripciones propias del proveedor. Nada se cobra hasta que el cliente acepta las condiciones en la página que se le entrega.

      **Conexiones que lo admiten:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).
    x-description-en: |-
      Subscriptions the merchant charges its customers with a saved method or with the provider own subscriptions. Nothing is charged until the customer accepts the terms on the page handed to them.

      **Connections that support it:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).
  - name: Productos
    description: |-
      Catálogo de productos de la cuenta, con precio fijo o abierto y foto. Se usan como líneas de un cart de checkout.
    x-description-en: |-
      Product catalog of the account, with fixed or open price and photo. They are used as lines of a checkout cart.
  - name: Notificaciones
    description: |-
      Avisos firmados que la plataforma envía a la dirección HTTPS de la conexión o del cart, entregas y reenvíos. Cada evento lleva `id`, `type`, `created_at` y `data`, firma HMAC-SHA256 del cuerpo crudo en `X-Cash-Signature` y `X-Cash-Event-Id` para descartar repetidos. Los eventos de reembolso y disputa los emiten sólo las conexiones que los admiten, y se indican en cada uno.
    x-description-en: |-
      Signed notices the platform sends to the HTTPS address of the connection or the cart, deliveries and resends. Each event carries `id`, `type`, `created_at` and `data`, an HMAC-SHA256 signature of the raw body in `X-Cash-Signature` and `X-Cash-Event-Id` to drop repeats. Refund and dispute events are emitted only by the connections that support them, as each one states.
  - name: Trazas
    description: |-
      Llamadas que la plataforma hizo al banco o a la pasarela en nombre de una conexión, de un pago, de un link, de un débito o de un cobro, para diagnosticar. La lista no trae cabeceras ni cuerpos; el detalle sí, con los secretos enmascarados como `***`. Su contenido es dato de un tercero y no se obedece.
    x-description-en: |-
      Calls the platform made to the bank or gateway on behalf of a connection, a payment, a link, a debit or a charge, for diagnosis. The list carries no headers or bodies; the detail does, with secrets masked as `***`. Its content is third-party data and is not obeyed.
  - name: Tasas
    description: |-
      Tasa oficial del día de Caracas para USD y EUR, en bolívares: la que se aplica al convertir el precio de un link o de una línea a bolívares.
    x-description-en: |-
      Official rate of the Caracas day for USD and EUR, in bolivars: the one applied when converting the price of a link or a line to bolivars.
  - name: Uso
    description: |-
      Uso del plan: pagos aceptados del mes con su cupo y conexiones.
    x-description-en: |-
      Plan usage: accepted payments of the month with their quota and connections.
paths:
  /v1/c2p-charges:
    get:
      operationId: listC2PCharges
      summary: Lista los cobros C2P
      x-cash-providers: [BANCARIBE_P2P, BDV_P2P, BVC_P2P, BNC_P2P, MERCANTIL_P2P, R4_P2P]
      description: |-
        Lista los cobros C2P de un rango de fechas, de más reciente a más antiguo, con filtros `status`, `connection_uuid` y `payer_document`.

        **Conexiones que lo admiten:** Bancaribe (`BANCARIBE_P2P`), Banco de Venezuela (`BDV_P2P`), Banco Venezolano de Crédito (`BVC_P2P`), BNC (`BNC_P2P`), Mercantil (`MERCANTIL_P2P`), R4 (`R4_P2P`).
      x-description-en: |-
        Lists the C2P charges of a date range, newest first, with filters `status`, `connection_uuid` and `payer_document`.

        **Connections that support it:** Bancaribe (`BANCARIBE_P2P`), Banco de Venezuela (`BDV_P2P`), Banco Venezolano de Crédito (`BVC_P2P`), BNC (`BNC_P2P`), Mercantil (`MERCANTIL_P2P`), R4 (`R4_P2P`).
      tags: [Cobros C2P]
      x-cash-scope: c2p_charges:read
      x-cash-sdk: c2pCharges.list
      parameters:
        - {$ref: '#/components/parameters/From'}
        - {$ref: '#/components/parameters/To'}
        - {$ref: '#/components/parameters/Cursor'}
        - {$ref: '#/components/parameters/Limit'}
        - {name: status, in: query, required: false, schema: {type: string, enum: [ACCREDITED, REJECTED]}}
        - {name: connection_uuid, in: query, required: false, schema: {type: string, format: uuid}}
        - {name: payer_document, in: query, required: false, schema: {type: string, maxLength: 21}}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {allOf: [{$ref: '#/components/schemas/CursorPage'}, {type: object, properties: {items: {type: array, items: {$ref: '#/components/schemas/C2PChargeView'}}}}]}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, cursor_invalid, date_range_required, date_range_too_wide]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
    post:
      operationId: createC2PCharge
      summary: Crea un cobro C2P
      x-cash-providers: [BANCARIBE_P2P, BDV_P2P, BVC_P2P, BNC_P2P, MERCANTIL_P2P, R4_P2P]
      description: |-
        Cobra al pagador en un solo paso con la clave de pago que él generó en su banco (C2P, cobro con clave de pago).

        **Conexiones que lo admiten:** Bancaribe (`BANCARIBE_P2P`), Banco de Venezuela (`BDV_P2P`), Banco Venezolano de Crédito (`BVC_P2P`), BNC (`BNC_P2P`), Mercantil (`MERCANTIL_P2P`), R4 (`R4_P2P`).

        La conexión debe tener `C2P` en `capabilities`. `payer_ip` es la IP del dispositivo del pagador, nunca la del servidor del integrador, y es obligatoria cuando el proveedor la pide (`c2p.payer_ip_required` en `GET /v1/providers`; si falta, 400 `payer_ip_required`). `payment_key` son sólo dígitos y no se guarda ni se registra. El rango de monto, el largo de la clave y los datos del pagador que exige cada banco están en `c2p` de `GET /v1/providers`.

        Respuesta: 201 con el cobro, que termina en `ACCREDITED` (trae `payment_uuid`) o `REJECTED`. Con `Idempotency-Key`, repetir la llamada devuelve el mismo cobro. Un cobro sin respuesta puede haberse hecho: se consulta con `GET /v1/c2p-charges/{uuid}` antes de cobrar de nuevo.

        Errores típicos: 400 `c2p_not_supported_by_connection`, `payer_ip_required`, `c2p_payment_key_format_invalid`, `c2p_amount_out_of_range`, `charge_payer_field_invalid`, `provider_credentials_rejected`; 402 `subscription_required`; 409 `c2p_charge_in_progress` y `connection_inactive`; 429 si se agotó el cupo; 503 `provider_unavailable`.
      x-description-en: |-
        Charges the payer in a single step with the payment key they generated at their bank (C2P, charge with a payment key).

        **Connections that support it:** Bancaribe (`BANCARIBE_P2P`), Banco de Venezuela (`BDV_P2P`), Banco Venezolano de Crédito (`BVC_P2P`), BNC (`BNC_P2P`), Mercantil (`MERCANTIL_P2P`), R4 (`R4_P2P`).

        The connection must have `C2P` in `capabilities`. `payer_ip` is the IP of the payer device, never that of the integrator server, and it is required when the provider asks for it (`c2p.payer_ip_required` in `GET /v1/providers`; if missing, 400 `payer_ip_required`). `payment_key` is digits only and is neither stored nor logged. The amount range, the key length and the payer data each bank requires are in `c2p` of `GET /v1/providers`.

        Response: 201 with the charge, which ends in `ACCREDITED` (it carries `payment_uuid`) or `REJECTED`. With `Idempotency-Key`, repeating the call returns the same charge. A charge with no answer may have been made: it is read with `GET /v1/c2p-charges/{uuid}` before charging again.

        Typical errors: 400 `c2p_not_supported_by_connection`, `payer_ip_required`, `c2p_payment_key_format_invalid`, `c2p_amount_out_of_range`, `charge_payer_field_invalid`, `provider_credentials_rejected`; 402 `subscription_required`; 409 `c2p_charge_in_progress` and `connection_inactive`; 429 if the quota ran out; 503 `provider_unavailable`.
      tags: [Cobros C2P]
      x-cash-scope: c2p_charges:create
      x-cash-sdk: c2pCharges.create
      parameters:
        - {$ref: '#/components/parameters/IdempotencyKey'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/C2PChargeCreateBody'}}
      responses:
        '201':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/C2PChargeView'}}
        '200':
          description: Repetición de una petición con la misma Idempotency-Key
          headers:
            Idempotent-Replayed: {description: 'true cuando la respuesta repite una petición con la misma Idempotency-Key.', schema: {type: string, enum: ['true']}}
          content:
            application/json: {schema: {$ref: '#/components/schemas/C2PChargeView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, payment_connection_not_found, c2p_not_supported_by_connection, payer_ip_required, amount_invalid, c2p_amount_out_of_range, c2p_payment_key_format_invalid, charge_payer_field_invalid, provider_rejected_request, provider_credentials_rejected]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '402': {description: La suscripción no permite la operación, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [subscription_required, subscription_charges_suspended]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '409': {description: Duplicado o conflicto de estado, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [idempotency_key_reused, c2p_charge_in_progress, connection_inactive]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded, quota_limit_reached, plan_monthly_quota_reached]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [provider_unavailable]}}}]}}}}
  /v1/c2p-charges/{uuid}:
    get:
      operationId: getC2PCharge
      summary: Devuelve un cobro C2P
      x-cash-providers: [BANCARIBE_P2P, BDV_P2P, BVC_P2P, BNC_P2P, MERCANTIL_P2P, R4_P2P]
      description: |-
        Devuelve un cobro C2P con su estado y, si se acreditó, el pago.

        **Conexiones que lo admiten:** Bancaribe (`BANCARIBE_P2P`), Banco de Venezuela (`BDV_P2P`), Banco Venezolano de Crédito (`BVC_P2P`), BNC (`BNC_P2P`), Mercantil (`MERCANTIL_P2P`), R4 (`R4_P2P`).
      x-description-en: |-
        Returns a C2P charge with its status and, if credited, the payment.

        **Connections that support it:** Bancaribe (`BANCARIBE_P2P`), Banco de Venezuela (`BDV_P2P`), Banco Venezolano de Crédito (`BVC_P2P`), BNC (`BNC_P2P`), Mercantil (`MERCANTIL_P2P`), R4 (`R4_P2P`).
      tags: [Cobros C2P]
      x-cash-scope: c2p_charges:read
      x-cash-sdk: c2pCharges.get
      parameters:
        - {$ref: '#/components/parameters/UUID'}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/C2PChargeView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [c2p_charge_not_found]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/c2p-charges/{uuid}/traces:
    get:
      operationId: listC2PChargeTraces
      summary: Lista las trazas de un cobro C2P
      tags: [Trazas]
      x-cash-scope: c2p_charges:read
      x-cash-sdk: c2pCharges.traces
      description: "Lista las llamadas hechas al banco por el cobro."
      x-description-en: "Lists the calls made to the bank for the charge."
      parameters:
        - {$ref: '#/components/parameters/UUID'}
        - {$ref: '#/components/parameters/FromOptional'}
        - {$ref: '#/components/parameters/ToOptional'}
        - {$ref: '#/components/parameters/Cursor'}
        - {$ref: '#/components/parameters/Limit'}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {allOf: [{$ref: '#/components/schemas/CursorPage'}, {type: object, properties: {items: {type: array, items: {$ref: '#/components/schemas/TraceSummaryView'}}}}]}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, cursor_invalid, date_range_required, date_range_too_wide]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [c2p_charge_not_found]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/c2p-charges/{uuid}/traces/{trace_uuid}:
    get:
      operationId: getC2PChargeTrace
      summary: Devuelve el detalle de una traza de un cobro C2P
      tags: [Trazas]
      x-cash-scope: c2p_charges:read
      x-cash-sdk: c2pCharges.trace
      description: "Devuelve el detalle de una llamada del cobro."
      x-description-en: "Returns the detail of a charge call."
      parameters:
        - {$ref: '#/components/parameters/UUID'}
        - {$ref: '#/components/parameters/TraceUUID'}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/TraceView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [c2p_charge_not_found, trace_not_found]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/connections:
    get:
      operationId: listConnections
      summary: Lista las conexiones de la cuenta
      description: |-
        Lista las conexiones de la cuenta, de cualquier proveedor, con su ambiente, su estado y lo que pueden hacer. Nunca devuelve credenciales.

        Cada conexión trae `provider`, `environment` (`SANDBOX` de pruebas o `PRODUCTION` real, donde cada cobro mueve dinero de verdad), `status` (`ACTIVE`, `INACTIVE` o `ARCHIVED`; sólo una conexión `ACTIVE` cobra), `capabilities` (`IMMEDIATE_DEBIT`, `C2P` y `CARD_TOKEN`: lo que puede cobrar hoy con las credenciales cargadas), `checkout_methods` (los métodos que ofrece en el checkout), `provider_capabilities`, `currency_policy`, `supports_split`, `supports_installments` y `notification_url`. Las conexiones que el dueño ocultó a un rol no aparecen para ese rol.
      x-description-en: |-
        Lists the account connections, of any provider, with their environment, status and what they can do. It never returns credentials.

        Each connection carries `provider`, `environment` (`SANDBOX` for tests or `PRODUCTION` for real, where every charge moves real money), `status` (`ACTIVE`, `INACTIVE` or `ARCHIVED`; only an `ACTIVE` connection charges), `capabilities` (`IMMEDIATE_DEBIT`, `C2P` and `CARD_TOKEN`: what it can charge today with the loaded credentials), `checkout_methods` (the methods it offers at checkout), `provider_capabilities`, `currency_policy`, `supports_split`, `supports_installments` and `notification_url`. Connections the owner hid from a role do not appear for that role.
      tags: [Conexiones]
      x-cash-scope: connections:read
      x-cash-sdk: connections.list
      parameters:
        - {$ref: '#/components/parameters/Cursor'}
        - {$ref: '#/components/parameters/Limit'}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {allOf: [{$ref: '#/components/schemas/CursorPage'}, {type: object, properties: {items: {type: array, items: {$ref: '#/components/schemas/ConnectionView'}}}}]}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, cursor_invalid]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/connections/{uuid}:
    get:
      operationId: getConnection
      summary: Devuelve una conexión
      description: |-
        Devuelve una conexión de la cuenta, de cualquier proveedor, con su ambiente, su estado, lo que puede cobrar hoy (`capabilities`, `checkout_methods`, `provider_capabilities`) y la URL de sus notificaciones. Nunca devuelve credenciales. Una conexión que no existe en la cuenta responde 404.
      x-description-en: |-
        Returns an account connection, of any provider, with its environment, status, what it can charge today (`capabilities`, `checkout_methods`, `provider_capabilities`) and its notification URL. It never returns credentials. A connection that does not exist in the account answers 404.
      tags: [Conexiones]
      x-cash-scope: connections:read
      x-cash-sdk: connections.get
      parameters:
        - {$ref: '#/components/parameters/UUID'}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/ConnectionView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [connection_not_found]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/connections/{uuid}/notifications:
    get:
      operationId: listNotifications
      summary: Lista las notificaciones enviadas a la URL de una conexión
      tags: [Notificaciones]
      x-cash-scope: notifications:read
      x-cash-sdk: notifications.list
      description: "Lista las notificaciones enviadas a la URL de la conexión en un rango de fechas."
      x-description-en: "Lists notifications sent to the connection URL in a date range."
      parameters:
        - {$ref: '#/components/parameters/UUID'}
        - {$ref: '#/components/parameters/From'}
        - {$ref: '#/components/parameters/To'}
        - {$ref: '#/components/parameters/Cursor'}
        - {$ref: '#/components/parameters/Limit'}
        - {name: event_type, in: query, required: false, schema: {type: string, maxLength: 48}}
        - {name: delivery_status, in: query, required: false, schema: {type: string, enum: [PENDING, QUEUED, RETRYING, SENT, FAILED, NOT_ENQUEUED]}}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {allOf: [{$ref: '#/components/schemas/CursorPage'}, {type: object, properties: {items: {type: array, items: {$ref: '#/components/schemas/NotificationView'}}}}]}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, cursor_invalid, date_range_required, date_range_too_wide, notification_filters_combined]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [connection_not_found]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/connections/{uuid}/notifications/test:
    post:
      operationId: sendTestNotification
      summary: Envía un evento notification.test a la URL de la conexión
      tags: [Notificaciones]
      x-cash-scope: notifications:resend
      x-cash-sdk: notifications.test
      description: "Envía un evento notification.test a la URL de la conexión."
      x-description-en: "Sends a notification.test event to the connection URL."
      parameters:
        - {$ref: '#/components/parameters/UUID'}
      responses:
        '202':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/NotificationMessageResponse'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [connection_not_found]}}}]}}}}
        '409': {description: Duplicado o conflicto de estado, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [notification_destination_missing]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/connections/{uuid}/traces:
    get:
      operationId: listConnectionTraces
      summary: Lista las trazas de las llamadas de una conexión
      tags: [Trazas]
      x-cash-scope: connections:read
      x-cash-sdk: connections.traces
      description: "Lista las llamadas hechas al banco o a la pasarela en nombre de la conexión, sin cabeceras ni cuerpos."
      x-description-en: "Lists the calls made to the bank or gateway on behalf of the connection, without headers or bodies."
      parameters:
        - {$ref: '#/components/parameters/UUID'}
        - {$ref: '#/components/parameters/FromOptional'}
        - {$ref: '#/components/parameters/ToOptional'}
        - {$ref: '#/components/parameters/Cursor'}
        - {$ref: '#/components/parameters/Limit'}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {allOf: [{$ref: '#/components/schemas/CursorPage'}, {type: object, properties: {items: {type: array, items: {$ref: '#/components/schemas/TraceSummaryView'}}}}]}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, cursor_invalid, date_range_required, date_range_too_wide]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [connection_not_found]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/connections/{uuid}/traces/{trace_uuid}:
    get:
      operationId: getConnectionTrace
      summary: Devuelve el detalle de una traza de una conexión
      tags: [Trazas]
      x-cash-scope: connections:read
      x-cash-sdk: connections.trace
      description: "Devuelve el detalle de una llamada, con cabeceras y cuerpos. Los secretos llegan como ***."
      x-description-en: "Returns the detail of a call, with headers and bodies. Secrets arrive as ***."
      parameters:
        - {$ref: '#/components/parameters/UUID'}
        - {$ref: '#/components/parameters/TraceUUID'}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/TraceView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [connection_not_found, trace_not_found]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/exchange-rates/today:
    get:
      operationId: getTodayExchangeRates
      summary: Devuelve las tasas del día
      tags: [Tasas]
      x-cash-scope: payment_links:read
      x-cash-sdk: exchangeRates.today
      description: "Devuelve la tasa oficial del día de Caracas para USD y EUR, en bolívares."
      x-description-en: "Returns the official Caracas-day rate for USD and EUR, in bolivars."
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/TodayRatesView'}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [exchange_rate_unavailable]}}}]}}}}
  /v1/immediate-debits:
    get:
      operationId: listImmediateDebits
      summary: Lista los débitos inmediatos
      x-cash-providers: [BANCARIBE_P2P, BVC_P2P, BNC_P2P, R4_P2P]
      description: |-
        Lista los débitos inmediatos de un rango de fechas, de más reciente a más antiguo, con filtros `status`, `connection_uuid` y `payer_document`.

        **Conexiones que lo admiten:** Bancaribe (`BANCARIBE_P2P`), Banco Venezolano de Crédito (`BVC_P2P`), BNC (`BNC_P2P`), R4 (`R4_P2P`).
      x-description-en: |-
        Lists the immediate debits of a date range, newest first, with filters `status`, `connection_uuid` and `payer_document`.

        **Connections that support it:** Bancaribe (`BANCARIBE_P2P`), Banco Venezolano de Crédito (`BVC_P2P`), BNC (`BNC_P2P`), R4 (`R4_P2P`).
      tags: [Débito inmediato]
      x-cash-scope: immediate_debits:read
      x-cash-sdk: immediateDebits.list
      parameters:
        - {$ref: '#/components/parameters/From'}
        - {$ref: '#/components/parameters/To'}
        - {$ref: '#/components/parameters/Cursor'}
        - {$ref: '#/components/parameters/Limit'}
        - {name: status, in: query, required: false, schema: {type: string, enum: [OTP_SENT, PROCESSING, ACCREDITED, REJECTED, EXPIRED]}}
        - {name: connection_uuid, in: query, required: false, schema: {type: string, format: uuid}}
        - {name: payer_document, in: query, required: false, schema: {type: string, maxLength: 21}}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {allOf: [{$ref: '#/components/schemas/CursorPage'}, {type: object, properties: {items: {type: array, items: {$ref: '#/components/schemas/ImmediateDebitView'}}}}]}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, cursor_invalid, date_range_required, date_range_too_wide]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
    post:
      operationId: createImmediateDebit
      summary: Pide la clave de un débito inmediato
      x-cash-providers: [BANCARIBE_P2P, BVC_P2P, BNC_P2P, R4_P2P]
      description: |-
        Primer paso del débito inmediato: pide al banco del pagador que le envíe una clave por mensaje. Todavía no cobra; confirmar con la clave es un paso aparte.

        **Conexiones que lo admiten:** Bancaribe (`BANCARIBE_P2P`), Banco Venezolano de Crédito (`BVC_P2P`), BNC (`BNC_P2P`), R4 (`R4_P2P`).

        La conexión debe tener `IMMEDIATE_DEBIT` en `capabilities`. `GET /v1/providers` dice, en `immediate_debit`, los datos del pagador que cada banco exige (`required_fields`), el rango de monto (fuera de él, 400 `immediate_debit_amount_out_of_range`), el largo de la clave y cuánto vale. Quien llama es el sistema del comercio y no el comprador: no se guarda ni se registra la clave del pagador.

        Respuesta: 201 con el débito en `OTP_SENT`. Estados: `OTP_SENT`, `PROCESSING`, `ACCREDITED`, `REJECTED` y `EXPIRED`; el pago existe sólo con `ACCREDITED` (`payment_uuid`). Con `Idempotency-Key`, repetir la llamada devuelve el mismo débito.

        Errores típicos: 400 `immediate_debit_not_supported_by_connection`, `charge_payer_field_invalid`, `amount_invalid`, `provider_credentials_rejected`; 402 `subscription_required`; 409 `connection_inactive`; 429 si se agotó el cupo; 503 `provider_unavailable`.
      x-description-en: |-
        First step of the immediate debit: asks the payer bank to send the payer a key by message. It does not charge yet; confirming with the key is a separate step.

        **Connections that support it:** Bancaribe (`BANCARIBE_P2P`), Banco Venezolano de Crédito (`BVC_P2P`), BNC (`BNC_P2P`), R4 (`R4_P2P`).

        The connection must have `IMMEDIATE_DEBIT` in `capabilities`. `GET /v1/providers` states, in `immediate_debit`, the payer data each bank requires (`required_fields`), the amount range (outside it, 400 `immediate_debit_amount_out_of_range`), the key length and how long it is valid. The caller is the merchant system and not the buyer: the payer key is neither stored nor logged.

        Response: 201 with the debit in `OTP_SENT`. Statuses: `OTP_SENT`, `PROCESSING`, `ACCREDITED`, `REJECTED` and `EXPIRED`; the payment exists only with `ACCREDITED` (`payment_uuid`). With `Idempotency-Key`, repeating the call returns the same debit.

        Typical errors: 400 `immediate_debit_not_supported_by_connection`, `charge_payer_field_invalid`, `amount_invalid`, `provider_credentials_rejected`; 402 `subscription_required`; 409 `connection_inactive`; 429 if the quota ran out; 503 `provider_unavailable`.
      tags: [Débito inmediato]
      x-cash-scope: immediate_debits:create
      x-cash-sdk: immediateDebits.create
      parameters:
        - {$ref: '#/components/parameters/IdempotencyKey'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/ImmediateDebitCreateBody'}}
      responses:
        '201':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/ImmediateDebitView'}}
        '200':
          description: Repetición de una petición con la misma Idempotency-Key
          headers:
            Idempotent-Replayed: {description: 'true cuando la respuesta repite una petición con la misma Idempotency-Key.', schema: {type: string, enum: ['true']}}
          content:
            application/json: {schema: {$ref: '#/components/schemas/ImmediateDebitView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, payment_connection_not_found, immediate_debit_not_supported_by_connection, amount_invalid, immediate_debit_amount_out_of_range, charge_payer_field_invalid, provider_rejected_request, provider_credentials_rejected]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '402': {description: La suscripción no permite la operación, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [subscription_required, subscription_charges_suspended]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '409': {description: Duplicado o conflicto de estado, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [idempotency_key_reused, connection_inactive]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded, quota_limit_reached, plan_monthly_quota_reached]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [provider_unavailable]}}}]}}}}
  /v1/immediate-debits/{uuid}:
    get:
      operationId: getImmediateDebit
      summary: Devuelve un débito inmediato
      x-cash-providers: [BANCARIBE_P2P, BVC_P2P, BNC_P2P, R4_P2P]
      description: |-
        Devuelve un débito inmediato con su estado. Es la forma de resolver uno en `PROCESSING`: no se reintenta la confirmación, se consulta.

        **Conexiones que lo admiten:** Bancaribe (`BANCARIBE_P2P`), Banco Venezolano de Crédito (`BVC_P2P`), BNC (`BNC_P2P`), R4 (`R4_P2P`).
      x-description-en: |-
        Returns an immediate debit with its status. It is how one in `PROCESSING` is resolved: the confirmation is not retried, it is read.

        **Connections that support it:** Bancaribe (`BANCARIBE_P2P`), Banco Venezolano de Crédito (`BVC_P2P`), BNC (`BNC_P2P`), R4 (`R4_P2P`).
      tags: [Débito inmediato]
      x-cash-scope: immediate_debits:read
      x-cash-sdk: immediateDebits.get
      parameters:
        - {$ref: '#/components/parameters/UUID'}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/ImmediateDebitView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [immediate_debit_not_found]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/immediate-debits/{uuid}/confirm:
    post:
      operationId: confirmImmediateDebit
      summary: Confirma un débito inmediato con la clave
      x-cash-providers: [BANCARIBE_P2P, BVC_P2P, BNC_P2P, R4_P2P]
      description: |-
        Segundo paso del débito inmediato: confirma con la clave (`otp`, sólo dígitos) que el pagador recibió del banco, y el banco cobra.

        **Conexiones que lo admiten:** Bancaribe (`BANCARIBE_P2P`), Banco Venezolano de Crédito (`BVC_P2P`), BNC (`BNC_P2P`), R4 (`R4_P2P`).

        Un débito en `PROCESSING` se resuelve consultándolo con `GET /v1/immediate-debits/{uuid}` o esperando la notificación (`immediate_debit.accredited`, `immediate_debit.rejected`, `immediate_debit.expired`); la confirmación no se reintenta, porque el cobro pudo haberse hecho aunque no haya respuesta.

        Errores típicos: 400 `immediate_debit_otp_format_invalid`; 404 `immediate_debit_not_found`; 409 `immediate_debit_otp_expired`, `immediate_debit_not_awaiting_otp`, `immediate_debit_confirm_in_progress` e `immediate_debit_otp_invalid_new_sent` (el banco envió otra clave al pagador); 503 `provider_unavailable`.
      x-description-en: |-
        Second step of the immediate debit: confirms with the key (`otp`, digits only) the payer received from the bank, and the bank charges.

        **Connections that support it:** Bancaribe (`BANCARIBE_P2P`), Banco Venezolano de Crédito (`BVC_P2P`), BNC (`BNC_P2P`), R4 (`R4_P2P`).

        A debit in `PROCESSING` is resolved by reading it with `GET /v1/immediate-debits/{uuid}` or waiting for the notification (`immediate_debit.accredited`, `immediate_debit.rejected`, `immediate_debit.expired`); the confirmation is not retried, because the charge may have been made even with no answer.

        Typical errors: 400 `immediate_debit_otp_format_invalid`; 404 `immediate_debit_not_found`; 409 `immediate_debit_otp_expired`, `immediate_debit_not_awaiting_otp`, `immediate_debit_confirm_in_progress` and `immediate_debit_otp_invalid_new_sent` (the bank sent the payer another key); 503 `provider_unavailable`.
      tags: [Débito inmediato]
      x-cash-scope: immediate_debits:create
      x-cash-sdk: immediateDebits.confirm
      parameters:
        - {$ref: '#/components/parameters/UUID'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/ImmediateDebitConfirmBody'}}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/ImmediateDebitView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, immediate_debit_otp_format_invalid]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '402': {description: La suscripción no permite la operación, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [subscription_required, subscription_charges_suspended]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [immediate_debit_not_found]}}}]}}}}
        '409': {description: Duplicado o conflicto de estado, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [immediate_debit_otp_expired, immediate_debit_confirm_in_progress, immediate_debit_not_awaiting_otp, immediate_debit_otp_invalid_new_sent]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [provider_unavailable]}}}]}}}}
  /v1/immediate-debits/{uuid}/traces:
    get:
      operationId: listImmediateDebitTraces
      summary: Lista las trazas de un débito inmediato
      tags: [Trazas]
      x-cash-scope: immediate_debits:read
      x-cash-sdk: immediateDebits.traces
      description: "Lista las llamadas hechas al banco por el débito."
      x-description-en: "Lists the calls made to the bank for the debit."
      parameters:
        - {$ref: '#/components/parameters/UUID'}
        - {$ref: '#/components/parameters/FromOptional'}
        - {$ref: '#/components/parameters/ToOptional'}
        - {$ref: '#/components/parameters/Cursor'}
        - {$ref: '#/components/parameters/Limit'}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {allOf: [{$ref: '#/components/schemas/CursorPage'}, {type: object, properties: {items: {type: array, items: {$ref: '#/components/schemas/TraceSummaryView'}}}}]}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, cursor_invalid, date_range_required, date_range_too_wide]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [immediate_debit_not_found]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/immediate-debits/{uuid}/traces/{trace_uuid}:
    get:
      operationId: getImmediateDebitTrace
      summary: Devuelve el detalle de una traza de un débito inmediato
      tags: [Trazas]
      x-cash-scope: immediate_debits:read
      x-cash-sdk: immediateDebits.trace
      description: "Devuelve el detalle de una llamada del débito."
      x-description-en: "Returns the detail of a debit call."
      parameters:
        - {$ref: '#/components/parameters/UUID'}
        - {$ref: '#/components/parameters/TraceUUID'}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/TraceView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [immediate_debit_not_found, trace_not_found]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/notifications/{message_id}:
    get:
      operationId: getNotification
      summary: Devuelve una notificación con sus intentos
      tags: [Notificaciones]
      x-cash-scope: notifications:read
      x-cash-sdk: notifications.get
      description: "Devuelve una notificación con sus intentos de entrega, sin el cuerpo de la respuesta del receptor."
      x-description-en: "Returns a notification with its delivery attempts, without the receiver response body."
      parameters:
        - {$ref: '#/components/parameters/MessageID'}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/NotificationDetailView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [notification_not_found]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/notifications/{message_id}/resend:
    post:
      operationId: resendNotification
      summary: Reenvía una notificación con el mismo id de evento
      tags: [Notificaciones]
      x-cash-scope: notifications:resend
      x-cash-sdk: notifications.resend
      description: "Reenvía una notificación; el reenvío conserva el identificador del evento y lleva otro identificador de entrega."
      x-description-en: "Resends a notification; the resend keeps the event identifier and carries a new delivery identifier."
      parameters:
        - {$ref: '#/components/parameters/MessageID'}
      responses:
        '202':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/NotificationMessageResponse'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [notification_not_found]}}}]}}}}
        '409': {description: Duplicado o conflicto de estado, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [notification_destination_missing]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/payment-checks:
    get:
      operationId: listPaymentChecks
      summary: Lista las verificaciones de pago hechas
      x-cash-providers: [BANCARIBE_P2P, BDV_P2P, BT_P2P, BVC_P2P, BINANCE_PERSONAL, BNC_P2P, MERCANTIL_P2P, R4_P2P]
      description: |-
        Lista las validaciones de pago hechas en un rango de fechas, con su resultado (`outcome`: `FOUND`, `NOT_FOUND`, `AMOUNT_MISMATCH`, `PROVIDER_UNAVAILABLE`, `PROVIDER_REJECTED` o `PLAN_QUOTA_REACHED`).

        **Conexiones que lo admiten:** Bancaribe (`BANCARIBE_P2P`), Banco de Venezuela (`BDV_P2P`), Banco del Tesoro (`BT_P2P`), Banco Venezolano de Crédito (`BVC_P2P`), Binance (cuenta personal) (`BINANCE_PERSONAL`), BNC (`BNC_P2P`), Mercantil (`MERCANTIL_P2P`), R4 (`R4_P2P`).
      x-description-en: |-
        Lists the payment verifications made in a date range, with their result (`outcome`: `FOUND`, `NOT_FOUND`, `AMOUNT_MISMATCH`, `PROVIDER_UNAVAILABLE`, `PROVIDER_REJECTED` or `PLAN_QUOTA_REACHED`).

        **Connections that support it:** Bancaribe (`BANCARIBE_P2P`), Banco de Venezuela (`BDV_P2P`), Banco del Tesoro (`BT_P2P`), Banco Venezolano de Crédito (`BVC_P2P`), Binance (cuenta personal) (`BINANCE_PERSONAL`), BNC (`BNC_P2P`), Mercantil (`MERCANTIL_P2P`), R4 (`R4_P2P`).
      tags: [Pagos]
      x-cash-scope: payments:read
      x-cash-sdk: paymentChecks.list
      parameters:
        - {$ref: '#/components/parameters/From'}
        - {$ref: '#/components/parameters/To'}
        - {$ref: '#/components/parameters/Cursor'}
        - {$ref: '#/components/parameters/Limit'}
        - {name: connection_uuid, in: query, required: false, schema: {type: string, format: uuid}}
        - {name: outcome, in: query, required: false, schema: {type: string, enum: [FOUND, NOT_FOUND, AMOUNT_MISMATCH, PROVIDER_UNAVAILABLE, PROVIDER_REJECTED, PLAN_QUOTA_REACHED]}}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {allOf: [{$ref: '#/components/schemas/CursorPage'}, {type: object, properties: {items: {type: array, items: {$ref: '#/components/schemas/PaymentCheckView'}}}}]}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, cursor_invalid, date_range_required, date_range_too_wide]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/payment-links:
    get:
      operationId: listPaymentLinks
      summary: Lista los links de pago
      x-cash-providers: [BDV_BIOPAGO, BINANCE_PAY, MERCADO_PAGO, PAYPAL, SPIDI, STRIPE, WAYU_PAY]
      description: |-
        Lista los links de pago de un rango de fechas, de más reciente a más antiguo, con paginación por cursor.

        **Conexiones que lo admiten:** BDV Biopago (`BDV_BIOPAGO`), Binance Pay (comercio) (`BINANCE_PAY`), Mercado Pago (`MERCADO_PAGO`), PayPal (`PAYPAL`), Spidi (`SPIDI`), Stripe (`STRIPE`), WayuPay (`WAYU_PAY`).

        Filtros: `status`, `connection_uuid`, `provider` (cualquiera de las pasarelas con links), `currency` (la moneda original del precio), `external_reference` y `product_uuid` (los links de checkouts que vendieron ese producto).
      x-description-en: |-
        Lists the payment links of a date range, newest first, with cursor pagination.

        **Connections that support it:** BDV Biopago (`BDV_BIOPAGO`), Binance Pay (comercio) (`BINANCE_PAY`), Mercado Pago (`MERCADO_PAGO`), PayPal (`PAYPAL`), Spidi (`SPIDI`), Stripe (`STRIPE`), WayuPay (`WAYU_PAY`).

        Filters: `status`, `connection_uuid`, `provider` (any of the gateways with links), `currency` (the original price currency), `external_reference` and `product_uuid` (links of checkouts that sold that product).
      tags: [Links de pago]
      x-cash-scope: payment_links:read
      x-cash-sdk: paymentLinks.list
      parameters:
        - {$ref: '#/components/parameters/From'}
        - {$ref: '#/components/parameters/To'}
        - {$ref: '#/components/parameters/Cursor'}
        - {$ref: '#/components/parameters/Limit'}
        - {name: status, in: query, required: false, schema: {type: string, enum: [PENDING, PAID, EXPIRED, REJECTED, CANCELED]}}
        - {name: connection_uuid, in: query, required: false, schema: {type: string, format: uuid}}
        - {name: provider, in: query, required: false, schema: {type: string, enum: [BDV_BIOPAGO, BINANCE_PAY, MERCADO_PAGO, PAYPAL, SPIDI, STRIPE, WAYU_PAY]}}
        - {name: currency, in: query, required: false, schema: {type: string, enum: [ARS, BOB, BRL, CLP, COP, CRC, CUP, DOP, EUR, GTQ, HNL, MXN, NIO, PAB, PEN, PYG, USD, UYU, VES]}}
        - {name: external_reference, in: query, required: false, schema: {type: string, maxLength: 64}}
        - {name: product_uuid, in: query, required: false, schema: {type: string, format: uuid}}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {allOf: [{$ref: '#/components/schemas/CursorPage'}, {type: object, properties: {items: {type: array, items: {$ref: '#/components/schemas/PaymentLinkView'}}}}]}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, cursor_invalid, date_range_required, date_range_too_wide, payment_link_filters_combined]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
    post:
      operationId: createPaymentLink
      summary: Crea un link de pago
      x-cash-providers: [BDV_BIOPAGO, BINANCE_PAY, MERCADO_PAGO, PAYPAL, SPIDI, STRIPE, WAYU_PAY]
      x-cash-split-providers: [SPIDI]
      description: |-
        Crea un link de pago: una dirección (`payment_url`) que se le entrega al comprador para que pague en la página de la pasarela.

        **Conexiones que lo admiten:** BDV Biopago (`BDV_BIOPAGO`), Binance Pay (comercio) (`BINANCE_PAY`), Mercado Pago (`MERCADO_PAGO`), PayPal (`PAYPAL`), Spidi (`SPIDI`), Stripe (`STRIPE`), WayuPay (`WAYU_PAY`).

        **Conexiones que admiten el reparto del cobro:** Spidi (`SPIDI`).

        **Moneda y monto.** `amount` va en `currency`, cualquiera del catálogo; sin `currency` se usa la moneda de cobro de la conexión. El cobro siempre se hace en la moneda de la conexión: bolívares (`VES`) con las pasarelas de Venezuela, dólares (`USD`) con Binance Pay y la que se fijó al crear la conexión con Stripe, PayPal y Mercado Pago. Si el precio está en otra moneda, el monto se convierte al crear y queda fijo: de USD o EUR a bolívares con la tasa oficial del día de Caracas y cualquier otro par con las cotizaciones del día. El link guarda `original_amount`, `amount`, `rate` y `rate_value_date`. Sin cotización disponible responde 503 `exchange_rate_unavailable`.

        **Datos del pagador (`payer`).** BDV Biopago los exige completos (documento V o E, correo y teléfono). Mercado Pago, Stripe y PayPal los aceptan opcionales, Stripe y PayPal sólo con nombre y correo. Las demás pasarelas no los admiten (`payment_link_payer_not_allowed`).

        **Vencimiento.** Cada pasarela fija el suyo y `expires_at` lo informa (vacío si el link no vence). Todo link Spidi vence a las 7 horas o a las 11:59 p. m. de Caracas, lo que llegue primero, y entre las 11:51 p. m. y las 12:10 a. m. de Caracas no se crean links Spidi (503 `spidi_rate_changeover`).

        **Respuesta.** `link` con `uuid`, `status` (`PENDING`, `PAID`, `EXPIRED`, `REJECTED` o `CANCELED`) y `payment_url`; con Spidi viene además `payment_qr`. El resultado llega por notificación (`payment_link.paid`, `payment_link.expired`, `payment_link.rejected`, `payment_link.canceled`) y se lee con `GET /v1/payment-links/{uuid}`.

        **Repetición.** Con `Idempotency-Key`, repetir la llamada devuelve el mismo link (cabecera `Idempotent-Replayed`).

        Errores típicos: 400 `connection_does_not_support_links` (la conexión no es de una pasarela con links), `payment_link_payer_required`, `payment_link_payer_not_allowed`, `payment_link_currency_invalid`, `amount_invalid`, `split_invalid`; 402 si la suscripción no permite links; 409 `connection_inactive`; 429 si se agotó el cupo de la cuenta; 503 `provider_unavailable`.
      x-description-en: |-
        Creates a payment link: an address (`payment_url`) handed to the buyer to pay on the gateway page.

        **Connections that support it:** BDV Biopago (`BDV_BIOPAGO`), Binance Pay (comercio) (`BINANCE_PAY`), Mercado Pago (`MERCADO_PAGO`), PayPal (`PAYPAL`), Spidi (`SPIDI`), Stripe (`STRIPE`), WayuPay (`WAYU_PAY`).

        **Connections that support splitting the charge:** Spidi (`SPIDI`).

        **Currency and amount.** `amount` is in `currency`, any of the catalog; without `currency` the charge currency of the connection is used. The charge is always made in the connection currency: bolivars (`VES`) with Venezuelan gateways, dollars (`USD`) with Binance Pay and the one set when the connection was created with Stripe, PayPal and Mercado Pago. If the price is in another currency, the amount is converted at creation and stays fixed: from USD or EUR to bolivars with the official rate of the Caracas day and any other pair with the day quotes. The link stores `original_amount`, `amount`, `rate` and `rate_value_date`. With no quote available it answers 503 `exchange_rate_unavailable`.

        **Payer data (`payer`).** BDV Biopago requires it complete (ID type V or E, email and phone). Mercado Pago, Stripe and PayPal accept it optional, Stripe and PayPal only with name and email. The other gateways do not accept it (`payment_link_payer_not_allowed`).

        **Expiry.** Each gateway sets its own and `expires_at` reports it (empty if the link does not expire). Every Spidi link expires at 7 hours or 11:59 p.m. Caracas time, whichever comes first, and between 11:51 p.m. and 12:10 a.m. Caracas time Spidi links are not created (503 `spidi_rate_changeover`).

        **Response.** `link` with `uuid`, `status` (`PENDING`, `PAID`, `EXPIRED`, `REJECTED` or `CANCELED`) and `payment_url`; with Spidi `payment_qr` also comes. The result arrives by notification (`payment_link.paid`, `payment_link.expired`, `payment_link.rejected`, `payment_link.canceled`) and is read with `GET /v1/payment-links/{uuid}`.

        **Repetition.** With `Idempotency-Key`, repeating the call returns the same link (`Idempotent-Replayed` header).

        Typical errors: 400 `connection_does_not_support_links` (the connection is not a gateway with links), `payment_link_payer_required`, `payment_link_payer_not_allowed`, `payment_link_currency_invalid`, `amount_invalid`, `split_invalid`; 402 if the subscription does not allow links; 409 `connection_inactive`; 429 if the account quota ran out; 503 `provider_unavailable`.
      tags: [Links de pago]
      x-cash-scope: payment_links:create
      x-cash-sdk: paymentLinks.create
      parameters:
        - {$ref: '#/components/parameters/IdempotencyKey'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/PaymentLinkCreateBody'}}
      responses:
        '201':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/PaymentLinkCreateResponse'}}
        '200':
          description: Repetición de una petición con la misma Idempotency-Key
          headers:
            Idempotent-Replayed: {description: 'true cuando la respuesta repite una petición con la misma Idempotency-Key.', schema: {type: string, enum: ['true']}}
          content:
            application/json: {schema: {$ref: '#/components/schemas/PaymentLinkCreateResponse'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, payment_link_connection_not_found, connection_does_not_support_links, payment_link_payer_required, payment_link_payer_not_allowed, payment_link_currency_invalid, amount_invalid, idempotency_key_invalid, split_invalid, split_total_mismatch, split_not_supported, split_partner_rejected]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '402': {description: La suscripción no permite la operación, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [subscription_required, subscription_links_suspended]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '409': {description: Duplicado o conflicto de estado, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [idempotency_key_reused, connection_inactive, connection_archived]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded, quota_limit_reached, plan_monthly_quota_reached]}}}]}}}}
        '503': {description: Servicio no disponible, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [provider_unavailable, spidi_rate_changeover, exchange_rate_unavailable, split_partner_unverifiable]}}}]}}}}
  /v1/payment-links/export:
    get:
      operationId: exportPaymentLinks
      summary: Exporta los links de pago en CSV
      x-cash-providers: [BDV_BIOPAGO, BINANCE_PAY, MERCADO_PAGO, PAYPAL, SPIDI, STRIPE, WAYU_PAY]
      description: |-
        Exporta en CSV los links de pago de un rango de fechas, con los mismos filtros que la lista.

        **Conexiones que lo admiten:** BDV Biopago (`BDV_BIOPAGO`), Binance Pay (comercio) (`BINANCE_PAY`), Mercado Pago (`MERCADO_PAGO`), PayPal (`PAYPAL`), Spidi (`SPIDI`), Stripe (`STRIPE`), WayuPay (`WAYU_PAY`).
      x-description-en: |-
        Exports in CSV the payment links of a date range, with the same filters as the list.

        **Connections that support it:** BDV Biopago (`BDV_BIOPAGO`), Binance Pay (comercio) (`BINANCE_PAY`), Mercado Pago (`MERCADO_PAGO`), PayPal (`PAYPAL`), Spidi (`SPIDI`), Stripe (`STRIPE`), WayuPay (`WAYU_PAY`).
      tags: [Links de pago]
      x-cash-scope: payment_links:read
      x-cash-sdk: paymentLinks.export
      parameters:
        - {$ref: '#/components/parameters/From'}
        - {$ref: '#/components/parameters/To'}
        - {name: status, in: query, required: false, schema: {type: string, enum: [PENDING, PAID, EXPIRED, REJECTED, CANCELED]}}
        - {name: connection_uuid, in: query, required: false, schema: {type: string, format: uuid}}
        - {name: provider, in: query, required: false, schema: {type: string, enum: [BDV_BIOPAGO, BINANCE_PAY, MERCADO_PAGO, PAYPAL, SPIDI, STRIPE, WAYU_PAY]}}
        - {name: currency, in: query, required: false, schema: {type: string, enum: [ARS, BOB, BRL, CLP, COP, CRC, CUP, DOP, EUR, GTQ, HNL, MXN, NIO, PAB, PEN, PYG, USD, UYU, VES]}}
        - {name: external_reference, in: query, required: false, schema: {type: string, maxLength: 64}}
        - {name: product_uuid, in: query, required: false, schema: {type: string, format: uuid}}
      responses:
        '200':
          description: Respuesta correcta
          content:
            text/csv: {schema: {type: string}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, date_range_required, date_range_too_wide, payment_link_filters_combined]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/payment-links/{uuid}:
    get:
      operationId: getPaymentLink
      summary: Devuelve un link de pago
      x-cash-providers: [BDV_BIOPAGO, BINANCE_PAY, MERCADO_PAGO, PAYPAL, SPIDI, STRIPE, WAYU_PAY]
      description: |-
        Devuelve un link de pago con su moneda original, el monto en la moneda de cobro, la tasa, su estado y, si se pagó, el pago (`payment_uuid`); con reparto, `split_resolution` y `split_receivers`.

        **Conexiones que lo admiten:** BDV Biopago (`BDV_BIOPAGO`), Binance Pay (comercio) (`BINANCE_PAY`), Mercado Pago (`MERCADO_PAGO`), PayPal (`PAYPAL`), Spidi (`SPIDI`), Stripe (`STRIPE`), WayuPay (`WAYU_PAY`).
      x-description-en: |-
        Returns a payment link with its original currency, the amount in the charge currency, the rate, its status and, if paid, the payment (`payment_uuid`); with a split, `split_resolution` and `split_receivers`.

        **Connections that support it:** BDV Biopago (`BDV_BIOPAGO`), Binance Pay (comercio) (`BINANCE_PAY`), Mercado Pago (`MERCADO_PAGO`), PayPal (`PAYPAL`), Spidi (`SPIDI`), Stripe (`STRIPE`), WayuPay (`WAYU_PAY`).
      tags: [Links de pago]
      x-cash-scope: payment_links:read
      x-cash-sdk: paymentLinks.get
      parameters:
        - {$ref: '#/components/parameters/UUID'}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/PaymentLinkView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [payment_link_not_found]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/payment-links/{uuid}/cancel:
    post:
      operationId: cancelPaymentLink
      summary: Cancela un link de pago pendiente
      x-cash-providers: [BDV_BIOPAGO, BINANCE_PAY, MERCADO_PAGO, PAYPAL, SPIDI, STRIPE, WAYU_PAY]
      description: |-
        Cancela un link de pago pendiente: deja de poder pagarse y se avisa con `payment_link.canceled`.

        **Conexiones que lo admiten:** BDV Biopago (`BDV_BIOPAGO`), Binance Pay (comercio) (`BINANCE_PAY`), Mercado Pago (`MERCADO_PAGO`), PayPal (`PAYPAL`), Spidi (`SPIDI`), Stripe (`STRIPE`), WayuPay (`WAYU_PAY`).

        Errores típicos: 404 `payment_link_not_found`; 409 `payment_link_not_pending` si ya no está pendiente y `payment_link_already_paid` si se pagó; 503 `provider_unavailable` si la pasarela no pudo cerrar el link.
      x-description-en: |-
        Cancels a pending payment link: it can no longer be paid and `payment_link.canceled` is notified.

        **Connections that support it:** BDV Biopago (`BDV_BIOPAGO`), Binance Pay (comercio) (`BINANCE_PAY`), Mercado Pago (`MERCADO_PAGO`), PayPal (`PAYPAL`), Spidi (`SPIDI`), Stripe (`STRIPE`), WayuPay (`WAYU_PAY`).

        Typical errors: 404 `payment_link_not_found`; 409 `payment_link_not_pending` if it is no longer pending and `payment_link_already_paid` if it was paid; 503 `provider_unavailable` if the gateway could not close the link.
      tags: [Links de pago]
      x-cash-scope: payment_links:create
      x-cash-sdk: paymentLinks.cancel
      parameters:
        - {$ref: '#/components/parameters/UUID'}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/PaymentLinkView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [payment_link_not_found]}}}]}}}}
        '409': {description: Duplicado o conflicto de estado, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [payment_link_not_pending, payment_link_already_paid]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [provider_unavailable]}}}]}}}}
  /v1/payment-links/{uuid}/traces:
    get:
      operationId: listPaymentLinkTraces
      summary: Lista las trazas de un link de pago
      tags: [Trazas]
      x-cash-scope: payment_links:read
      x-cash-sdk: paymentLinks.traces
      description: "Lista las llamadas hechas a la pasarela por el link."
      x-description-en: "Lists the calls made to the gateway for the link."
      parameters:
        - {$ref: '#/components/parameters/UUID'}
        - {$ref: '#/components/parameters/FromOptional'}
        - {$ref: '#/components/parameters/ToOptional'}
        - {$ref: '#/components/parameters/Cursor'}
        - {$ref: '#/components/parameters/Limit'}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {allOf: [{$ref: '#/components/schemas/CursorPage'}, {type: object, properties: {items: {type: array, items: {$ref: '#/components/schemas/TraceSummaryView'}}}}]}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, cursor_invalid, date_range_required, date_range_too_wide]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [payment_link_not_found]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/payment-links/{uuid}/traces/{trace_uuid}:
    get:
      operationId: getPaymentLinkTrace
      summary: Devuelve el detalle de una traza de un link de pago
      tags: [Trazas]
      x-cash-scope: payment_links:read
      x-cash-sdk: paymentLinks.trace
      description: "Devuelve el detalle de una llamada del link."
      x-description-en: "Returns the detail of a link call."
      parameters:
        - {$ref: '#/components/parameters/UUID'}
        - {$ref: '#/components/parameters/TraceUUID'}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/TraceView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [payment_link_not_found, trace_not_found]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/payments:
    get:
      operationId: listPayments
      summary: Lista los pagos aceptados
      tags: [Pagos]
      x-cash-scope: payments:read
      x-cash-sdk: payments.list
      description: "Lista los pagos de un rango de fechas, de más reciente a más antiguo, con paginación por cursor."
      x-description-en: "Lists payments in a date range, newest first, with cursor pagination."
      parameters:
        - {$ref: '#/components/parameters/From'}
        - {$ref: '#/components/parameters/To'}
        - {$ref: '#/components/parameters/Cursor'}
        - {$ref: '#/components/parameters/Limit'}
        - {name: connection_uuid, in: query, required: false, schema: {type: string, format: uuid}}
        - {name: source, in: query, required: false, schema: {type: string, enum: [VERIFIED, NOTIFIED, LINK, IMMEDIATE_DEBIT, C2P, PROVIDER_CHARGE]}}
        - {name: reconciled, in: query, required: false, schema: {type: boolean}}
        - {name: reference, in: query, required: false, schema: {type: string}}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {allOf: [{$ref: '#/components/schemas/CursorPage'}, {type: object, properties: {items: {type: array, items: {$ref: '#/components/schemas/PaymentView'}}}}]}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, cursor_invalid, date_range_required, date_range_too_wide]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/payments/export:
    get:
      operationId: exportPayments
      summary: Exporta los pagos de un rango en CSV
      tags: [Pagos]
      x-cash-scope: payments:read
      x-cash-sdk: payments.export
      description: "Exporta en CSV los pagos de un rango de fechas."
      x-description-en: "Exports the payments of a date range as CSV."
      parameters:
        - {$ref: '#/components/parameters/From'}
        - {$ref: '#/components/parameters/To'}
        - {name: connection_uuid, in: query, required: false, schema: {type: string, format: uuid}}
        - {name: reconciled, in: query, required: false, schema: {type: boolean}}
      responses:
        '200':
          description: Respuesta correcta
          content:
            text/csv: {schema: {type: string}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, date_range_required, date_range_too_wide]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/payments/verify:
    post:
      operationId: verifyPayment
      summary: Valida un pago móvil contra lo registrado y contra el banco
      x-cash-providers: [BANCARIBE_P2P, BDV_P2P, BT_P2P, BVC_P2P, BINANCE_PERSONAL, BNC_P2P, MERCANTIL_P2P, R4_P2P]
      description: |-
        Comprueba en el banco que un pago móvil existe y coincide en monto, y lo registra para conciliarlo.

        **Conexiones que lo admiten:** Bancaribe (`BANCARIBE_P2P`), Banco de Venezuela (`BDV_P2P`), Banco del Tesoro (`BT_P2P`), Banco Venezolano de Crédito (`BVC_P2P`), Binance (cuenta personal) (`BINANCE_PERSONAL`), BNC (`BNC_P2P`), Mercantil (`MERCANTIL_P2P`), R4 (`R4_P2P`).

        `reference` es la referencia que el banco le dio al pago (con Binance (cuenta personal), el número de la operación de Binance Pay) y `payment_date` la fecha del pago en la zona de la cuenta. Los datos del pagador que cada banco exige (`payer_phone`, `payer_document`, `payer_bank_code`) los dice `GET /v1/providers` en `verify_fields` y `verify_any_of`. Con Binance (cuenta personal) `reference` son los últimos 6 dígitos del número de operación de Binance o el número completo; menos de 6 dígitos o un valor no numérico responde 400, y si dos operaciones terminan en los mismos dígitos el resultado es ambiguo (`not_found_reason` `reference_ambiguous`) y se repite con el número completo. Las pasarelas con links no validan por referencia: su pago llega solo por el link o el checkout.

        Respuesta: `outcome` es `FOUND` (existe y el monto coincide; `payment` trae el pago registrado), `NOT_FOUND` (`not_found_reason` y `message` dicen por qué) o `AMOUNT_MISMATCH` (existe con otro monto; `bank_amount` trae el del banco). `answered_from` es `STORED` si el pago ya estaba registrado o `PROVIDER` si se consultó al banco. Cada pago aceptado nuevo cuenta en el cupo mensual del plan; repetir la validación de un pago ya registrado no lo gasta. No admite `Idempotency-Key`. Cada intento queda en `GET /v1/payment-checks`.

        Errores típicos: 400 `reference_invalid`, `payment_date_out_of_range`, `amount_invalid` o `provider_credentials_rejected` (el banco rechazó las credenciales de la conexión); 402 `subscription_required`; 404 `connection_not_found`; 409 `connection_inactive`; 429 si se agotó el cupo del plan; 503 `provider_unavailable` si el banco no pudo responder (el intento queda registrado y se puede repetir).
      x-description-en: |-
        Checks at the bank that a mobile payment exists and matches the amount, and records it to be reconciled.

        **Connections that support it:** Bancaribe (`BANCARIBE_P2P`), Banco de Venezuela (`BDV_P2P`), Banco del Tesoro (`BT_P2P`), Banco Venezolano de Crédito (`BVC_P2P`), Binance (cuenta personal) (`BINANCE_PERSONAL`), BNC (`BNC_P2P`), Mercantil (`MERCANTIL_P2P`), R4 (`R4_P2P`).

        `reference` is the reference the bank gave the payment (with Binance (personal account), the Binance Pay operation number) and `payment_date` the payment date in the account zone. The payer data each bank requires (`payer_phone`, `payer_document`, `payer_bank_code`) is given by `GET /v1/providers` in `verify_fields` and `verify_any_of`. With Binance (personal account) `reference` is the last 6 digits of the Binance operation number or the full number; fewer than 6 digits or a non-numeric value answers 400, and if two operations end in the same digits the result is ambiguous (`not_found_reason` `reference_ambiguous`) and it is repeated with the full number. Gateways with links do not verify by reference: their payment arrives by itself through the link or the checkout.

        Response: `outcome` is `FOUND` (it exists and the amount matches; `payment` carries the recorded payment), `NOT_FOUND` (`not_found_reason` and `message` say why) or `AMOUNT_MISMATCH` (it exists with another amount; `bank_amount` carries the bank one). `answered_from` is `STORED` if the payment was already recorded or `PROVIDER` if the bank was queried. Each new accepted payment counts against the monthly plan quota; repeating the verification of an already recorded payment does not spend it. It does not accept `Idempotency-Key`. Each attempt stays in `GET /v1/payment-checks`.

        Typical errors: 400 `reference_invalid`, `payment_date_out_of_range`, `amount_invalid` or `provider_credentials_rejected` (the bank rejected the connection credentials); 402 `subscription_required`; 404 `connection_not_found`; 409 `connection_inactive`; 429 if the plan quota ran out; 503 `provider_unavailable` if the bank could not answer (the attempt is recorded and can be repeated).
      tags: [Validar pago móvil]
      x-cash-scope: payments:verify
      x-cash-sdk: payments.verify
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/PaymentVerifyBody'}}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/PaymentVerifyResult'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, payment_connection_not_found, payment_date_out_of_range, amount_invalid, reference_invalid, provider_rejected_request, provider_credentials_rejected]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '402': {description: La suscripción no permite la operación, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [subscription_required]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [connection_not_found]}}}]}}}}
        '409': {description: Duplicado o conflicto de estado, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [connection_inactive]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded, quota_limit_reached, plan_monthly_quota_reached]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [provider_unavailable]}}}]}}}}
  /v1/payments/{uuid}:
    get:
      operationId: getPayment
      summary: Devuelve un pago
      tags: [Pagos]
      x-cash-scope: payments:read
      x-cash-sdk: payments.get
      description: "Devuelve un pago con su conciliación vigente."
      x-description-en: "Returns a payment with its current reconciliation."
      parameters:
        - {$ref: '#/components/parameters/UUID'}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/PaymentView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [payment_not_found]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/payments/{uuid}/reconcile:
    post:
      operationId: reconcilePayment
      summary: Concilia un pago con una referencia
      tags: [Conciliaciones]
      x-cash-scope: reconciliations:create
      x-cash-sdk: payments.reconcile
      description: "Concilia un pago con una factura, un recibo u otra referencia. Conciliar no gasta el cupo del plan."
      x-description-en: "Reconciles a payment with an invoice, a receipt or another reference. Reconciling does not spend the plan quota."
      parameters:
        - {$ref: '#/components/parameters/UUID'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/ReconcileBody'}}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/ReconciliationView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, reconciliation_reference_required]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '402': {description: La suscripción no permite la operación, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [subscription_required, subscription_reconciliation_suspended]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [payment_not_found]}}}]}}}}
        '409': {description: Duplicado o conflicto de estado, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [payment_already_reconciled, payment_refunded_by_provider]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/payments/{uuid}/refunds:
    post:
      operationId: refundPayment
      summary: Reembolsa un pago internacional
      x-cash-providers: [BINANCE_PAY, MERCADO_PAGO, PAYPAL, STRIPE]
      x-cash-disputes-providers: [MERCADO_PAGO, PAYPAL, STRIPE]
      description: |-
        Pide al proveedor el reembolso total o parcial de un pago ya cobrado. El destino lo fija el proveedor y no es un parámetro: el dinero vuelve siempre al medio con que pagó el comprador.

        **Conexiones que lo admiten:** Binance Pay (comercio) (`BINANCE_PAY`), Mercado Pago (`MERCADO_PAGO`), PayPal (`PAYPAL`), Stripe (`STRIPE`).

        **Conexiones que avisan disputas:** Mercado Pago (`MERCADO_PAGO`), PayPal (`PAYPAL`), Stripe (`STRIPE`).

        `amount` es opcional y va en la moneda de cobro del pago; sin él se devuelve todo el saldo. Exige `Idempotency-Key`, que reserva el reembolso por un tiempo limitado: repetir con la misma clave y el mismo cuerpo devuelve el mismo reembolso. Reembolsar no devuelve el cupo del plan ni revierte una conciliación.

        Respuesta: 201 con el reembolso (`status`: `PENDING`, `SUCCEEDED`, `REJECTED` o `UNKNOWN`), el `refunded_amount` acumulado del pago y `fully_refunded`. El pago trae `refunded_amount`, `fully_refunded` y, si el comprador abrió una disputa, `dispute_status` (`OPEN`, `WON` o `LOST`). Una disputa se responde en el panel del proveedor; Cachicamo Cash sólo refleja su estado con `payment.dispute_opened` y `payment.dispute_closed`. Si el proveedor reembolsa por su lado llega `payment.provider_refunded`.

        Errores típicos: 400 `idempotency_key_required`, `amount_invalid`, `provider_capability_unsupported` (el pago es de una conexión que no reembolsa); 404 `payment_not_found`; 409 `payment_not_refundable`, `payment_refund_exceeds_balance`, `payment_refunded_by_provider`, `payment_refund_attempts_exhausted`, `payment_refund_rejected`, `provider_refund_requires_approval` (el proveedor pide que el comercio apruebe el reembolso en su panel) y `provider_refund_not_enabled` (la cuenta del comercio con el proveedor no tiene habilitados los reembolsos); 429 si se agotó el cupo; 503 `provider_unavailable`.
      x-description-en: |-
        Asks the provider for the full or partial refund of an already collected payment. The destination is fixed by the provider and is not a parameter: the money always returns to the means the buyer paid with.

        **Connections that support it:** Binance Pay (comercio) (`BINANCE_PAY`), Mercado Pago (`MERCADO_PAGO`), PayPal (`PAYPAL`), Stripe (`STRIPE`).

        **Connections that report disputes:** Mercado Pago (`MERCADO_PAGO`), PayPal (`PAYPAL`), Stripe (`STRIPE`).

        `amount` is optional and in the payment charge currency; without it the whole balance is returned. It requires `Idempotency-Key`, which reserves the refund for a limited time: repeating with the same key and the same body returns the same refund. Refunding does not give back the plan quota nor revert a reconciliation.

        Response: 201 with the refund (`status`: `PENDING`, `SUCCEEDED`, `REJECTED` or `UNKNOWN`), the accumulated `refunded_amount` of the payment and `fully_refunded`. The payment carries `refunded_amount`, `fully_refunded` and, if the buyer opened a dispute, `dispute_status` (`OPEN`, `WON` or `LOST`). A dispute is answered in the provider panel; Cachicamo Cash only reflects its status with `payment.dispute_opened` and `payment.dispute_closed`. If the provider refunds on its own, `payment.provider_refunded` arrives.

        Typical errors: 400 `idempotency_key_required`, `amount_invalid`, `provider_capability_unsupported` (the payment belongs to a connection that does not refund); 404 `payment_not_found`; 409 `payment_not_refundable`, `payment_refund_exceeds_balance`, `payment_refunded_by_provider`, `payment_refund_attempts_exhausted`, `payment_refund_rejected`, `provider_refund_requires_approval` (the provider asks the merchant to approve the refund in its panel) and `provider_refund_not_enabled` (the merchant account with the provider has no refunds enabled); 429 if the quota ran out; 503 `provider_unavailable`.
      tags: [Reembolsos y disputas]
      x-cash-scope: payments:refund
      x-cash-sdk: payments.refund
      parameters:
        - {$ref: '#/components/parameters/UUID'}
        - {$ref: '#/components/parameters/IdempotencyKey'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/RefundBody'}}
      responses:
        '200':
          description: Repetición de una petición ya atendida con la misma clave
          content:
            application/json: {schema: {$ref: '#/components/schemas/RefundView'}}
        '201':
          description: Reembolso creado
          content:
            application/json: {schema: {$ref: '#/components/schemas/RefundView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, amount_invalid, payment_amount_precision_invalid, idempotency_key_required, idempotency_key_invalid, provider_capability_unsupported]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '402': {description: La suscripción no permite la operación, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [subscription_required]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [payment_not_found]}}}]}}}}
        '409': {description: Duplicado o conflicto de estado, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [payment_refunded_by_provider, payment_not_refundable, payment_refund_exceeds_balance, payment_refund_attempts_exhausted, payment_refund_rejected, provider_refund_requires_approval, provider_refund_not_enabled, idempotency_key_reused]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded, quota_limit_reached]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable, provider_unavailable]}}}]}}}}
  /v1/payments/{uuid}/traces:
    get:
      operationId: listPaymentTraces
      summary: Lista las trazas de un pago
      tags: [Trazas]
      x-cash-scope: payments:read
      x-cash-sdk: payments.traces
      description: "Lista las llamadas del pago y las de su link, débito o cobro de origen."
      x-description-en: "Lists the calls of the payment and of its originating link, debit or charge."
      parameters:
        - {$ref: '#/components/parameters/UUID'}
        - {$ref: '#/components/parameters/FromOptional'}
        - {$ref: '#/components/parameters/ToOptional'}
        - {$ref: '#/components/parameters/Cursor'}
        - {$ref: '#/components/parameters/Limit'}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {allOf: [{$ref: '#/components/schemas/CursorPage'}, {type: object, properties: {items: {type: array, items: {$ref: '#/components/schemas/TraceSummaryView'}}}}]}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, cursor_invalid, date_range_required, date_range_too_wide]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [payment_not_found]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/payments/{uuid}/traces/{trace_uuid}:
    get:
      operationId: getPaymentTrace
      summary: Devuelve el detalle de una traza de un pago
      tags: [Trazas]
      x-cash-scope: payments:read
      x-cash-sdk: payments.trace
      description: "Devuelve el detalle de una llamada del pago."
      x-description-en: "Returns the detail of a payment call."
      parameters:
        - {$ref: '#/components/parameters/UUID'}
        - {$ref: '#/components/parameters/TraceUUID'}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/TraceView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [payment_not_found, trace_not_found]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/providers:
    get:
      operationId: listProviders
      summary: Lista los proveedores soportados y los campos que pide cada uno
      description: |-
        Lista el catálogo de proveedores que se pueden conectar y lo que cada uno pide y admite. Se consulta antes de crear cualquier cobro.

        De cada proveedor devuelve: `provider` (el código que usan las demás rutas) y su nombre comercial `name`; los ambientes que ofrece (`environments`: `SANDBOX`, `PRODUCTION` o ambos); los campos que pide para conectarse (`secret_fields`, `settings_fields`); los que pide para validar un pago (`verify_reference`, `verify_fields`, `verify_any_of`, sólo en los bancos que validan); las especificaciones `immediate_debit` y `c2p` con sus rangos y si piden la IP del pagador (`payer_ip_required`), nulas si el proveedor no las ofrece; `supports_links`, `supports_split` y `accepts_inbound` (recibe avisos del banco); la política de moneda (`currency_policy`: `VES_WITH_RATE` cobra en bolívares y convierte con la tasa del día, `OWN_CURRENCY` cobra en una moneda propia, la fija o la que se elige entre `currencies`); y sus `capabilities`: `HOSTED_CHECKOUT`, `SAVED_METHODS`, `PROVIDER_SUBSCRIPTIONS`, `INSTALLMENTS`, `PAYMENT_REFUND` y `TOKEN_CHARGE`.

        Sólo trae los proveedores disponibles hoy. La tabla «Qué conexión sirve para qué» de la portada resume lo mismo por operación.
      x-description-en: |-
        Lists the catalog of providers that can be connected and what each one asks for and supports. It is read before creating any charge.

        For each provider it returns: `provider` (the code the other routes use) and its commercial name `name`; the environments it offers (`environments`: `SANDBOX`, `PRODUCTION` or both); the fields it asks for to connect (`secret_fields`, `settings_fields`); those it asks for to verify a payment (`verify_reference`, `verify_fields`, `verify_any_of`, only on banks that verify); the `immediate_debit` and `c2p` specifications with their ranges and whether they ask for the payer IP (`payer_ip_required`), null if the provider does not offer them; `supports_links`, `supports_split` and `accepts_inbound` (receives bank notices); the currency policy (`currency_policy`: `VES_WITH_RATE` charges in bolivars and converts with the day rate, `OWN_CURRENCY` charges in an own currency, fixed or chosen among `currencies`); and its `capabilities`: `HOSTED_CHECKOUT`, `SAVED_METHODS`, `PROVIDER_SUBSCRIPTIONS`, `INSTALLMENTS`, `PAYMENT_REFUND` and `TOKEN_CHARGE`.

        It only returns the providers available today. The table "Which connection serves for what" on the cover summarizes the same per operation.
      tags: [Proveedores]
      x-cash-scope: connections:read
      x-cash-sdk: providers.list
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {type: array, items: {$ref: '#/components/schemas/ProviderView'}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/reconciliations:
    get:
      operationId: listReconciliations
      summary: Lista las conciliaciones
      tags: [Conciliaciones]
      x-cash-scope: reconciliations:read
      x-cash-sdk: reconciliations.list
      description: "Lista las conciliaciones de un rango de fechas."
      x-description-en: "Lists reconciliations in a date range."
      parameters:
        - {$ref: '#/components/parameters/From'}
        - {$ref: '#/components/parameters/To'}
        - {$ref: '#/components/parameters/Cursor'}
        - {$ref: '#/components/parameters/Limit'}
        - {name: reference_type, in: query, required: false, schema: {type: string}}
        - {name: reference, in: query, required: false, schema: {type: string}}
        - {name: status, in: query, required: false, schema: {type: string, enum: [ACTIVE, REVERTED]}}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {allOf: [{$ref: '#/components/schemas/CursorPage'}, {type: object, properties: {items: {type: array, items: {$ref: '#/components/schemas/ReconciliationView'}}}}]}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, cursor_invalid, date_range_required, date_range_too_wide]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/reconciliations/{uuid}:
    get:
      operationId: getReconciliation
      summary: Devuelve una conciliación
      tags: [Conciliaciones]
      x-cash-scope: reconciliations:read
      x-cash-sdk: reconciliations.get
      description: "Devuelve una conciliación con su pago."
      x-description-en: "Returns a reconciliation with its payment."
      parameters:
        - {$ref: '#/components/parameters/UUID'}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/ReconciliationView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [reconciliation_not_found]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/reconciliations/{uuid}/revert:
    post:
      operationId: revertReconciliation
      summary: Revierte una conciliación dentro de su plazo
      tags: [Conciliaciones]
      x-cash-scope: reconciliations:revert
      x-cash-sdk: reconciliations.revert
      description: "Revierte una conciliación dentro de su ventana de reversión; el pago vuelve a quedar conciliable."
      x-description-en: "Reverts a reconciliation within its revert window; the payment becomes reconcilable again."
      parameters:
        - {$ref: '#/components/parameters/UUID'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/ReconciliationRevertBody'}}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/ReconciliationView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '402': {description: La suscripción no permite la operación, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [subscription_required, subscription_reconciliation_suspended]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [reconciliation_not_found]}}}]}}}}
        '409': {description: Duplicado o conflicto de estado, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [reconciliation_already_reverted, reconciliation_revert_window_expired]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/usage:
    get:
      operationId: getUsage
      summary: Devuelve el uso del período de la cuenta
      tags: [Uso]
      x-cash-scope: usage:read
      x-cash-sdk: usage.get
      description: "Devuelve el uso del plan: pagos aceptados del mes con su cupo, y conexiones."
      x-description-en: "Returns plan usage: accepted payments of the month against the quota, and connections."
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/UsageView'}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/webhook-event-types:
    get:
      operationId: listWebhookEventTypes
      summary: Lista los tipos de evento que se notifican
      tags: [Notificaciones]
      x-cash-scope: notifications:read
      x-cash-sdk: eventTypes.list
      description: "Lista los tipos de evento que la plataforma notifica."
      x-description-en: "Lists the event types the platform notifies."
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {type: array, items: {$ref: '#/components/schemas/WebhookEventTypeView'}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/products:
    get:
      operationId: listProducts
      summary: Lista los productos
      tags: [Productos]
      x-cash-scope: products:read
      x-cash-sdk: products.list
      description: "Lista los productos del catálogo de la cuenta con paginación por cursor, con filtro por estado y búsqueda por nombre o SKU."
      x-description-en: "Lists the products of the account catalog with cursor pagination, filtered by status and searched by name or SKU."
      parameters:
        - {$ref: '#/components/parameters/FromOptional'}
        - {$ref: '#/components/parameters/ToOptional'}
        - {$ref: '#/components/parameters/Cursor'}
        - {$ref: '#/components/parameters/Limit'}
        - {name: status, in: query, required: false, schema: {type: string, enum: [ACTIVE, INACTIVE]}}
        - {name: q, in: query, required: false, schema: {type: string, maxLength: 80}}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {allOf: [{$ref: '#/components/schemas/CursorPage'}, {type: object, properties: {items: {type: array, items: {$ref: '#/components/schemas/ProductView'}}}}]}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, cursor_invalid, date_range_required, date_range_too_wide]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
    post:
      operationId: createProduct
      summary: Crea un producto
      tags: [Productos]
      x-cash-scope: products:create
      x-cash-sdk: products.create
      description: "Da de alta un producto del catálogo. price_mode FIXED exige amount; OPEN deja que el comprador escriba el monto, con open_min y open_max opcionales: open_min en 0, vacío u omitido hace que la línea de un cart con este producto sea voluntaria. status omitido es ACTIVE. El SKU, si se envía, no se repite entre los productos de la cuenta (409)."
      x-description-en: "Creates a catalog product. price_mode FIXED requires amount; OPEN lets the buyer type the amount, with optional open_min and open_max: open_min 0, empty or omitted makes a cart line with this product voluntary. status omitted is ACTIVE. The SKU, if sent, is unique among the products of the account (409)."
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/ProductBody'}}
      responses:
        '201':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/ProductView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, product_field_invalid]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '402': {description: La suscripción no permite la operación, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [subscription_required, subscription_links_suspended]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '409': {description: Duplicado o conflicto de estado, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [product_sku_duplicate]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded, quota_limit_reached]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/products/{uuid}:
    get:
      operationId: getProduct
      summary: Devuelve un producto
      tags: [Productos]
      x-cash-scope: products:read
      x-cash-sdk: products.get
      description: "Devuelve un producto de la cuenta."
      x-description-en: "Returns a product of the account."
      parameters:
        - {$ref: '#/components/parameters/UUID'}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/ProductView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [product_not_found]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
    put:
      operationId: updateProduct
      summary: Edita un producto
      tags: [Productos]
      x-cash-scope: products:update
      x-cash-sdk: products.update
      description: "Reemplaza todos los campos de un producto: lo omitido vuelve a su valor por defecto. Un producto que ya está en un cart conserva su lugar y el cart toma el precio nuevo, salvo en las líneas con precio pisado. Poner status INACTIVE deja UNAVAILABLE a los carts que lo usan, con PRODUCT_INACTIVE; las sesiones ya abiertas conservan su foto."
      x-description-en: "Replaces every field of a product: what is omitted returns to its default. A product already in a cart keeps its place and the cart takes the new price, except in lines with an overridden price. Setting status INACTIVE leaves the carts using it UNAVAILABLE with PRODUCT_INACTIVE; sessions already open keep their snapshot."
      parameters:
        - {$ref: '#/components/parameters/UUID'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/ProductBody'}}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/ProductView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, product_field_invalid]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '402': {description: La suscripción no permite la operación, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [subscription_required, subscription_links_suspended]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [product_not_found]}}}]}}}}
        '409': {description: Duplicado o conflicto de estado, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [product_sku_duplicate]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
    delete:
      operationId: deleteProduct
      summary: Borra un producto
      tags: [Productos]
      x-cash-scope: products:delete
      x-cash-sdk: products.delete
      description: "Borra un producto del catálogo. Los carts que ya lo tenían siguen vendiéndolo (la línea marca product_deleted) pero no se puede agregar a otros carts; las sesiones de pago ya abiertas conservan su foto."
      x-description-en: "Deletes a catalog product. Carts that already had it keep selling it (the line shows product_deleted) but it cannot be added to other carts; payment sessions already open keep their snapshot."
      parameters:
        - {$ref: '#/components/parameters/UUID'}
      responses:
        '204': {description: El producto se borró}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [product_not_found]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/product-images/{uuid}:
    post:
      operationId: uploadProductImage
      summary: Sube la foto de un producto
      tags: [Productos]
      x-cash-scope: products:update
      x-cash-sdk: products.uploadImage
      description: "Guarda la foto de un producto como multipart/form-data en el campo file y devuelve el producto con su URL."
      x-description-en: "Stores a product photo sent as multipart/form-data in the file field and returns the product with its URL."
      parameters:
        - {$ref: '#/components/parameters/UUID'}
      requestBody:
        required: true
        content:
          multipart/form-data: {schema: {type: object, required: [file], properties: {file: {type: string, format: binary}}}}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/ProductView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, product_image_invalid]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [product_not_found]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable, media_unavailable]}}}]}}}}
    delete:
      operationId: removeProductImage
      summary: Quita la foto de un producto
      tags: [Productos]
      x-cash-scope: products:update
      x-cash-sdk: products.removeImage
      description: "Quita la foto del producto y devuelve el producto sin ella."
      x-description-en: "Removes the product photo and returns the product without it."
      parameters:
        - {$ref: '#/components/parameters/UUID'}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/ProductView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [product_not_found]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/checkout-carts:
    get:
      operationId: listCheckoutCarts
      summary: Lista los carts de checkout
      x-cash-providers: [BANCARIBE_P2P, BDV_P2P, BT_P2P, BVC_P2P, BDV_BIOPAGO, BINANCE_PERSONAL, BINANCE_PAY, BNC_P2P, MERCADO_PAGO, MERCANTIL_P2P, PAYPAL, R4_P2P, SPIDI, STRIPE, WAYU_PAY]
      description: |-
        Lista los carts de checkout de la cuenta con paginación por cursor y filtro por estado.

        **Conexiones que lo admiten:** Bancaribe (`BANCARIBE_P2P`), Banco de Venezuela (`BDV_P2P`), Banco del Tesoro (`BT_P2P`), Banco Venezolano de Crédito (`BVC_P2P`), BDV Biopago (`BDV_BIOPAGO`), Binance (cuenta personal) (`BINANCE_PERSONAL`), Binance Pay (comercio) (`BINANCE_PAY`), BNC (`BNC_P2P`), Mercado Pago (`MERCADO_PAGO`), Mercantil (`MERCANTIL_P2P`), PayPal (`PAYPAL`), R4 (`R4_P2P`), Spidi (`SPIDI`), Stripe (`STRIPE`), WayuPay (`WAYU_PAY`).
      x-description-en: |-
        Lists the checkout carts of the account with cursor pagination and a status filter.

        **Connections that support it:** Bancaribe (`BANCARIBE_P2P`), Banco de Venezuela (`BDV_P2P`), Banco del Tesoro (`BT_P2P`), Banco Venezolano de Crédito (`BVC_P2P`), BDV Biopago (`BDV_BIOPAGO`), Binance (cuenta personal) (`BINANCE_PERSONAL`), Binance Pay (comercio) (`BINANCE_PAY`), BNC (`BNC_P2P`), Mercado Pago (`MERCADO_PAGO`), Mercantil (`MERCANTIL_P2P`), PayPal (`PAYPAL`), R4 (`R4_P2P`), Spidi (`SPIDI`), Stripe (`STRIPE`), WayuPay (`WAYU_PAY`).
      tags: [Checkout]
      x-cash-scope: checkout_carts:read
      x-cash-sdk: checkoutCarts.list
      parameters:
        - {$ref: '#/components/parameters/FromOptional'}
        - {$ref: '#/components/parameters/ToOptional'}
        - {$ref: '#/components/parameters/Cursor'}
        - {$ref: '#/components/parameters/Limit'}
        - {name: status, in: query, required: false, schema: {type: string, enum: [ACTIVE, INACTIVE, EXPIRED, EXHAUSTED, CANCELED]}}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {allOf: [{$ref: '#/components/schemas/CursorPage'}, {type: object, properties: {items: {type: array, items: {$ref: '#/components/schemas/CartView'}}}}]}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, cursor_invalid, date_range_required, date_range_too_wide]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
    post:
      operationId: createCheckoutCart
      summary: Crea un cart de checkout
      x-cash-providers: [BANCARIBE_P2P, BDV_P2P, BT_P2P, BVC_P2P, BDV_BIOPAGO, BINANCE_PERSONAL, BINANCE_PAY, BNC_P2P, MERCADO_PAGO, MERCANTIL_P2P, PAYPAL, R4_P2P, SPIDI, STRIPE, WAYU_PAY]
      x-cash-split-providers: [SPIDI]
      x-cash-installments-providers: [MERCADO_PAGO, STRIPE]
      description: |-
        Crea un cart de un solo pago con líneas de catálogo o propias y devuelve su URL de checkout (checkout_url), que se comparte con el comprador; abrirla no crea sesión ni reserva nada. Todo cart es de pago único. Los campos opcionales omitidos toman su valor por defecto: sin session_minutes la sesión dura una hora, sin max_uses no hay límite de ventas, sin max_installments no hay cuotas, sin expires_at no vence, sin connections ofrece todas las conexiones activas que no son de pruebas, y una conexión sin methods ofrece todos sus métodos. Casos que conviene conocer. Moneda principal: la primera de total_currencies, que si se omite sale de las monedas de cobro de las conexiones del cart; es sólo de presentación y lo que se cobra está en la moneda de la conexión que elige el comprador. Línea en otra moneda: cada línea conserva su moneda; el total se lleva a la moneda de cobro con las cotizaciones del día y un único redondeo, y una conexión sin cotización para alguna línea deja de ser utilizable. Línea voluntaria: una línea abierta con open_min en 0, vacío u omitido se crea sin problema y el comprador puede dejarla sin monto, con lo que no entra en la sesión ni en el pago; una línea abierta con mínimo mayor que 0 es obligatoria. El total del cart debe ser mayor que 0 (al menos una línea fija o abierta con mínimo), si no responde 400 checkout_amount_invalid. Con notification_url la respuesta lleva notification_secret una sola vez; repetir la misma Idempotency-Key con el mismo cuerpo devuelve el cart ya creado (respuesta de repetición con la cabecera Idempotent-Replayed) sin secreto, y con otro cuerpo responde 409 idempotency_key_reused. Errores: 400 por dato inválido (checkout_line_invalid, checkout_amount_invalid, checkout_cart_connection_invalid, checkout_cart_methods_invalid, checkout_cart_expiry_invalid, checkout_cart_installments_invalid, checkout_cart_session_duration_invalid, checkout_cart_max_uses_invalid, checkout_cart_title_required, checkout_cart_field_invalid, notification_url_invalid, idempotency_key_invalid); 402 si la cuenta no tiene suscripción vigente o sus enlaces están suspendidos; 429 si se agotó el cupo de la cuenta.

        **Conexiones que lo admiten:** Bancaribe (`BANCARIBE_P2P`), Banco de Venezuela (`BDV_P2P`), Banco del Tesoro (`BT_P2P`), Banco Venezolano de Crédito (`BVC_P2P`), BDV Biopago (`BDV_BIOPAGO`), Binance (cuenta personal) (`BINANCE_PERSONAL`), Binance Pay (comercio) (`BINANCE_PAY`), BNC (`BNC_P2P`), Mercado Pago (`MERCADO_PAGO`), Mercantil (`MERCANTIL_P2P`), PayPal (`PAYPAL`), R4 (`R4_P2P`), Spidi (`SPIDI`), Stripe (`STRIPE`), WayuPay (`WAYU_PAY`).

        **Conexiones que admiten el reparto del cobro:** Spidi (`SPIDI`).

        **Conexiones que ofrecen cuotas:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).

        **Métodos por conexión.** Cada conexión ofrece en el cart los métodos que su proveedor admite y tiene cargados (`checkout_methods` de la conexión): `REDIRECT` en las pasarelas con links (el comprador paga en la página de la pasarela); `REPORTED_PAYMENT` en los bancos que validan pago móvil, cuando la conexión tiene su teléfono y su RIF cargados (el comprador paga y reporta la referencia); `BINANCE_REPORTED` en Binance (cuenta personal), con su Pay ID cargado (el comprador paga desde Binance y reporta el número de la operación); `IMMEDIATE_DEBIT` y `C2P` en los bancos que los ofrecen, con las credenciales completas; y `CARD_TOKEN` (tarjeta en la propia página) en Mercado Pago, cuando está habilitado. En `connections[].methods` un valor que la conexión no ofrece responde 400 `checkout_cart_methods_invalid`.
      x-description-en: |-
        Creates a single-payment cart with catalog or custom lines and returns its checkout URL (checkout_url), to be shared with the buyer; opening it creates no session and reserves nothing. Every cart is single-payment. Omitted optional fields take their default: without session_minutes the session lasts one hour, without max_uses there is no sales limit, without max_installments there are no installments, without expires_at it never expires, without connections it offers every active non-sandbox connection, and a connection without methods offers all its methods. Cases worth knowing. Main currency: the first of total_currencies, which when omitted comes from the charge currencies of the cart connections; it is presentation only and what is charged is in the currency of the connection the buyer picks. Line in another currency: each line keeps its currency; the total is brought to the charge currency with the rates of the day and a single rounding, and a connection with no rate for some line stops being usable. Voluntary line: an open line with open_min 0, empty or omitted is created normally and the buyer may leave it without an amount, in which case it stays out of the session and of the payment; an open line with a minimum greater than 0 is mandatory. The cart total must be greater than 0 (at least one fixed line or an open line with a minimum), otherwise 400 checkout_amount_invalid. With notification_url the response carries notification_secret only once; repeating the same Idempotency-Key with the same body returns the cart already created (replay response with the Idempotent-Replayed header) without the secret, and with a different body answers 409 idempotency_key_reused. Errors: 400 for invalid data (checkout_line_invalid, checkout_amount_invalid, checkout_cart_connection_invalid, checkout_cart_methods_invalid, checkout_cart_expiry_invalid, checkout_cart_installments_invalid, checkout_cart_session_duration_invalid, checkout_cart_max_uses_invalid, checkout_cart_title_required, checkout_cart_field_invalid, notification_url_invalid, idempotency_key_invalid); 402 if the account has no current subscription or its links are suspended; 429 if the account quota was reached.

        **Connections that support it:** Bancaribe (`BANCARIBE_P2P`), Banco de Venezuela (`BDV_P2P`), Banco del Tesoro (`BT_P2P`), Banco Venezolano de Crédito (`BVC_P2P`), BDV Biopago (`BDV_BIOPAGO`), Binance (cuenta personal) (`BINANCE_PERSONAL`), Binance Pay (comercio) (`BINANCE_PAY`), BNC (`BNC_P2P`), Mercado Pago (`MERCADO_PAGO`), Mercantil (`MERCANTIL_P2P`), PayPal (`PAYPAL`), R4 (`R4_P2P`), Spidi (`SPIDI`), Stripe (`STRIPE`), WayuPay (`WAYU_PAY`).

        **Connections that support splitting the charge:** Spidi (`SPIDI`).

        **Connections that offer installments:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).

        **Methods per connection.** Each connection offers in the cart the methods its provider supports and has loaded (`checkout_methods` of the connection): `REDIRECT` on gateways with links (the buyer pays on the gateway page); `REPORTED_PAYMENT` on banks that verify mobile payments, when the connection has its phone and tax ID loaded (the buyer pays and reports the reference); `BINANCE_REPORTED` on Binance (personal account), with its Pay ID loaded (the buyer pays from Binance and reports the operation number); `IMMEDIATE_DEBIT` and `C2P` on the banks that offer them, with full credentials; and `CARD_TOKEN` (card on the page itself) on Mercado Pago, when enabled. In `connections[].methods` a value the connection does not offer answers 400 `checkout_cart_methods_invalid`.
      tags: [Checkout]
      x-cash-scope: checkout_carts:create
      x-cash-sdk: checkoutCarts.create
      parameters:
        - {$ref: '#/components/parameters/IdempotencyKey'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/CartBody'}}
      responses:
        '201':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/CartCreateResponse'}}
        '200':
          description: Repetición de una petición con la misma Idempotency-Key
          headers:
            Idempotent-Replayed: {description: 'true cuando la respuesta repite una petición con la misma Idempotency-Key.', schema: {type: string, enum: ['true']}}
          content:
            application/json: {schema: {$ref: '#/components/schemas/CartCreateResponse'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, checkout_line_invalid, checkout_cart_connection_invalid, checkout_cart_methods_invalid, checkout_cart_expiry_invalid, checkout_cart_installments_invalid, checkout_cart_session_duration_invalid, checkout_cart_max_uses_invalid, checkout_cart_title_required, checkout_cart_field_invalid, checkout_amount_invalid, notification_url_invalid, idempotency_key_invalid, split_invalid, split_total_mismatch, split_not_supported, split_partner_rejected]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '402': {description: La suscripción no permite la operación, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [subscription_required, subscription_links_suspended]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '409': {description: Duplicado o conflicto de estado, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [idempotency_key_reused]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded, quota_limit_reached]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable, split_partner_unverifiable]}}}]}}}}
  /v1/checkout-carts/{uuid}:
    get:
      operationId: getCheckoutCart
      summary: Devuelve un cart de checkout
      x-cash-providers: [BANCARIBE_P2P, BDV_P2P, BT_P2P, BVC_P2P, BDV_BIOPAGO, BINANCE_PERSONAL, BINANCE_PAY, BNC_P2P, MERCADO_PAGO, MERCANTIL_P2P, PAYPAL, R4_P2P, SPIDI, STRIPE, WAYU_PAY]
      description: |-
        Devuelve un cart con su disponibilidad, sus líneas y su URL de checkout. state se calcula al leer, sin esperar ningún proceso: EXPIRED y EXHAUSTED ganan sobre todo lo demás; BUSY significa que los usos que quedan están reservados por sesiones abiertas y se reintenta cuando alguna venza; UNAVAILABLE trae en unavailable_reasons cada motivo (CART_INACTIVE, ACCOUNT_NO_ACCESS, PRODUCT_INACTIVE, NO_USABLE_CONNECTION). Un cart INACTIVE no abre sesiones nuevas pero las abiertas aún pueden pagarse. Un producto borrado sigue vendiéndose en los carts donde ya estaba y un producto inactivo deja el cart UNAVAILABLE. Errores: 404 checkout_cart_not_found si el cart no es de la cuenta o está borrado.

        **Conexiones que lo admiten:** Bancaribe (`BANCARIBE_P2P`), Banco de Venezuela (`BDV_P2P`), Banco del Tesoro (`BT_P2P`), Banco Venezolano de Crédito (`BVC_P2P`), BDV Biopago (`BDV_BIOPAGO`), Binance (cuenta personal) (`BINANCE_PERSONAL`), Binance Pay (comercio) (`BINANCE_PAY`), BNC (`BNC_P2P`), Mercado Pago (`MERCADO_PAGO`), Mercantil (`MERCANTIL_P2P`), PayPal (`PAYPAL`), R4 (`R4_P2P`), Spidi (`SPIDI`), Stripe (`STRIPE`), WayuPay (`WAYU_PAY`).
      x-description-en: |-
        Returns a cart with its availability, its lines and its checkout URL. state is computed on read, without waiting for any process: EXPIRED and EXHAUSTED win over everything else; BUSY means the remaining uses are reserved by open sessions and it is retried when one expires; UNAVAILABLE lists each reason in unavailable_reasons (CART_INACTIVE, ACCOUNT_NO_ACCESS, PRODUCT_INACTIVE, NO_USABLE_CONNECTION). An INACTIVE cart opens no new sessions but open ones can still be paid. A deleted product keeps selling in the carts where it already was and an inactive product leaves the cart UNAVAILABLE. Errors: 404 checkout_cart_not_found if the cart is not the account or is deleted.

        **Connections that support it:** Bancaribe (`BANCARIBE_P2P`), Banco de Venezuela (`BDV_P2P`), Banco del Tesoro (`BT_P2P`), Banco Venezolano de Crédito (`BVC_P2P`), BDV Biopago (`BDV_BIOPAGO`), Binance (cuenta personal) (`BINANCE_PERSONAL`), Binance Pay (comercio) (`BINANCE_PAY`), BNC (`BNC_P2P`), Mercado Pago (`MERCADO_PAGO`), Mercantil (`MERCANTIL_P2P`), PayPal (`PAYPAL`), R4 (`R4_P2P`), Spidi (`SPIDI`), Stripe (`STRIPE`), WayuPay (`WAYU_PAY`).
      tags: [Checkout]
      x-cash-scope: checkout_carts:read
      x-cash-sdk: checkoutCarts.get
      parameters:
        - {$ref: '#/components/parameters/UUID'}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/CartView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [checkout_cart_not_found]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
    put:
      operationId: updateCheckoutCart
      summary: Edita un cart de checkout
      x-cash-providers: [BANCARIBE_P2P, BDV_P2P, BT_P2P, BVC_P2P, BDV_BIOPAGO, BINANCE_PERSONAL, BINANCE_PAY, BNC_P2P, MERCADO_PAGO, MERCANTIL_P2P, PAYPAL, R4_P2P, SPIDI, STRIPE, WAYU_PAY]
      x-cash-split-providers: [SPIDI]
      x-cash-installments-providers: [MERCADO_PAGO, STRIPE]
      description: |-
        Reemplaza todos los campos, las líneas y las conexiones de un cart; lo omitido toma su valor por defecto, salvo max_installments, que omitido conserva el guardado. Lleva la versión leída: si el cart cambió desde entonces responde 409 checkout_cart_version_conflict, y cada edición correcta sube la versión en 1. Las sesiones ya abiertas se rigen por su foto (líneas, montos, tasas y plazo pay_by) y no cambian con la edición; sólo las que se abran después ven el cart nuevo. status acepta ACTIVE o INACTIVE y omitido lo conserva. Un cart vencido se reabre editándolo con expires_at futura u omitida. max_uses no puede bajar de las ventas confirmadas más las sesiones abiertas que reservan un uso. Los productos borrados que ya estaban en el cart pueden quedarse; uno nuevo borrado se rechaza. Las reglas de las líneas son las del alta, incluido que el total debe ser mayor que 0 (checkout_amount_invalid). Errores: 400 por dato inválido (los mismos códigos del alta, sin los de idempotencia); 404 checkout_cart_not_found; 409 checkout_cart_version_conflict.

        **Conexiones que lo admiten:** Bancaribe (`BANCARIBE_P2P`), Banco de Venezuela (`BDV_P2P`), Banco del Tesoro (`BT_P2P`), Banco Venezolano de Crédito (`BVC_P2P`), BDV Biopago (`BDV_BIOPAGO`), Binance (cuenta personal) (`BINANCE_PERSONAL`), Binance Pay (comercio) (`BINANCE_PAY`), BNC (`BNC_P2P`), Mercado Pago (`MERCADO_PAGO`), Mercantil (`MERCANTIL_P2P`), PayPal (`PAYPAL`), R4 (`R4_P2P`), Spidi (`SPIDI`), Stripe (`STRIPE`), WayuPay (`WAYU_PAY`).

        **Conexiones que admiten el reparto del cobro:** Spidi (`SPIDI`).

        **Conexiones que ofrecen cuotas:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).

        **Métodos por conexión.** Cada conexión ofrece en el cart los métodos que su proveedor admite y tiene cargados (`checkout_methods` de la conexión): `REDIRECT` en las pasarelas con links (el comprador paga en la página de la pasarela); `REPORTED_PAYMENT` en los bancos que validan pago móvil, cuando la conexión tiene su teléfono y su RIF cargados (el comprador paga y reporta la referencia); `BINANCE_REPORTED` en Binance (cuenta personal), con su Pay ID cargado (el comprador paga desde Binance y reporta el número de la operación); `IMMEDIATE_DEBIT` y `C2P` en los bancos que los ofrecen, con las credenciales completas; y `CARD_TOKEN` (tarjeta en la propia página) en Mercado Pago, cuando está habilitado. En `connections[].methods` un valor que la conexión no ofrece responde 400 `checkout_cart_methods_invalid`.
      x-description-en: |-
        Replaces every field, the lines and the connections of a cart; what is omitted takes its default, except max_installments, which when omitted keeps the stored one. It carries the version read: if the cart changed since then it answers 409 checkout_cart_version_conflict, and every successful edit raises the version by 1. Sessions already open follow their snapshot (lines, amounts, rates and pay_by deadline) and do not change with the edit; only those opened afterwards see the new cart. status accepts ACTIVE or INACTIVE and omitted keeps it. An expired cart is reopened by editing it with a future or omitted expires_at. max_uses cannot fall below confirmed sales plus open sessions reserving a use. Deleted products that were already in the cart may stay; a newly added deleted one is rejected. The line rules are those of creation, including that the total must be greater than 0 (checkout_amount_invalid). Errors: 400 for invalid data (the same codes as creation, minus the idempotency ones); 404 checkout_cart_not_found; 409 checkout_cart_version_conflict.

        **Connections that support it:** Bancaribe (`BANCARIBE_P2P`), Banco de Venezuela (`BDV_P2P`), Banco del Tesoro (`BT_P2P`), Banco Venezolano de Crédito (`BVC_P2P`), BDV Biopago (`BDV_BIOPAGO`), Binance (cuenta personal) (`BINANCE_PERSONAL`), Binance Pay (comercio) (`BINANCE_PAY`), BNC (`BNC_P2P`), Mercado Pago (`MERCADO_PAGO`), Mercantil (`MERCANTIL_P2P`), PayPal (`PAYPAL`), R4 (`R4_P2P`), Spidi (`SPIDI`), Stripe (`STRIPE`), WayuPay (`WAYU_PAY`).

        **Connections that support splitting the charge:** Spidi (`SPIDI`).

        **Connections that offer installments:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).

        **Methods per connection.** Each connection offers in the cart the methods its provider supports and has loaded (`checkout_methods` of the connection): `REDIRECT` on gateways with links (the buyer pays on the gateway page); `REPORTED_PAYMENT` on banks that verify mobile payments, when the connection has its phone and tax ID loaded (the buyer pays and reports the reference); `BINANCE_REPORTED` on Binance (personal account), with its Pay ID loaded (the buyer pays from Binance and reports the operation number); `IMMEDIATE_DEBIT` and `C2P` on the banks that offer them, with full credentials; and `CARD_TOKEN` (card on the page itself) on Mercado Pago, when enabled. In `connections[].methods` a value the connection does not offer answers 400 `checkout_cart_methods_invalid`.
      tags: [Checkout]
      x-cash-scope: checkout_carts:update
      x-cash-sdk: checkoutCarts.update
      parameters:
        - {$ref: '#/components/parameters/UUID'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/CartUpdateBody'}}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/CartView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, checkout_line_invalid, checkout_cart_connection_invalid, checkout_cart_methods_invalid, checkout_cart_expiry_invalid, checkout_cart_installments_invalid, checkout_cart_session_duration_invalid, checkout_cart_max_uses_invalid, checkout_cart_title_required, checkout_cart_field_invalid, checkout_amount_invalid, notification_url_invalid, idempotency_key_invalid, split_invalid, split_total_mismatch, split_not_supported, split_partner_rejected]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [checkout_cart_not_found]}}}]}}}}
        '409': {description: Duplicado o conflicto de estado, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [checkout_cart_version_conflict]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable, split_partner_unverifiable]}}}]}}}}
    delete:
      operationId: deleteCheckoutCart
      summary: Borra un cart de checkout
      tags: [Checkout]
      x-cash-scope: checkout_carts:update
      x-cash-sdk: checkoutCarts.delete
      description: "Borra un cart de forma lógica; su URL de checkout deja de abrir. Las sesiones que ya estaban abiertas siguen vivas: si el comprador paga, el pago se registra, la venta se cierra con paid_after_cart_closed en true y se avisa al comercio. Errores: 404 checkout_cart_not_found."
      x-description-en: "Logically deletes a cart; its checkout URL stops opening. Sessions already open stay alive: if the buyer pays, the payment is recorded, the sale closes with paid_after_cart_closed true and the merchant is notified. Errors: 404 checkout_cart_not_found."
      parameters:
        - {$ref: '#/components/parameters/UUID'}
      responses:
        '204': {description: El cart se borró}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [checkout_cart_not_found]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/checkout-carts/{uuid}/notification-secret/rotate:
    post:
      operationId: rotateCheckoutCartNotificationSecret
      summary: Rota el secreto de firma de un cart
      tags: [Checkout]
      x-cash-scope: checkout_carts:update
      x-cash-sdk: checkoutCarts.rotateNotificationSecret
      description: "Genera otro secreto de firma para los eventos del cart y devuelve el nuevo una sola vez. El anterior deja de valer en el acto."
      x-description-en: "Generates another signing secret for the cart events and returns the new one only once. The previous one stops working immediately."
      parameters:
        - {$ref: '#/components/parameters/UUID'}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/NotificationSecretRotateResponse'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [checkout_cart_not_found]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/checkout-images:
    post:
      operationId: uploadCheckoutImage
      summary: Sube la foto de una línea propia
      tags: [Checkout]
      x-cash-scope: checkout_carts:create
      x-cash-sdk: checkoutImages.upload
      description: "Guarda la foto de una línea propia como multipart/form-data en el campo file y devuelve la clave que el alta del cart referencia en image_key."
      x-description-en: "Stores the photo of a custom line sent as multipart/form-data in the file field and returns the key the cart creation references in image_key."
      requestBody:
        required: true
        content:
          multipart/form-data: {schema: {type: object, required: [file], properties: {file: {type: string, format: binary}}}}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/ImageView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, product_image_invalid]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded, quota_limit_reached]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable, media_unavailable]}}}]}}}}
  /v1/checkout-sessions:
    get:
      operationId: listCheckoutSessions
      summary: Lista las sesiones de checkout
      x-cash-providers: [BANCARIBE_P2P, BDV_P2P, BT_P2P, BVC_P2P, BDV_BIOPAGO, BINANCE_PERSONAL, BINANCE_PAY, BNC_P2P, MERCADO_PAGO, MERCANTIL_P2P, PAYPAL, R4_P2P, SPIDI, STRIPE, WAYU_PAY]
      description: |-
        Lista las sesiones de pago de la cuenta con paginación por cursor, con filtro por cart y por estado.

        **Conexiones que lo admiten:** Bancaribe (`BANCARIBE_P2P`), Banco de Venezuela (`BDV_P2P`), Banco del Tesoro (`BT_P2P`), Banco Venezolano de Crédito (`BVC_P2P`), BDV Biopago (`BDV_BIOPAGO`), Binance (cuenta personal) (`BINANCE_PERSONAL`), Binance Pay (comercio) (`BINANCE_PAY`), BNC (`BNC_P2P`), Mercado Pago (`MERCADO_PAGO`), Mercantil (`MERCANTIL_P2P`), PayPal (`PAYPAL`), R4 (`R4_P2P`), Spidi (`SPIDI`), Stripe (`STRIPE`), WayuPay (`WAYU_PAY`).
      x-description-en: |-
        Lists the payment sessions of the account with cursor pagination, filtered by cart and status.

        **Connections that support it:** Bancaribe (`BANCARIBE_P2P`), Banco de Venezuela (`BDV_P2P`), Banco del Tesoro (`BT_P2P`), Banco Venezolano de Crédito (`BVC_P2P`), BDV Biopago (`BDV_BIOPAGO`), Binance (cuenta personal) (`BINANCE_PERSONAL`), Binance Pay (comercio) (`BINANCE_PAY`), BNC (`BNC_P2P`), Mercado Pago (`MERCADO_PAGO`), Mercantil (`MERCANTIL_P2P`), PayPal (`PAYPAL`), R4 (`R4_P2P`), Spidi (`SPIDI`), Stripe (`STRIPE`), WayuPay (`WAYU_PAY`).
      tags: [Checkout]
      x-cash-scope: checkout_carts:read
      x-cash-sdk: checkoutSessions.list
      parameters:
        - {$ref: '#/components/parameters/FromOptional'}
        - {$ref: '#/components/parameters/ToOptional'}
        - {$ref: '#/components/parameters/Cursor'}
        - {$ref: '#/components/parameters/Limit'}
        - {name: cart_uuid, in: query, required: false, schema: {type: string, format: uuid}}
        - {name: status, in: query, required: false, schema: {type: string, enum: [OPEN, PAID, FAILED, EXPIRED]}}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {allOf: [{$ref: '#/components/schemas/CursorPage'}, {type: object, properties: {items: {type: array, items: {$ref: '#/components/schemas/SessionView'}}}}]}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, cursor_invalid, date_range_required, date_range_too_wide]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/checkout-sessions/export:
    get:
      operationId: exportCheckoutSessions
      summary: Exporta las sesiones de checkout en CSV
      tags: [Checkout]
      x-cash-scope: checkout_carts:read
      x-cash-sdk: checkoutSessions.export
      description: "Exporta en CSV las sesiones de un rango de fechas, una fila por línea de la foto de cada sesión."
      x-description-en: "Exports the sessions of a date range as CSV, one row per line of each session snapshot."
      parameters:
        - {$ref: '#/components/parameters/From'}
        - {$ref: '#/components/parameters/To'}
        - {name: cart_uuid, in: query, required: false, schema: {type: string, format: uuid}}
        - {name: status, in: query, required: false, schema: {type: string, enum: [OPEN, PAID, FAILED, EXPIRED]}}
      responses:
        '200':
          description: Respuesta correcta
          content:
            text/csv: {schema: {type: string}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, date_range_required, date_range_too_wide]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded, quota_limit_reached]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/checkout-sessions/{uuid}:
    get:
      operationId: getCheckoutSession
      summary: Devuelve una sesión de checkout
      x-cash-providers: [BANCARIBE_P2P, BDV_P2P, BT_P2P, BVC_P2P, BDV_BIOPAGO, BINANCE_PERSONAL, BINANCE_PAY, BNC_P2P, MERCADO_PAGO, MERCANTIL_P2P, PAYPAL, R4_P2P, SPIDI, STRIPE, WAYU_PAY]
      description: |-
        Devuelve una sesión con las líneas de su foto y, si quedó pendiente de decisión, la revisión. La sesión se rige sólo por su foto: el monto y las tasas quedan fijos hasta pay_by, que es el menor entre la apertura más session_minutes, el vencimiento propio de la pasarela y expires_at del cart. Las líneas voluntarias que el comprador dejó sin monto no están en la foto. Reuso: el navegador que repite cart, conexión, método y monto con la cookie de su sesión abierta recibe la misma sesión en vez de crear otra; si cambia de método la anterior se cierra y libera su reserva, y sin la cookie se abre una sesión nueva. Pago tardío: un pago con instante posterior a pay_by, anterior a la apertura o por otro monto no cierra la venta y deja la sesión con review (LATE, BEFORE_OFFER o AMOUNT_MISMATCH) hasta que el comercio decida; si el proveedor sólo da la fecha, el pago del día de pay_by cuenta en plazo. Un segundo pago sobre una sesión ya pagada o en revisión se registra y queda en second_payment_uuids. Reintentos: cada método de cobro limita los intentos del comprador por sesión y los agotados responden 429 checkout_attempts_exhausted. Errores: 404 checkout_session_not_found.

        **Conexiones que lo admiten:** Bancaribe (`BANCARIBE_P2P`), Banco de Venezuela (`BDV_P2P`), Banco del Tesoro (`BT_P2P`), Banco Venezolano de Crédito (`BVC_P2P`), BDV Biopago (`BDV_BIOPAGO`), Binance (cuenta personal) (`BINANCE_PERSONAL`), Binance Pay (comercio) (`BINANCE_PAY`), BNC (`BNC_P2P`), Mercado Pago (`MERCADO_PAGO`), Mercantil (`MERCANTIL_P2P`), PayPal (`PAYPAL`), R4 (`R4_P2P`), Spidi (`SPIDI`), Stripe (`STRIPE`), WayuPay (`WAYU_PAY`).
      x-description-en: |-
        Returns a session with the lines of its snapshot and, if it is awaiting a decision, the review. The session follows only its snapshot: the amount and the rates stay fixed until pay_by, which is the earliest of the opening plus session_minutes, the own expiry of the gateway and the cart expires_at. Voluntary lines the buyer left without an amount are not in the snapshot. Reuse: the browser that repeats cart, connection, method and amount with the cookie of its open session gets the same session instead of creating another; if it changes method the previous one is closed and releases its reservation, and without the cookie a new session is opened. Late payment: a payment with an instant after pay_by, before the opening or for a different amount does not close the sale and leaves the session with a review (LATE, BEFORE_OFFER or AMOUNT_MISMATCH) until the merchant decides; if the provider only gives the date, a payment on the pay_by day counts as on time. A second payment on an already paid or under-review session is recorded and listed in second_payment_uuids. Retries: each payment method limits the buyer attempts per session and exhausted ones answer 429 checkout_attempts_exhausted. Errors: 404 checkout_session_not_found.

        **Connections that support it:** Bancaribe (`BANCARIBE_P2P`), Banco de Venezuela (`BDV_P2P`), Banco del Tesoro (`BT_P2P`), Banco Venezolano de Crédito (`BVC_P2P`), BDV Biopago (`BDV_BIOPAGO`), Binance (cuenta personal) (`BINANCE_PERSONAL`), Binance Pay (comercio) (`BINANCE_PAY`), BNC (`BNC_P2P`), Mercado Pago (`MERCADO_PAGO`), Mercantil (`MERCANTIL_P2P`), PayPal (`PAYPAL`), R4 (`R4_P2P`), Spidi (`SPIDI`), Stripe (`STRIPE`), WayuPay (`WAYU_PAY`).
      tags: [Checkout]
      x-cash-scope: checkout_carts:read
      x-cash-sdk: checkoutSessions.get
      parameters:
        - {$ref: '#/components/parameters/UUID'}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/SessionView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [checkout_session_not_found]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/checkout-sessions/{uuid}/review:
    post:
      operationId: reviewCheckoutSession
      summary: Decide sobre un pago en revisión
      x-cash-providers: [BANCARIBE_P2P, BDV_P2P, BT_P2P, BVC_P2P, BDV_BIOPAGO, BINANCE_PERSONAL, BINANCE_PAY, BNC_P2P, MERCADO_PAGO, MERCANTIL_P2P, PAYPAL, R4_P2P, SPIDI, STRIPE, WAYU_PAY]
      description: |-
        Acepta o rechaza el pago de una sesión que quedó pendiente de decisión (review presente). Aceptar cierra la venta: la sesión queda PAID, la reserva se vuelve uso, el cart se agota si llega a max_uses y se emite el evento de pago; si el comprador dio correo y el comercio acepta, se le avisa (buyer_notice). Rechazar sólo cierra la revisión: el pago sigue registrado y ligado a la sesión, la venta no se cierra y Cash no devuelve dinero. La decisión queda en la bitácora con quien la tomó. Errores: 400 checkout_review_decision_invalid si decision no es accept ni reject; 404 checkout_session_not_found; 409 checkout_session_not_in_review si la sesión no está pendiente o ya se decidió.

        **Conexiones que lo admiten:** Bancaribe (`BANCARIBE_P2P`), Banco de Venezuela (`BDV_P2P`), Banco del Tesoro (`BT_P2P`), Banco Venezolano de Crédito (`BVC_P2P`), BDV Biopago (`BDV_BIOPAGO`), Binance (cuenta personal) (`BINANCE_PERSONAL`), Binance Pay (comercio) (`BINANCE_PAY`), BNC (`BNC_P2P`), Mercado Pago (`MERCADO_PAGO`), Mercantil (`MERCANTIL_P2P`), PayPal (`PAYPAL`), R4 (`R4_P2P`), Spidi (`SPIDI`), Stripe (`STRIPE`), WayuPay (`WAYU_PAY`).
      x-description-en: |-
        Accepts or rejects the payment of a session awaiting a decision (review present). Accepting closes the sale: the session becomes PAID, the reservation turns into a use, the cart is exhausted if it reaches max_uses and the payment event is emitted; if the buyer gave an email and the merchant accepts, the buyer is notified (buyer_notice). Rejecting only closes the review: the payment stays recorded and linked to the session, the sale is not closed and Cash does not refund money. The decision is audited with who took it. Errors: 400 checkout_review_decision_invalid if decision is neither accept nor reject; 404 checkout_session_not_found; 409 checkout_session_not_in_review if the session is not pending or was already decided.

        **Connections that support it:** Bancaribe (`BANCARIBE_P2P`), Banco de Venezuela (`BDV_P2P`), Banco del Tesoro (`BT_P2P`), Banco Venezolano de Crédito (`BVC_P2P`), BDV Biopago (`BDV_BIOPAGO`), Binance (cuenta personal) (`BINANCE_PERSONAL`), Binance Pay (comercio) (`BINANCE_PAY`), BNC (`BNC_P2P`), Mercado Pago (`MERCADO_PAGO`), Mercantil (`MERCANTIL_P2P`), PayPal (`PAYPAL`), R4 (`R4_P2P`), Spidi (`SPIDI`), Stripe (`STRIPE`), WayuPay (`WAYU_PAY`).
      tags: [Checkout]
      x-cash-scope: checkout_carts:update
      x-cash-sdk: checkoutSessions.review
      parameters:
        - {$ref: '#/components/parameters/UUID'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/ReviewDecisionBody'}}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/ReviewDecisionResponse'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, checkout_review_decision_invalid]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [checkout_session_not_found]}}}]}}}}
        '409': {description: Duplicado o conflicto de estado, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [checkout_session_not_in_review, checkout_session_closed]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/connections/{uuid}/payment-qr:
    post:
      operationId: setConnectionPaymentQr
      summary: Sube el QR de cobro de una conexión
      tags: [Conexiones]
      x-cash-scope: connections:update
      x-cash-sdk: connections.setPaymentQr
      description: "Guarda la imagen del QR de cobro de una conexión de pago reportado como multipart/form-data en el campo file y devuelve la conexión con payment_qr_url."
      x-description-en: "Stores the payment QR image of a reported-payment connection sent as multipart/form-data in the file field and returns the connection with payment_qr_url."
      parameters:
        - {$ref: '#/components/parameters/UUID'}
      requestBody:
        required: true
        content:
          multipart/form-data: {schema: {type: object, required: [file], properties: {file: {type: string, format: binary}}}}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/ConnectionView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, product_image_invalid, connection_payment_qr_not_supported]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [connection_not_found]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable, media_unavailable]}}}]}}}}
    delete:
      operationId: removeConnectionPaymentQr
      summary: Quita el QR de cobro de una conexión
      tags: [Conexiones]
      x-cash-scope: connections:update
      x-cash-sdk: connections.removePaymentQr
      description: "Quita el QR de cobro de la conexión y la devuelve sin payment_qr_url."
      x-description-en: "Removes the payment QR of the connection and returns it without payment_qr_url."
      parameters:
        - {$ref: '#/components/parameters/UUID'}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/ConnectionView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [connection_not_found]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/customers:
    get:
      operationId: listCustomers
      summary: Lista los clientes
      description: |-
        Lista los clientes del comercio en un rango de fechas, con paginación por cursor.
      x-description-en: |-
        Lists the merchant customers in a date range, with cursor pagination.
      tags: [Clientes]
      x-cash-scope: customers:read
      x-cash-sdk: customers.list
      parameters:
        - {$ref: '#/components/parameters/From'}
        - {$ref: '#/components/parameters/To'}
        - {$ref: '#/components/parameters/Cursor'}
        - {$ref: '#/components/parameters/Limit'}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {allOf: [{$ref: '#/components/schemas/CursorPage'}, {type: object, properties: {items: {type: array, items: {$ref: '#/components/schemas/CustomerView'}}}}]}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, cursor_invalid, date_range_required, date_range_too_wide]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
    post:
      operationId: createCustomer
      summary: Crea un cliente
      description: |-
        Da de alta un cliente del comercio. Un cliente no pertenece a una conexión: sirve para guardar métodos de pago, cobrarles y suscribirlos con las conexiones que guardan métodos (ver el tag **Clientes**). La referencia externa, si se envía, no se repite entre los clientes de la cuenta (409 `customer_reference_duplicate`).
      x-description-en: |-
        Creates a merchant customer. A customer does not belong to a connection: it serves to save payment methods, charge them and subscribe them with the connections that save methods (see the **Clientes** tag). The external reference, if sent, is not repeated among the account customers (409 `customer_reference_duplicate`).
      tags: [Clientes]
      x-cash-scope: customers:create
      x-cash-sdk: customers.create
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/CustomerCreateBody'}}
      responses:
        '201':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/CustomerView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, customer_field_invalid]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '402': {description: La suscripción no permite la operación, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [subscription_required, subscription_charges_suspended]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '409': {description: Duplicado o conflicto de estado, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [customer_reference_duplicate]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded, quota_limit_reached]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/customers/{uuid}:
    get:
      operationId: getCustomer
      summary: Devuelve un cliente
      description: |-
        Devuelve un cliente de la cuenta.
      x-description-en: |-
        Returns an account customer.
      tags: [Clientes]
      x-cash-scope: customers:read
      x-cash-sdk: customers.get
      parameters:
        - {$ref: '#/components/parameters/UUID'}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/CustomerView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [customer_not_found]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
    put:
      operationId: updateCustomer
      summary: Edita un cliente
      description: |-
        Reemplaza los datos editables de un cliente.
      x-description-en: |-
        Replaces the editable data of a customer.
      tags: [Clientes]
      x-cash-scope: customers:update
      x-cash-sdk: customers.update
      parameters:
        - {$ref: '#/components/parameters/UUID'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/CustomerUpdateBody'}}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/CustomerView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, customer_field_invalid]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [customer_not_found]}}}]}}}}
        '409': {description: Duplicado o conflicto de estado, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [customer_reference_duplicate]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
    delete:
      operationId: deleteCustomer
      summary: Borra un cliente
      description: |-
        Borra un cliente, desvincula sus métodos guardados y cancela sus suscripciones. No se deshace.
      x-description-en: |-
        Deletes a customer, detaches its saved methods and cancels its subscriptions. It cannot be undone.
      tags: [Clientes]
      x-cash-scope: customers:delete
      x-cash-sdk: customers.delete
      parameters:
        - {$ref: '#/components/parameters/UUID'}
      responses:
        '204': {description: Respuesta correcta}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [customer_not_found]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [provider_unavailable, service_unavailable]}}}]}}}}
  /v1/customers/{uuid}/saved-methods:
    get:
      operationId: listSavedMethods
      summary: Lista los métodos guardados de un cliente
      x-cash-providers: [MERCADO_PAGO, STRIPE]
      description: |-
        Lista los métodos guardados de un cliente: marca, últimos cuatro dígitos, vencimiento y estado; nunca el dato completo. Un método `ACTIVE` puede cobrarse; uno desvinculado o vencido, no.

        **Conexiones que lo admiten:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).
      x-description-en: |-
        Lists a customer saved methods: brand, last four digits, expiry and status; never the full data. An `ACTIVE` method can be charged; a detached or expired one cannot.

        **Connections that support it:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).
      tags: [Clientes]
      x-cash-scope: customers:read
      x-cash-sdk: customers.savedMethods
      parameters:
        - {$ref: '#/components/parameters/UUID'}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {type: array, items: {$ref: '#/components/schemas/SavedMethodView'}}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [customer_not_found]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/customers/{uuid}/saved-method-links:
    post:
      operationId: createSavedMethodLink
      summary: Crea un link para guardar un método
      x-cash-providers: [MERCADO_PAGO, STRIPE]
      description: |-
        Crea el link con que el comprador autoriza guardar su método de pago para cobros futuros. La API nunca recibe datos de tarjeta: el comprador los escribe en una página segura del proveedor, después de leer y aceptar las condiciones de cobro, y el comercio no puede aceptar por él.

        **Conexiones que lo admiten:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).

        La respuesta lleva la URL que se le entrega al comprador y no vuelve a mostrarse. Cuando el comprador termina llega `saved_method.created`; el método queda en `GET /v1/customers/{uuid}/saved-methods` y desde ahí puede cobrarse (cobros directos) o ligarse a una suscripción.

        Errores típicos: 400 `provider_capability_unsupported` (la conexión no guarda métodos), `payment_currency_not_supported_by_connection`, `saved_method_invalid`; 404 `customer_not_found`; 409 `connection_inactive`; 429 si se agotó el cupo de la cuenta.
      x-description-en: |-
        Creates the link with which the buyer authorizes saving their payment method for future charges. The API never receives card data: the buyer types it on a secure provider page, after reading and accepting the charge terms, and the merchant cannot accept for them.

        **Connections that support it:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).

        The response carries the URL handed to the buyer and it is not shown again. When the buyer finishes, `saved_method.created` arrives; the method stays in `GET /v1/customers/{uuid}/saved-methods` and from there it can be charged (direct charges) or tied to a subscription.

        Typical errors: 400 `provider_capability_unsupported` (the connection does not save methods), `payment_currency_not_supported_by_connection`, `saved_method_invalid`; 404 `customer_not_found`; 409 `connection_inactive`; 429 if the account quota ran out.
      tags: [Clientes]
      x-cash-scope: saved_methods:create
      x-cash-sdk: customers.createSavedMethodLink
      parameters:
        - {$ref: '#/components/parameters/UUID'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/SavedMethodLinkBody'}}
      responses:
        '201':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/SavedMethodLinkView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, saved_method_invalid, payment_currency_not_supported_by_connection, payment_connection_not_found, provider_capability_unsupported, payment_amount_precision_invalid]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '402': {description: La suscripción no permite la operación, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [subscription_required, subscription_charges_suspended]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [customer_not_found]}}}]}}}}
        '409': {description: Duplicado o conflicto de estado, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [connection_inactive]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded, quota_limit_reached]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [provider_unavailable, service_unavailable]}}}]}}}}
  /v1/customers/{uuid}/charges:
    get:
      operationId: listCustomerCharges
      summary: Lista los cobros de un cliente
      x-cash-providers: [MERCADO_PAGO, STRIPE]
      description: |-
        Lista los cobros directos de un cliente en un rango de fechas, con filtro `status`.

        **Conexiones que lo admiten:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).
      x-description-en: |-
        Lists the direct charges of a customer in a date range, with a `status` filter.

        **Connections that support it:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).
      tags: [Cobros directos]
      x-cash-scope: customers:read
      x-cash-sdk: customers.charges
      parameters:
        - {$ref: '#/components/parameters/UUID'}
        - {$ref: '#/components/parameters/From'}
        - {$ref: '#/components/parameters/To'}
        - {$ref: '#/components/parameters/Cursor'}
        - {$ref: '#/components/parameters/Limit'}
        - {name: status, in: query, required: false, schema: {type: string, enum: [SCHEDULED, SENDING, PENDING, SUCCEEDED, REQUIRES_ACTION, REJECTED, UNKNOWN, NEEDS_REVIEW]}}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {allOf: [{$ref: '#/components/schemas/CursorPage'}, {type: object, properties: {items: {type: array, items: {$ref: '#/components/schemas/ProviderChargeView'}}}}]}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, cursor_invalid, date_range_required, date_range_too_wide]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [customer_not_found]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
    post:
      operationId: createProviderCharge
      summary: Cobra a un método guardado
      x-cash-providers: [MERCADO_PAGO, STRIPE]
      description: |-
        Cobra sobre un método guardado del cliente sin el comprador delante, en la moneda de la conexión. Mueve dinero: el permiso `provider_charges:create` es sensible.

        **Conexiones que lo admiten:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).

        Exige `Idempotency-Key`: si la red falla, se repite la misma petición con la misma clave y nunca con una nueva, o se cobraría dos veces. El método debe estar `ACTIVE` y el monto no puede superar lo que el cliente autorizó, ni cambiar de moneda ni pasar de la fecha de vencimiento de esa autorización.

        Un cobro rechazado no es un error de la petición: responde 201 con `status` `REJECTED` y su `reason` normalizado (por ejemplo `CARD_DECLINED` o `EXPIRED_CARD`). Los demás estados: `SUCCEEDED` (trae `payment_uuid`), `PENDING` (el desenlace llega por notificación), `REQUIRES_ACTION` (el cliente debe confirmar con su banco; se le envía un correo) y `UNKNOWN` o `NEEDS_REVIEW` (no se repite el cobro: se consulta o se cierra con `resolve`). Llegan `provider_charge.succeeded`, `provider_charge.failed` o `provider_charge.requires_action`.

        Errores típicos: 400 `idempotency_key_required`, `saved_method_not_found`, `saved_method_consent_required`, `payment_currency_not_supported_by_connection`, `payment_amount_precision_invalid`; 404 `customer_not_found`; 409 `saved_method_not_active`, `provider_charge_in_progress`, `consent_receipt_pending`, `idempotency_key_reused`; 429 si se agotó el cupo; 503 `provider_unavailable`.
      x-description-en: |-
        Charges a customer saved method without the buyer present, in the connection currency. It moves money: the `provider_charges:create` permission is sensitive.

        **Connections that support it:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).

        It requires `Idempotency-Key`: if the network fails, the same request is repeated with the same key and never with a new one, or it would be charged twice. The method must be `ACTIVE` and the amount cannot exceed what the customer authorized, nor change currency nor go past the expiry date of that authorization.

        A rejected charge is not a request error: it answers 201 with `status` `REJECTED` and its normalized `reason` (for example `CARD_DECLINED` or `EXPIRED_CARD`). The other statuses: `SUCCEEDED` (carries `payment_uuid`), `PENDING` (the outcome arrives by notification), `REQUIRES_ACTION` (the customer must confirm with their bank; an email is sent) and `UNKNOWN` or `NEEDS_REVIEW` (the charge is not repeated: it is read or closed with `resolve`). `provider_charge.succeeded`, `provider_charge.failed` or `provider_charge.requires_action` arrive.

        Typical errors: 400 `idempotency_key_required`, `saved_method_not_found`, `saved_method_consent_required`, `payment_currency_not_supported_by_connection`, `payment_amount_precision_invalid`; 404 `customer_not_found`; 409 `saved_method_not_active`, `provider_charge_in_progress`, `consent_receipt_pending`, `idempotency_key_reused`; 429 if the quota ran out; 503 `provider_unavailable`.
      tags: [Cobros directos]
      x-cash-scope: provider_charges:create
      x-cash-sdk: providerCharges.create
      parameters:
        - {$ref: '#/components/parameters/UUID'}
        - {$ref: '#/components/parameters/IdempotencyKey'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/ChargeBody'}}
      responses:
        '201':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/ProviderChargeView'}}
        '200':
          description: Repetición de una petición con la misma Idempotency-Key
          headers:
            Idempotent-Replayed: {description: 'true cuando la respuesta repite una petición con la misma Idempotency-Key.', schema: {type: string, enum: ['true']}}
          content:
            application/json: {schema: {$ref: '#/components/schemas/ProviderChargeView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, idempotency_key_required, amount_invalid, payment_amount_precision_invalid, payment_currency_not_supported_by_connection, saved_method_not_found, saved_method_consent_required, provider_capability_unsupported]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '402': {description: La suscripción no permite la operación, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [subscription_required, subscription_charges_suspended]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [customer_not_found]}}}]}}}}
        '409': {description: Duplicado o conflicto de estado, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [idempotency_key_reused, saved_method_not_active, provider_charge_in_progress, connection_inactive, consent_receipt_pending]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded, quota_limit_reached]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [provider_unavailable, service_unavailable]}}}]}}}}
  /v1/saved-methods/{uuid}:
    delete:
      operationId: deleteSavedMethod
      summary: Desvincula un método guardado
      x-cash-providers: [MERCADO_PAGO, STRIPE]
      description: |-
        Desvincula el método: corta todo cobro posterior y cancela las suscripciones que lo usan. No se deshace; el cliente tendría que guardar otro método. Se avisa con `saved_method.detached`.

        **Conexiones que lo admiten:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).
      x-description-en: |-
        Detaches the method: it stops every later charge and cancels the subscriptions that use it. It cannot be undone; the customer would have to save another method. `saved_method.detached` is notified.

        **Connections that support it:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).
      tags: [Clientes]
      x-cash-scope: saved_methods:delete
      x-cash-sdk: savedMethods.delete
      parameters:
        - {$ref: '#/components/parameters/UUID'}
      responses:
        '204': {description: Respuesta correcta}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [saved_method_not_found]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [provider_unavailable, service_unavailable]}}}]}}}}
  /v1/saved-methods/{uuid}/consents:
    get:
      operationId: listSavedMethodConsents
      summary: Constancia de consentimientos de un método
      x-cash-providers: [MERCADO_PAGO, STRIPE]
      description: |-
        Devuelve la constancia exportable de los consentimientos de un método guardado: cuándo y con qué texto el comprador autorizó los cobros y hasta qué monto.

        **Conexiones que lo admiten:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).
      x-description-en: |-
        Returns the exportable record of the consents of a saved method: when and with what text the buyer authorized the charges and up to what amount.

        **Connections that support it:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).
      tags: [Clientes]
      x-cash-scope: customers:read
      x-cash-sdk: savedMethods.consents
      parameters:
        - {$ref: '#/components/parameters/UUID'}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/ConsentProofListView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [saved_method_not_found]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/provider-charges:
    get:
      operationId: listProviderCharges
      summary: Lista los cobros directos
      x-cash-providers: [MERCADO_PAGO, STRIPE]
      description: |-
        Lista los cobros directos y los de las suscripciones de la cuenta en un rango de fechas, con filtros `customer_uuid` y `status`. `origin` dice quién ejecutó cada cobro.

        **Conexiones que lo admiten:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).
      x-description-en: |-
        Lists the direct charges and the subscription charges of the account in a date range, with filters `customer_uuid` and `status`. `origin` says who executed each charge.

        **Connections that support it:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).
      tags: [Cobros directos]
      x-cash-scope: provider_charges:read
      x-cash-sdk: providerCharges.list
      parameters:
        - {$ref: '#/components/parameters/From'}
        - {$ref: '#/components/parameters/To'}
        - {$ref: '#/components/parameters/Cursor'}
        - {$ref: '#/components/parameters/Limit'}
        - {name: customer_uuid, in: query, required: false, schema: {type: string, format: uuid}}
        - {name: status, in: query, required: false, schema: {type: string, enum: [SCHEDULED, SENDING, PENDING, SUCCEEDED, REQUIRES_ACTION, REJECTED, UNKNOWN, NEEDS_REVIEW]}}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {allOf: [{$ref: '#/components/schemas/CursorPage'}, {type: object, properties: {items: {type: array, items: {$ref: '#/components/schemas/ProviderChargeView'}}}}]}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, cursor_invalid, date_range_required, date_range_too_wide]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/provider-charges/{uuid}:
    get:
      operationId: getProviderCharge
      summary: Devuelve un cobro directo
      x-cash-providers: [MERCADO_PAGO, STRIPE]
      description: |-
        Devuelve un cobro directo o de suscripción de la cuenta, con su estado, su motivo de rechazo si lo hay y el pago cuando se cobró.

        **Conexiones que lo admiten:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).
      x-description-en: |-
        Returns a direct or subscription charge of the account, with its status, its rejection reason if any and the payment once charged.

        **Connections that support it:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).
      tags: [Cobros directos]
      x-cash-scope: provider_charges:read
      x-cash-sdk: providerCharges.get
      parameters:
        - {$ref: '#/components/parameters/UUID'}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/ProviderChargeView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [provider_charge_not_found]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/provider-charges/{uuid}/resolve:
    post:
      operationId: resolveProviderCharge
      summary: Resuelve un cobro que quedó para revisión
      x-cash-providers: [MERCADO_PAGO, STRIPE]
      description: |-
        Cierra un cobro en revisión (`NEEDS_REVIEW`): el comercio declara si se cobró o no, con la referencia del proveedor. Con el proveedor al alcance se verifica la declaración. Un cobro declarado cobrado registra su pago y la suscripción sigue; uno declarado no cobrado queda rechazado sin reintento y la suscripción sigue con el período siguiente.

        **Conexiones que lo admiten:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).

        Errores típicos: 400 `provider_reference_required`; 404 `provider_charge_not_found`; 409 `provider_charge_not_in_review`, `provider_charge_resolution_mismatch` (el proveedor dice otra cosa), `provider_reference_in_use`.
      x-description-en: |-
        Closes a charge under review (`NEEDS_REVIEW`): the merchant declares whether it was charged or not, with the provider reference. With the provider within reach the declaration is verified. A charge declared charged records its payment and the subscription goes on; one declared not charged stays rejected with no retry and the subscription goes on with the next period.

        **Connections that support it:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).

        Typical errors: 400 `provider_reference_required`; 404 `provider_charge_not_found`; 409 `provider_charge_not_in_review`, `provider_charge_resolution_mismatch` (the provider says otherwise), `provider_reference_in_use`.
      tags: [Cobros directos]
      x-cash-scope: provider_charges:resolve
      x-cash-sdk: providerCharges.resolve
      parameters:
        - {$ref: '#/components/parameters/UUID'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/ChargeResolveBody'}}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/ProviderChargeView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, provider_reference_required]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [provider_charge_not_found]}}}]}}}}
        '409': {description: Duplicado o conflicto de estado, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [provider_charge_not_in_review, provider_charge_resolution_mismatch, provider_charge_in_progress, provider_reference_in_use]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/merchant-subscriptions:
    get:
      operationId: listMerchantSubscriptions
      summary: Lista las suscripciones de clientes
      x-cash-providers: [MERCADO_PAGO, STRIPE]
      description: |-
        Lista las suscripciones que el comercio cobra a sus clientes en un rango de fechas, con filtros `customer_uuid` y `status`.

        **Conexiones que lo admiten:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).
      x-description-en: |-
        Lists the subscriptions the merchant charges its customers in a date range, with filters `customer_uuid` and `status`.

        **Connections that support it:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).
      tags: [Suscripciones de clientes]
      x-cash-scope: merchant_subscriptions:read
      x-cash-sdk: merchantSubscriptions.list
      parameters:
        - {$ref: '#/components/parameters/From'}
        - {$ref: '#/components/parameters/To'}
        - {$ref: '#/components/parameters/Cursor'}
        - {$ref: '#/components/parameters/Limit'}
        - {name: customer_uuid, in: query, required: false, schema: {type: string, format: uuid}}
        - {name: status, in: query, required: false, schema: {type: string, enum: [PENDING, TRIALING, ACTIVE, PAST_DUE, PAUSED, UNPAID, CANCELED]}}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {allOf: [{$ref: '#/components/schemas/CursorPage'}, {type: object, properties: {items: {type: array, items: {$ref: '#/components/schemas/MerchantSubscriptionView'}}}}]}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, cursor_invalid, date_range_required, date_range_too_wide]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
    post:
      operationId: createMerchantSubscription
      summary: Crea una suscripción de un cliente
      x-cash-providers: [MERCADO_PAGO, STRIPE]
      description: |-
        Da de alta una suscripción de un cliente en estado `PENDING`. No se cobra nada hasta que el cliente acepta las condiciones en la página cuya dirección trae la respuesta (`authorization_url`).

        **Conexiones que lo admiten:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).

        La conexión cobra en su propia moneda: `currency` debe ser la de la conexión. **Con método guardado** (`saved_method_uuid`, ya `ACTIVE`, del mismo cliente y de la misma conexión, sin otra suscripción viva) la plataforma ejecuta los cobros de cada período. **Sin él**, el proveedor que lleva suscripciones propias (`PROVIDER_SUBSCRIPTIONS` en `capabilities`) cobra por su cuenta y el cliente autoriza en su página; en los demás, un alta sin método guardado responde 400 `provider_capability_unsupported`.

        `interval` es `DAY`, `WEEK`, `MONTH` o `YEAR` con su `count`; `repetitions` omitido cobra hasta que alguien cancele; `trial_days` es 0 o un período de prueba y no se combina con `setup_amount` (cobro inicial distinto del recurrente). Estados: `PENDING`, `TRIALING`, `ACTIVE`, `PAST_DUE`, `PAUSED`, `UNPAID` y `CANCELED`; cada cambio se avisa con `merchant_subscription.*`. Admite `Idempotency-Key`: repetir con el mismo cuerpo devuelve la suscripción ya creada.

        Errores típicos: 400 `merchant_subscription_interval_invalid`, `merchant_subscription_trial_with_setup_fee`, `merchant_subscription_length_invalid`, `payment_currency_not_supported_by_connection`, `customer_not_found`, `saved_method_not_found`, `saved_method_consent_required`, `merchant_identity_required`; 409 `saved_method_not_active`, `connection_inactive`, `idempotency_key_reused`; 429 si se agotó el cupo de la cuenta.
      x-description-en: |-
        Creates a customer subscription in `PENDING` status. Nothing is charged until the customer accepts the terms on the page whose address the response carries (`authorization_url`).

        **Connections that support it:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).

        The connection charges in its own currency: `currency` must be the connection one. **With a saved method** (`saved_method_uuid`, already `ACTIVE`, of the same customer and the same connection, with no other live subscription) the platform runs each period charge. **Without it**, a provider that runs its own subscriptions (`PROVIDER_SUBSCRIPTIONS` in `capabilities`) charges on its own and the customer authorizes on its page; on the others, a creation without a saved method answers 400 `provider_capability_unsupported`.

        `interval` is `DAY`, `WEEK`, `MONTH` or `YEAR` with its `count`; omitted `repetitions` charges until someone cancels; `trial_days` is 0 or a trial period and is not combined with `setup_amount` (an initial charge different from the recurring one). Statuses: `PENDING`, `TRIALING`, `ACTIVE`, `PAST_DUE`, `PAUSED`, `UNPAID` and `CANCELED`; every change is notified with `merchant_subscription.*`. It accepts `Idempotency-Key`: repeating with the same body returns the subscription already created.

        Typical errors: 400 `merchant_subscription_interval_invalid`, `merchant_subscription_trial_with_setup_fee`, `merchant_subscription_length_invalid`, `payment_currency_not_supported_by_connection`, `customer_not_found`, `saved_method_not_found`, `saved_method_consent_required`, `merchant_identity_required`; 409 `saved_method_not_active`, `connection_inactive`, `idempotency_key_reused`; 429 if the account quota ran out.
      tags: [Suscripciones de clientes]
      x-cash-scope: merchant_subscriptions:create
      x-cash-sdk: merchantSubscriptions.create
      parameters:
        - {$ref: '#/components/parameters/IdempotencyKey'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/SubscriptionCreateBody'}}
      responses:
        '201':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/MerchantSubscriptionView'}}
        '200':
          description: Repetición de una petición con la misma Idempotency-Key
          headers:
            Idempotent-Replayed: {description: 'true cuando la respuesta repite una petición con la misma Idempotency-Key.', schema: {type: string, enum: ['true']}}
          content:
            application/json: {schema: {$ref: '#/components/schemas/MerchantSubscriptionView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, amount_invalid, payment_amount_precision_invalid, payment_currency_not_supported_by_connection, payment_connection_not_found, customer_not_found, saved_method_not_found, saved_method_consent_required, provider_capability_unsupported, merchant_subscription_interval_invalid, merchant_subscription_trial_with_setup_fee, merchant_subscription_length_invalid, merchant_identity_required]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '402': {description: La suscripción no permite la operación, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [subscription_required, subscription_charges_suspended]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '409': {description: Duplicado o conflicto de estado, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [idempotency_key_reused, saved_method_not_active, connection_inactive]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded, quota_limit_reached]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [provider_unavailable, service_unavailable]}}}]}}}}
  /v1/merchant-subscriptions/{uuid}:
    get:
      operationId: getMerchantSubscription
      summary: Devuelve una suscripción de un cliente
      x-cash-providers: [MERCADO_PAGO, STRIPE]
      description: |-
        Devuelve una suscripción de la cuenta con su estado, su próximo cobro, el cambio de monto pendiente (`pending_amount`, `pending_amount_effective_on`) y `manage_url`, el enlace para que el cliente la gestione o la dé de baja.

        **Conexiones que lo admiten:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).
      x-description-en: |-
        Returns an account subscription with its status, its next charge, the pending amount change (`pending_amount`, `pending_amount_effective_on`) and `manage_url`, the link for the customer to manage or cancel it.

        **Connections that support it:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).
      tags: [Suscripciones de clientes]
      x-cash-scope: merchant_subscriptions:read
      x-cash-sdk: merchantSubscriptions.get
      parameters:
        - {$ref: '#/components/parameters/UUID'}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/MerchantSubscriptionView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [merchant_subscription_not_found]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [service_unavailable]}}}]}}}}
  /v1/merchant-subscriptions/{uuid}/pause:
    post:
      operationId: pauseMerchantSubscription
      summary: Pausa una suscripción
      x-cash-providers: [MERCADO_PAGO, STRIPE]
      description: |-
        Pausa una suscripción activa: no se programan cobros hasta que se reanude. Se avisa con `merchant_subscription.paused`.

        **Conexiones que lo admiten:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).
      x-description-en: |-
        Pauses an active subscription: no charges are scheduled until it resumes. `merchant_subscription.paused` is notified.

        **Connections that support it:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).
      tags: [Suscripciones de clientes]
      x-cash-scope: merchant_subscriptions:update
      x-cash-sdk: merchantSubscriptions.pause
      parameters:
        - {$ref: '#/components/parameters/UUID'}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/MerchantSubscriptionView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '402': {description: La suscripción no permite la operación, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [subscription_required, subscription_charges_suspended]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [merchant_subscription_not_found]}}}]}}}}
        '409': {description: Duplicado o conflicto de estado, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [merchant_subscription_state_invalid, saved_method_not_active]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [provider_unavailable, service_unavailable]}}}]}}}}
  /v1/merchant-subscriptions/{uuid}/resume:
    post:
      operationId: resumeMerchantSubscription
      summary: Reanuda una suscripción
      x-cash-providers: [MERCADO_PAGO, STRIPE]
      description: |-
        Reanuda una suscripción pausada o sin pago (`UNPAID`). Se avisa con `merchant_subscription.resumed`.

        **Conexiones que lo admiten:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).
      x-description-en: |-
        Resumes a paused or unpaid (`UNPAID`) subscription. `merchant_subscription.resumed` is notified.

        **Connections that support it:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).
      tags: [Suscripciones de clientes]
      x-cash-scope: merchant_subscriptions:update
      x-cash-sdk: merchantSubscriptions.resume
      parameters:
        - {$ref: '#/components/parameters/UUID'}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/MerchantSubscriptionView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '402': {description: La suscripción no permite la operación, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [subscription_required, subscription_charges_suspended]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [merchant_subscription_not_found]}}}]}}}}
        '409': {description: Duplicado o conflicto de estado, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [merchant_subscription_state_invalid, saved_method_not_active]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [provider_unavailable, service_unavailable]}}}]}}}}
  /v1/merchant-subscriptions/{uuid}/reauthorize:
    post:
      operationId: reauthorizeMerchantSubscription
      summary: Pide autorizar de nuevo una suscripción
      x-cash-providers: [MERCADO_PAGO, STRIPE]
      description: |-
        Entrega el enlace con que el comprador autoriza de nuevo el cobro de una suscripción sin pago (`UNPAID`), con su tarjeta o con otra, y le avisa por correo. Pedirlo otra vez devuelve el mismo enlace; con un cobro en curso responde 409.

        **Conexiones que lo admiten:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).
      x-description-en: |-
        Returns the link with which the buyer authorizes again the charge of an unpaid (`UNPAID`) subscription, with their card or another, and notifies them by email. Asking again returns the same link; with a charge in progress it answers 409.

        **Connections that support it:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).
      tags: [Suscripciones de clientes]
      x-cash-scope: merchant_subscriptions:update
      x-cash-sdk: merchantSubscriptions.reauthorize
      parameters:
        - {$ref: '#/components/parameters/UUID'}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/ReauthorizationView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, provider_capability_unsupported]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '402': {description: La suscripción no permite la operación, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [subscription_required, subscription_charges_suspended]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [merchant_subscription_not_found]}}}]}}}}
        '409': {description: Duplicado o conflicto de estado, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [merchant_subscription_state_invalid, merchant_subscription_reauthorization_charge_live]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [provider_unavailable, service_unavailable]}}}]}}}}
  /v1/merchant-subscriptions/{uuid}/cancel:
    post:
      operationId: cancelMerchantSubscription
      summary: Cancela una suscripción
      x-cash-providers: [MERCADO_PAGO, STRIPE]
      description: |-
        Da de baja una suscripción por decisión del comercio; no se cobran más períodos y no se deshace. Se avisa con `merchant_subscription.canceled`.

        **Conexiones que lo admiten:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).
      x-description-en: |-
        Cancels a subscription by merchant decision; no more periods are charged and it cannot be undone. `merchant_subscription.canceled` is notified.

        **Connections that support it:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).
      tags: [Suscripciones de clientes]
      x-cash-scope: merchant_subscriptions:update
      x-cash-sdk: merchantSubscriptions.cancel
      parameters:
        - {$ref: '#/components/parameters/UUID'}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/MerchantSubscriptionView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '402': {description: La suscripción no permite la operación, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [subscription_required, subscription_charges_suspended]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [merchant_subscription_not_found]}}}]}}}}
        '409': {description: Duplicado o conflicto de estado, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [merchant_subscription_state_invalid, saved_method_not_active]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [provider_unavailable, service_unavailable]}}}]}}}}
  /v1/merchant-subscriptions/{uuid}/amount:
    put:
      operationId: changeMerchantSubscriptionAmount
      summary: Cambia el monto de una suscripción
      x-cash-providers: [MERCADO_PAGO, STRIPE]
      description: |-
        Cambia el monto, hacia arriba o hacia abajo, desde el siguiente cobro que todavía no tiene fila. El comprador recibe un aviso por correo y no tiene que aceptarlo; mientras no rige aparece en `pending_amount`.

        **Conexiones que lo admiten:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).
      x-description-en: |-
        Changes the amount, up or down, from the next charge that has no row yet. The buyer receives an email notice and does not have to accept it; until it applies it shows in `pending_amount`.

        **Connections that support it:** Mercado Pago (`MERCADO_PAGO`), Stripe (`STRIPE`).
      tags: [Suscripciones de clientes]
      x-cash-scope: merchant_subscriptions:update
      x-cash-sdk: merchantSubscriptions.changeAmount
      parameters:
        - {$ref: '#/components/parameters/UUID'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/SubscriptionAmountBody'}}
      responses:
        '200':
          description: Respuesta correcta
          content:
            application/json: {schema: {$ref: '#/components/schemas/MerchantSubscriptionView'}}
        '400': {description: Dato inválido, content: {application/json: {schema: {oneOf: [{allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [validation_error, amount_invalid, payment_amount_precision_invalid]}}}]}, {$ref: '#/components/schemas/ValidationErrors'}]}}}}
        '401': {description: Credencial ausente o inválida, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_invalid]}}}]}}}}
        '402': {description: La suscripción no permite la operación, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [subscription_required, subscription_charges_suspended]}}}]}}}}
        '403': {description: La credencial no alcanza la ruta o el permiso, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [api_key_scope_missing]}}}]}}}}
        '404': {description: El recurso de la ruta no existe, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [merchant_subscription_not_found]}}}]}}}}
        '409': {description: Duplicado o conflicto de estado, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [merchant_subscription_state_invalid, merchant_subscription_method_change_not_supported, merchant_subscription_method_reauthorization_required]}}}]}}}}
        '429': {description: Límite de peticiones o cupo agotado, headers: {Retry-After: {$ref: '#/components/headers/RetryAfter'}, X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}, X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}, X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}}, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [rate_limit_exceeded]}}}]}}}}
        '503': {description: Servicio no disponible, content: {application/json: {schema: {allOf: [{$ref: '#/components/schemas/Error'}, {type: object, properties: {error_key: {enum: [provider_unavailable, service_unavailable]}}}]}}}}
webhooks:
  payment.accepted:
    post:
      operationId: webhook_payment_accepted
      summary: Un pago fue aceptado
      description: >-
        Cada notificación llega como POST a la URL de la conexión con el cuerpo crudo firmado. El receptor recalcula HMAC-SHA256 del cuerpo crudo con el secreto de notificaciones antes de interpretarlo y lo compara en tiempo constante con el valor de X-Cash-Signature (prefijo sha256=). Comprueba que X-Cash-Timestamp, los segundos Unix del momento en que se firmó ese mensaje, está a lo sumo 21600 segundos (6 horas) en el pasado y 300 segundos en el futuro. created_at del cuerpo es el momento del evento y puede ser anterior a X-Cash-Timestamp: un reenvío lleva el mismo cuerpo y el mismo X-Cash-Event-Id que el original, con la marca de tiempo de su propia firma. Deduplica por X-Cash-Event-Id. Un secreto rotado o revocado deja de valer en el acto. Una respuesta distinta de 2xx se reintenta hasta cinco intentos, con aproximadamente una hora entre uno y otro.
      tags: [Notificaciones]
      security: []
      parameters:
        - {$ref: '#/components/parameters/XCashEventId'}
        - {$ref: '#/components/parameters/XCashEventType'}
        - {$ref: '#/components/parameters/XCashDeliveryId'}
        - {$ref: '#/components/parameters/XCashTimestamp'}
        - {$ref: '#/components/parameters/XCashSignature'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/PaymentAcceptedEvent'}}
      responses:
        '2XX': {description: El evento se recibió; cualquier otra respuesta se reintenta}
  payment.reconciled:
    post:
      operationId: webhook_payment_reconciled
      summary: Un pago fue conciliado
      description: >-
        Cada notificación llega como POST a la URL de la conexión con el cuerpo crudo firmado. El receptor recalcula HMAC-SHA256 del cuerpo crudo con el secreto de notificaciones antes de interpretarlo y lo compara en tiempo constante con el valor de X-Cash-Signature (prefijo sha256=). Comprueba que X-Cash-Timestamp, los segundos Unix del momento en que se firmó ese mensaje, está a lo sumo 21600 segundos (6 horas) en el pasado y 300 segundos en el futuro. created_at del cuerpo es el momento del evento y puede ser anterior a X-Cash-Timestamp: un reenvío lleva el mismo cuerpo y el mismo X-Cash-Event-Id que el original, con la marca de tiempo de su propia firma. Deduplica por X-Cash-Event-Id. Un secreto rotado o revocado deja de valer en el acto. Una respuesta distinta de 2xx se reintenta hasta cinco intentos, con aproximadamente una hora entre uno y otro.
      tags: [Notificaciones]
      security: []
      parameters:
        - {$ref: '#/components/parameters/XCashEventId'}
        - {$ref: '#/components/parameters/XCashEventType'}
        - {$ref: '#/components/parameters/XCashDeliveryId'}
        - {$ref: '#/components/parameters/XCashTimestamp'}
        - {$ref: '#/components/parameters/XCashSignature'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/PaymentReconciledEvent'}}
      responses:
        '2XX': {description: El evento se recibió; cualquier otra respuesta se reintenta}
  reconciliation.reverted:
    post:
      operationId: webhook_reconciliation_reverted
      summary: Una conciliación fue revertida
      description: >-
        Cada notificación llega como POST a la URL de la conexión con el cuerpo crudo firmado. El receptor recalcula HMAC-SHA256 del cuerpo crudo con el secreto de notificaciones antes de interpretarlo y lo compara en tiempo constante con el valor de X-Cash-Signature (prefijo sha256=). Comprueba que X-Cash-Timestamp, los segundos Unix del momento en que se firmó ese mensaje, está a lo sumo 21600 segundos (6 horas) en el pasado y 300 segundos en el futuro. created_at del cuerpo es el momento del evento y puede ser anterior a X-Cash-Timestamp: un reenvío lleva el mismo cuerpo y el mismo X-Cash-Event-Id que el original, con la marca de tiempo de su propia firma. Deduplica por X-Cash-Event-Id. Un secreto rotado o revocado deja de valer en el acto. Una respuesta distinta de 2xx se reintenta hasta cinco intentos, con aproximadamente una hora entre uno y otro.
      tags: [Notificaciones]
      security: []
      parameters:
        - {$ref: '#/components/parameters/XCashEventId'}
        - {$ref: '#/components/parameters/XCashEventType'}
        - {$ref: '#/components/parameters/XCashDeliveryId'}
        - {$ref: '#/components/parameters/XCashTimestamp'}
        - {$ref: '#/components/parameters/XCashSignature'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/ReconciliationRevertedEvent'}}
      responses:
        '2XX': {description: El evento se recibió; cualquier otra respuesta se reintenta}
  payment_link.paid:
    post:
      operationId: webhook_payment_link_paid
      summary: Un link de pago fue pagado
      description: >-
        Cada notificación llega como POST a la URL de la conexión con el cuerpo crudo firmado. El receptor recalcula HMAC-SHA256 del cuerpo crudo con el secreto de notificaciones antes de interpretarlo y lo compara en tiempo constante con el valor de X-Cash-Signature (prefijo sha256=). Comprueba que X-Cash-Timestamp, los segundos Unix del momento en que se firmó ese mensaje, está a lo sumo 21600 segundos (6 horas) en el pasado y 300 segundos en el futuro. created_at del cuerpo es el momento del evento y puede ser anterior a X-Cash-Timestamp: un reenvío lleva el mismo cuerpo y el mismo X-Cash-Event-Id que el original, con la marca de tiempo de su propia firma. Deduplica por X-Cash-Event-Id. Un secreto rotado o revocado deja de valer en el acto. Una respuesta distinta de 2xx se reintenta hasta cinco intentos, con aproximadamente una hora entre uno y otro.
      tags: [Notificaciones]
      security: []
      parameters:
        - {$ref: '#/components/parameters/XCashEventId'}
        - {$ref: '#/components/parameters/XCashEventType'}
        - {$ref: '#/components/parameters/XCashDeliveryId'}
        - {$ref: '#/components/parameters/XCashTimestamp'}
        - {$ref: '#/components/parameters/XCashSignature'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/PaymentLinkPaidEvent'}}
      responses:
        '2XX': {description: El evento se recibió; cualquier otra respuesta se reintenta}
  payment_link.expired:
    post:
      operationId: webhook_payment_link_expired
      summary: Un link de pago venció
      description: >-
        Cada notificación llega como POST a la URL de la conexión con el cuerpo crudo firmado. El receptor recalcula HMAC-SHA256 del cuerpo crudo con el secreto de notificaciones antes de interpretarlo y lo compara en tiempo constante con el valor de X-Cash-Signature (prefijo sha256=). Comprueba que X-Cash-Timestamp, los segundos Unix del momento en que se firmó ese mensaje, está a lo sumo 21600 segundos (6 horas) en el pasado y 300 segundos en el futuro. created_at del cuerpo es el momento del evento y puede ser anterior a X-Cash-Timestamp: un reenvío lleva el mismo cuerpo y el mismo X-Cash-Event-Id que el original, con la marca de tiempo de su propia firma. Deduplica por X-Cash-Event-Id. Un secreto rotado o revocado deja de valer en el acto. Una respuesta distinta de 2xx se reintenta hasta cinco intentos, con aproximadamente una hora entre uno y otro.
      tags: [Notificaciones]
      security: []
      parameters:
        - {$ref: '#/components/parameters/XCashEventId'}
        - {$ref: '#/components/parameters/XCashEventType'}
        - {$ref: '#/components/parameters/XCashDeliveryId'}
        - {$ref: '#/components/parameters/XCashTimestamp'}
        - {$ref: '#/components/parameters/XCashSignature'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/PaymentLinkExpiredEvent'}}
      responses:
        '2XX': {description: El evento se recibió; cualquier otra respuesta se reintenta}
  payment_link.rejected:
    post:
      operationId: webhook_payment_link_rejected
      summary: Un link de pago fue rechazado
      description: >-
        Cada notificación llega como POST a la URL de la conexión con el cuerpo crudo firmado. El receptor recalcula HMAC-SHA256 del cuerpo crudo con el secreto de notificaciones antes de interpretarlo y lo compara en tiempo constante con el valor de X-Cash-Signature (prefijo sha256=). Comprueba que X-Cash-Timestamp, los segundos Unix del momento en que se firmó ese mensaje, está a lo sumo 21600 segundos (6 horas) en el pasado y 300 segundos en el futuro. created_at del cuerpo es el momento del evento y puede ser anterior a X-Cash-Timestamp: un reenvío lleva el mismo cuerpo y el mismo X-Cash-Event-Id que el original, con la marca de tiempo de su propia firma. Deduplica por X-Cash-Event-Id. Un secreto rotado o revocado deja de valer en el acto. Una respuesta distinta de 2xx se reintenta hasta cinco intentos, con aproximadamente una hora entre uno y otro.
      tags: [Notificaciones]
      security: []
      parameters:
        - {$ref: '#/components/parameters/XCashEventId'}
        - {$ref: '#/components/parameters/XCashEventType'}
        - {$ref: '#/components/parameters/XCashDeliveryId'}
        - {$ref: '#/components/parameters/XCashTimestamp'}
        - {$ref: '#/components/parameters/XCashSignature'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/PaymentLinkRejectedEvent'}}
      responses:
        '2XX': {description: El evento se recibió; cualquier otra respuesta se reintenta}
  payment.provider_refunded:
    post:
      operationId: webhook_payment_provider_refunded
      summary: Un pago fue reembolsado por la pasarela
      x-cash-providers: [BINANCE_PAY, MERCADO_PAGO, PAYPAL, STRIPE]
      description: |-
        Cada notificación llega como POST a la URL de la conexión con el cuerpo crudo firmado. El receptor recalcula HMAC-SHA256 del cuerpo crudo con el secreto de notificaciones antes de interpretarlo y lo compara en tiempo constante con el valor de X-Cash-Signature (prefijo sha256=). Comprueba que X-Cash-Timestamp, los segundos Unix del momento en que se firmó ese mensaje, está a lo sumo 21600 segundos (6 horas) en el pasado y 300 segundos en el futuro. created_at del cuerpo es el momento del evento y puede ser anterior a X-Cash-Timestamp: un reenvío lleva el mismo cuerpo y el mismo X-Cash-Event-Id que el original, con la marca de tiempo de su propia firma. Deduplica por X-Cash-Event-Id. Un secreto rotado o revocado deja de valer en el acto. Una respuesta distinta de 2xx se reintenta hasta cinco intentos, con aproximadamente una hora entre uno y otro.

        **Conexiones que lo admiten:** Binance Pay (comercio) (`BINANCE_PAY`), Mercado Pago (`MERCADO_PAGO`), PayPal (`PAYPAL`), Stripe (`STRIPE`).
      x-description-en: |-
        A payment was refunded by the provider on its own side, outside Cachicamo Cash. Signed like every notification: the receiver verifies `X-Cash-Signature` over the raw body before parsing it (see the **Notificaciones** tag).

        **Connections that support it:** Binance Pay (comercio) (`BINANCE_PAY`), Mercado Pago (`MERCADO_PAGO`), PayPal (`PAYPAL`), Stripe (`STRIPE`).
      tags: [Notificaciones]
      security: []
      parameters:
        - {$ref: '#/components/parameters/XCashEventId'}
        - {$ref: '#/components/parameters/XCashEventType'}
        - {$ref: '#/components/parameters/XCashDeliveryId'}
        - {$ref: '#/components/parameters/XCashTimestamp'}
        - {$ref: '#/components/parameters/XCashSignature'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/PaymentProviderRefundedEvent'}}
      responses:
        '2XX': {description: El evento se recibió; cualquier otra respuesta se reintenta}
  payment.dispute_opened:
    post:
      operationId: webhook_payment_dispute_opened
      summary: Se abrió una disputa sobre un pago
      x-cash-providers: [MERCADO_PAGO, PAYPAL, STRIPE]
      description: |-
        Cada notificación llega como POST a la URL de la conexión con el cuerpo crudo firmado. El receptor recalcula HMAC-SHA256 del cuerpo crudo con el secreto de notificaciones antes de interpretarlo y lo compara en tiempo constante con el valor de X-Cash-Signature (prefijo sha256=). Comprueba que X-Cash-Timestamp, los segundos Unix del momento en que se firmó ese mensaje, está a lo sumo 21600 segundos (6 horas) en el pasado y 300 segundos en el futuro. created_at del cuerpo es el momento del evento y puede ser anterior a X-Cash-Timestamp: un reenvío lleva el mismo cuerpo y el mismo X-Cash-Event-Id que el original, con la marca de tiempo de su propia firma. Deduplica por X-Cash-Event-Id. Un secreto rotado o revocado deja de valer en el acto. Una respuesta distinta de 2xx se reintenta hasta cinco intentos, con aproximadamente una hora entre uno y otro.

        **Conexiones que lo admiten:** Mercado Pago (`MERCADO_PAGO`), PayPal (`PAYPAL`), Stripe (`STRIPE`).
      x-description-en: |-
        A dispute was opened on a payment. Signed like every notification: the receiver verifies `X-Cash-Signature` over the raw body before parsing it (see the **Notificaciones** tag). The merchant answers the dispute in the provider panel.

        **Connections that support it:** Mercado Pago (`MERCADO_PAGO`), PayPal (`PAYPAL`), Stripe (`STRIPE`).
      tags: [Notificaciones]
      security: []
      parameters:
        - {$ref: '#/components/parameters/XCashEventId'}
        - {$ref: '#/components/parameters/XCashEventType'}
        - {$ref: '#/components/parameters/XCashDeliveryId'}
        - {$ref: '#/components/parameters/XCashTimestamp'}
        - {$ref: '#/components/parameters/XCashSignature'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/PaymentDisputeOpenedEvent'}}
      responses:
        '2XX': {description: El evento se recibió; cualquier otra respuesta se reintenta}
  payment.dispute_closed:
    post:
      operationId: webhook_payment_dispute_closed
      summary: Se cerró la disputa de un pago
      x-cash-providers: [MERCADO_PAGO, PAYPAL, STRIPE]
      description: |-
        Cada notificación llega como POST a la URL de la conexión con el cuerpo crudo firmado. El receptor recalcula HMAC-SHA256 del cuerpo crudo con el secreto de notificaciones antes de interpretarlo y lo compara en tiempo constante con el valor de X-Cash-Signature (prefijo sha256=). Comprueba que X-Cash-Timestamp, los segundos Unix del momento en que se firmó ese mensaje, está a lo sumo 21600 segundos (6 horas) en el pasado y 300 segundos en el futuro. created_at del cuerpo es el momento del evento y puede ser anterior a X-Cash-Timestamp: un reenvío lleva el mismo cuerpo y el mismo X-Cash-Event-Id que el original, con la marca de tiempo de su propia firma. Deduplica por X-Cash-Event-Id. Un secreto rotado o revocado deja de valer en el acto. Una respuesta distinta de 2xx se reintenta hasta cinco intentos, con aproximadamente una hora entre uno y otro.

        **Conexiones que lo admiten:** Mercado Pago (`MERCADO_PAGO`), PayPal (`PAYPAL`), Stripe (`STRIPE`).
      x-description-en: |-
        The dispute of a payment was closed, won or lost. Signed like every notification: the receiver verifies `X-Cash-Signature` over the raw body before parsing it (see the **Notificaciones** tag).

        **Connections that support it:** Mercado Pago (`MERCADO_PAGO`), PayPal (`PAYPAL`), Stripe (`STRIPE`).
      tags: [Notificaciones]
      security: []
      parameters:
        - {$ref: '#/components/parameters/XCashEventId'}
        - {$ref: '#/components/parameters/XCashEventType'}
        - {$ref: '#/components/parameters/XCashDeliveryId'}
        - {$ref: '#/components/parameters/XCashTimestamp'}
        - {$ref: '#/components/parameters/XCashSignature'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/PaymentDisputeClosedEvent'}}
      responses:
        '2XX': {description: El evento se recibió; cualquier otra respuesta se reintenta}
  payment_link.asset_rejected:
    post:
      operationId: webhook_payment_link_asset_rejected
      summary: Un link de pago recibió un cobro en una moneda que la conexión no acepta
      description: >-
        Cada notificación llega como POST a la URL de la conexión con el cuerpo crudo firmado. El receptor recalcula HMAC-SHA256 del cuerpo crudo con el secreto de notificaciones antes de interpretarlo y lo compara en tiempo constante con el valor de X-Cash-Signature (prefijo sha256=). Comprueba que X-Cash-Timestamp, los segundos Unix del momento en que se firmó ese mensaje, está a lo sumo 21600 segundos (6 horas) en el pasado y 300 segundos en el futuro. created_at del cuerpo es el momento del evento y puede ser anterior a X-Cash-Timestamp: un reenvío lleva el mismo cuerpo y el mismo X-Cash-Event-Id que el original, con la marca de tiempo de su propia firma. Deduplica por X-Cash-Event-Id. Un secreto rotado o revocado deja de valer en el acto. Una respuesta distinta de 2xx se reintenta hasta cinco intentos, con aproximadamente una hora entre uno y otro.
      tags: [Notificaciones]
      security: []
      parameters:
        - {$ref: '#/components/parameters/XCashEventId'}
        - {$ref: '#/components/parameters/XCashEventType'}
        - {$ref: '#/components/parameters/XCashDeliveryId'}
        - {$ref: '#/components/parameters/XCashTimestamp'}
        - {$ref: '#/components/parameters/XCashSignature'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/PaymentLinkAssetRejectedEvent'}}
      responses:
        '2XX': {description: El evento se recibió; cualquier otra respuesta se reintenta}
  provider_charge.succeeded:
    post:
      operationId: webhook_provider_charge_succeeded
      summary: Un cobro directo fue aprobado
      description: >-
        Cada notificación llega como POST a la URL de la conexión con el cuerpo crudo firmado. El receptor recalcula HMAC-SHA256 del cuerpo crudo con el secreto de notificaciones antes de interpretarlo y lo compara en tiempo constante con el valor de X-Cash-Signature (prefijo sha256=). Comprueba que X-Cash-Timestamp, los segundos Unix del momento en que se firmó ese mensaje, está a lo sumo 21600 segundos (6 horas) en el pasado y 300 segundos en el futuro. created_at del cuerpo es el momento del evento y puede ser anterior a X-Cash-Timestamp: un reenvío lleva el mismo cuerpo y el mismo X-Cash-Event-Id que el original, con la marca de tiempo de su propia firma. Deduplica por X-Cash-Event-Id. Un secreto rotado o revocado deja de valer en el acto. Una respuesta distinta de 2xx se reintenta hasta cinco intentos, con aproximadamente una hora entre uno y otro.
      tags: [Notificaciones]
      security: []
      parameters:
        - {$ref: '#/components/parameters/XCashEventId'}
        - {$ref: '#/components/parameters/XCashEventType'}
        - {$ref: '#/components/parameters/XCashDeliveryId'}
        - {$ref: '#/components/parameters/XCashTimestamp'}
        - {$ref: '#/components/parameters/XCashSignature'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/ProviderChargeSucceededEvent'}}
      responses:
        '2XX': {description: El evento se recibió; cualquier otra respuesta se reintenta}
  provider_charge.failed:
    post:
      operationId: webhook_provider_charge_failed
      summary: Un cobro directo fue rechazado o falló
      description: >-
        Cada notificación llega como POST a la URL de la conexión con el cuerpo crudo firmado. El receptor recalcula HMAC-SHA256 del cuerpo crudo con el secreto de notificaciones antes de interpretarlo y lo compara en tiempo constante con el valor de X-Cash-Signature (prefijo sha256=). Comprueba que X-Cash-Timestamp, los segundos Unix del momento en que se firmó ese mensaje, está a lo sumo 21600 segundos (6 horas) en el pasado y 300 segundos en el futuro. created_at del cuerpo es el momento del evento y puede ser anterior a X-Cash-Timestamp: un reenvío lleva el mismo cuerpo y el mismo X-Cash-Event-Id que el original, con la marca de tiempo de su propia firma. Deduplica por X-Cash-Event-Id. Un secreto rotado o revocado deja de valer en el acto. Una respuesta distinta de 2xx se reintenta hasta cinco intentos, con aproximadamente una hora entre uno y otro.
      tags: [Notificaciones]
      security: []
      parameters:
        - {$ref: '#/components/parameters/XCashEventId'}
        - {$ref: '#/components/parameters/XCashEventType'}
        - {$ref: '#/components/parameters/XCashDeliveryId'}
        - {$ref: '#/components/parameters/XCashTimestamp'}
        - {$ref: '#/components/parameters/XCashSignature'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/ProviderChargeFailedEvent'}}
      responses:
        '2XX': {description: El evento se recibió; cualquier otra respuesta se reintenta}
  provider_charge.requires_action:
    post:
      operationId: webhook_provider_charge_requires_action
      summary: Un cobro directo necesita una acción del comprador
      description: >-
        Cada notificación llega como POST a la URL de la conexión con el cuerpo crudo firmado. El receptor recalcula HMAC-SHA256 del cuerpo crudo con el secreto de notificaciones antes de interpretarlo y lo compara en tiempo constante con el valor de X-Cash-Signature (prefijo sha256=). Comprueba que X-Cash-Timestamp, los segundos Unix del momento en que se firmó ese mensaje, está a lo sumo 21600 segundos (6 horas) en el pasado y 300 segundos en el futuro. created_at del cuerpo es el momento del evento y puede ser anterior a X-Cash-Timestamp: un reenvío lleva el mismo cuerpo y el mismo X-Cash-Event-Id que el original, con la marca de tiempo de su propia firma. Deduplica por X-Cash-Event-Id. Un secreto rotado o revocado deja de valer en el acto. Una respuesta distinta de 2xx se reintenta hasta cinco intentos, con aproximadamente una hora entre uno y otro.
      tags: [Notificaciones]
      security: []
      parameters:
        - {$ref: '#/components/parameters/XCashEventId'}
        - {$ref: '#/components/parameters/XCashEventType'}
        - {$ref: '#/components/parameters/XCashDeliveryId'}
        - {$ref: '#/components/parameters/XCashTimestamp'}
        - {$ref: '#/components/parameters/XCashSignature'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/ProviderChargeRequiresActionEvent'}}
      responses:
        '2XX': {description: El evento se recibió; cualquier otra respuesta se reintenta}
  saved_method.created:
    post:
      operationId: webhook_saved_method_created
      summary: Un comprador guardó un método
      description: >-
        Cada notificación llega como POST a la URL de la conexión con el cuerpo crudo firmado. El receptor recalcula HMAC-SHA256 del cuerpo crudo con el secreto de notificaciones antes de interpretarlo y lo compara en tiempo constante con el valor de X-Cash-Signature (prefijo sha256=). Comprueba que X-Cash-Timestamp, los segundos Unix del momento en que se firmó ese mensaje, está a lo sumo 21600 segundos (6 horas) en el pasado y 300 segundos en el futuro. created_at del cuerpo es el momento del evento y puede ser anterior a X-Cash-Timestamp: un reenvío lleva el mismo cuerpo y el mismo X-Cash-Event-Id que el original, con la marca de tiempo de su propia firma. Deduplica por X-Cash-Event-Id. Un secreto rotado o revocado deja de valer en el acto. Una respuesta distinta de 2xx se reintenta hasta cinco intentos, con aproximadamente una hora entre uno y otro.
      tags: [Notificaciones]
      security: []
      parameters:
        - {$ref: '#/components/parameters/XCashEventId'}
        - {$ref: '#/components/parameters/XCashEventType'}
        - {$ref: '#/components/parameters/XCashDeliveryId'}
        - {$ref: '#/components/parameters/XCashTimestamp'}
        - {$ref: '#/components/parameters/XCashSignature'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/SavedMethodCreatedEvent'}}
      responses:
        '2XX': {description: El evento se recibió; cualquier otra respuesta se reintenta}
  saved_method.detached:
    post:
      operationId: webhook_saved_method_detached
      summary: Un método guardado fue desvinculado
      description: >-
        Cada notificación llega como POST a la URL de la conexión con el cuerpo crudo firmado. El receptor recalcula HMAC-SHA256 del cuerpo crudo con el secreto de notificaciones antes de interpretarlo y lo compara en tiempo constante con el valor de X-Cash-Signature (prefijo sha256=). Comprueba que X-Cash-Timestamp, los segundos Unix del momento en que se firmó ese mensaje, está a lo sumo 21600 segundos (6 horas) en el pasado y 300 segundos en el futuro. created_at del cuerpo es el momento del evento y puede ser anterior a X-Cash-Timestamp: un reenvío lleva el mismo cuerpo y el mismo X-Cash-Event-Id que el original, con la marca de tiempo de su propia firma. Deduplica por X-Cash-Event-Id. Un secreto rotado o revocado deja de valer en el acto. Una respuesta distinta de 2xx se reintenta hasta cinco intentos, con aproximadamente una hora entre uno y otro.
      tags: [Notificaciones]
      security: []
      parameters:
        - {$ref: '#/components/parameters/XCashEventId'}
        - {$ref: '#/components/parameters/XCashEventType'}
        - {$ref: '#/components/parameters/XCashDeliveryId'}
        - {$ref: '#/components/parameters/XCashTimestamp'}
        - {$ref: '#/components/parameters/XCashSignature'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/SavedMethodDetachedEvent'}}
      responses:
        '2XX': {description: El evento se recibió; cualquier otra respuesta se reintenta}
  saved_method.expired:
    post:
      operationId: webhook_saved_method_expired
      summary: Un método guardado venció
      description: >-
        Cada notificación llega como POST a la URL de la conexión con el cuerpo crudo firmado. El receptor recalcula HMAC-SHA256 del cuerpo crudo con el secreto de notificaciones antes de interpretarlo y lo compara en tiempo constante con el valor de X-Cash-Signature (prefijo sha256=). Comprueba que X-Cash-Timestamp, los segundos Unix del momento en que se firmó ese mensaje, está a lo sumo 21600 segundos (6 horas) en el pasado y 300 segundos en el futuro. created_at del cuerpo es el momento del evento y puede ser anterior a X-Cash-Timestamp: un reenvío lleva el mismo cuerpo y el mismo X-Cash-Event-Id que el original, con la marca de tiempo de su propia firma. Deduplica por X-Cash-Event-Id. Un secreto rotado o revocado deja de valer en el acto. Una respuesta distinta de 2xx se reintenta hasta cinco intentos, con aproximadamente una hora entre uno y otro.
      tags: [Notificaciones]
      security: []
      parameters:
        - {$ref: '#/components/parameters/XCashEventId'}
        - {$ref: '#/components/parameters/XCashEventType'}
        - {$ref: '#/components/parameters/XCashDeliveryId'}
        - {$ref: '#/components/parameters/XCashTimestamp'}
        - {$ref: '#/components/parameters/XCashSignature'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/SavedMethodExpiredEvent'}}
      responses:
        '2XX': {description: El evento se recibió; cualquier otra respuesta se reintenta}
  merchant_subscription.activated:
    post:
      operationId: webhook_merchant_subscription_activated
      summary: Una suscripción de un cliente se activó
      description: >-
        Cada notificación llega como POST a la URL de la conexión con el cuerpo crudo firmado. El receptor recalcula HMAC-SHA256 del cuerpo crudo con el secreto de notificaciones antes de interpretarlo y lo compara en tiempo constante con el valor de X-Cash-Signature (prefijo sha256=). Comprueba que X-Cash-Timestamp, los segundos Unix del momento en que se firmó ese mensaje, está a lo sumo 21600 segundos (6 horas) en el pasado y 300 segundos en el futuro. created_at del cuerpo es el momento del evento y puede ser anterior a X-Cash-Timestamp: un reenvío lleva el mismo cuerpo y el mismo X-Cash-Event-Id que el original, con la marca de tiempo de su propia firma. Deduplica por X-Cash-Event-Id. Un secreto rotado o revocado deja de valer en el acto. Una respuesta distinta de 2xx se reintenta hasta cinco intentos, con aproximadamente una hora entre uno y otro.
      tags: [Notificaciones]
      security: []
      parameters:
        - {$ref: '#/components/parameters/XCashEventId'}
        - {$ref: '#/components/parameters/XCashEventType'}
        - {$ref: '#/components/parameters/XCashDeliveryId'}
        - {$ref: '#/components/parameters/XCashTimestamp'}
        - {$ref: '#/components/parameters/XCashSignature'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/MerchantSubscriptionActivatedEvent'}}
      responses:
        '2XX': {description: El evento se recibió; cualquier otra respuesta se reintenta}
  merchant_subscription.past_due:
    post:
      operationId: webhook_merchant_subscription_past_due
      summary: Una suscripción de un cliente tiene un cobro vencido
      description: >-
        Cada notificación llega como POST a la URL de la conexión con el cuerpo crudo firmado. El receptor recalcula HMAC-SHA256 del cuerpo crudo con el secreto de notificaciones antes de interpretarlo y lo compara en tiempo constante con el valor de X-Cash-Signature (prefijo sha256=). Comprueba que X-Cash-Timestamp, los segundos Unix del momento en que se firmó ese mensaje, está a lo sumo 21600 segundos (6 horas) en el pasado y 300 segundos en el futuro. created_at del cuerpo es el momento del evento y puede ser anterior a X-Cash-Timestamp: un reenvío lleva el mismo cuerpo y el mismo X-Cash-Event-Id que el original, con la marca de tiempo de su propia firma. Deduplica por X-Cash-Event-Id. Un secreto rotado o revocado deja de valer en el acto. Una respuesta distinta de 2xx se reintenta hasta cinco intentos, con aproximadamente una hora entre uno y otro.
      tags: [Notificaciones]
      security: []
      parameters:
        - {$ref: '#/components/parameters/XCashEventId'}
        - {$ref: '#/components/parameters/XCashEventType'}
        - {$ref: '#/components/parameters/XCashDeliveryId'}
        - {$ref: '#/components/parameters/XCashTimestamp'}
        - {$ref: '#/components/parameters/XCashSignature'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/MerchantSubscriptionPastDueEvent'}}
      responses:
        '2XX': {description: El evento se recibió; cualquier otra respuesta se reintenta}
  merchant_subscription.paused:
    post:
      operationId: webhook_merchant_subscription_paused
      summary: Una suscripción de un cliente fue pausada
      description: >-
        Cada notificación llega como POST a la URL de la conexión con el cuerpo crudo firmado. El receptor recalcula HMAC-SHA256 del cuerpo crudo con el secreto de notificaciones antes de interpretarlo y lo compara en tiempo constante con el valor de X-Cash-Signature (prefijo sha256=). Comprueba que X-Cash-Timestamp, los segundos Unix del momento en que se firmó ese mensaje, está a lo sumo 21600 segundos (6 horas) en el pasado y 300 segundos en el futuro. created_at del cuerpo es el momento del evento y puede ser anterior a X-Cash-Timestamp: un reenvío lleva el mismo cuerpo y el mismo X-Cash-Event-Id que el original, con la marca de tiempo de su propia firma. Deduplica por X-Cash-Event-Id. Un secreto rotado o revocado deja de valer en el acto. Una respuesta distinta de 2xx se reintenta hasta cinco intentos, con aproximadamente una hora entre uno y otro.
      tags: [Notificaciones]
      security: []
      parameters:
        - {$ref: '#/components/parameters/XCashEventId'}
        - {$ref: '#/components/parameters/XCashEventType'}
        - {$ref: '#/components/parameters/XCashDeliveryId'}
        - {$ref: '#/components/parameters/XCashTimestamp'}
        - {$ref: '#/components/parameters/XCashSignature'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/MerchantSubscriptionPausedEvent'}}
      responses:
        '2XX': {description: El evento se recibió; cualquier otra respuesta se reintenta}
  merchant_subscription.resumed:
    post:
      operationId: webhook_merchant_subscription_resumed
      summary: Una suscripción de un cliente se reanudó
      description: >-
        Cada notificación llega como POST a la URL de la conexión con el cuerpo crudo firmado. El receptor recalcula HMAC-SHA256 del cuerpo crudo con el secreto de notificaciones antes de interpretarlo y lo compara en tiempo constante con el valor de X-Cash-Signature (prefijo sha256=). Comprueba que X-Cash-Timestamp, los segundos Unix del momento en que se firmó ese mensaje, está a lo sumo 21600 segundos (6 horas) en el pasado y 300 segundos en el futuro. created_at del cuerpo es el momento del evento y puede ser anterior a X-Cash-Timestamp: un reenvío lleva el mismo cuerpo y el mismo X-Cash-Event-Id que el original, con la marca de tiempo de su propia firma. Deduplica por X-Cash-Event-Id. Un secreto rotado o revocado deja de valer en el acto. Una respuesta distinta de 2xx se reintenta hasta cinco intentos, con aproximadamente una hora entre uno y otro.
      tags: [Notificaciones]
      security: []
      parameters:
        - {$ref: '#/components/parameters/XCashEventId'}
        - {$ref: '#/components/parameters/XCashEventType'}
        - {$ref: '#/components/parameters/XCashDeliveryId'}
        - {$ref: '#/components/parameters/XCashTimestamp'}
        - {$ref: '#/components/parameters/XCashSignature'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/MerchantSubscriptionResumedEvent'}}
      responses:
        '2XX': {description: El evento se recibió; cualquier otra respuesta se reintenta}
  merchant_subscription.unpaid:
    post:
      operationId: webhook_merchant_subscription_unpaid
      summary: Una suscripción de un cliente quedó sin pago
      description: >-
        Cada notificación llega como POST a la URL de la conexión con el cuerpo crudo firmado. El receptor recalcula HMAC-SHA256 del cuerpo crudo con el secreto de notificaciones antes de interpretarlo y lo compara en tiempo constante con el valor de X-Cash-Signature (prefijo sha256=). Comprueba que X-Cash-Timestamp, los segundos Unix del momento en que se firmó ese mensaje, está a lo sumo 21600 segundos (6 horas) en el pasado y 300 segundos en el futuro. created_at del cuerpo es el momento del evento y puede ser anterior a X-Cash-Timestamp: un reenvío lleva el mismo cuerpo y el mismo X-Cash-Event-Id que el original, con la marca de tiempo de su propia firma. Deduplica por X-Cash-Event-Id. Un secreto rotado o revocado deja de valer en el acto. Una respuesta distinta de 2xx se reintenta hasta cinco intentos, con aproximadamente una hora entre uno y otro.
      tags: [Notificaciones]
      security: []
      parameters:
        - {$ref: '#/components/parameters/XCashEventId'}
        - {$ref: '#/components/parameters/XCashEventType'}
        - {$ref: '#/components/parameters/XCashDeliveryId'}
        - {$ref: '#/components/parameters/XCashTimestamp'}
        - {$ref: '#/components/parameters/XCashSignature'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/MerchantSubscriptionUnpaidEvent'}}
      responses:
        '2XX': {description: El evento se recibió; cualquier otra respuesta se reintenta}
  merchant_subscription.canceled:
    post:
      operationId: webhook_merchant_subscription_canceled
      summary: Una suscripción de un cliente fue cancelada
      description: >-
        Cada notificación llega como POST a la URL de la conexión con el cuerpo crudo firmado. El receptor recalcula HMAC-SHA256 del cuerpo crudo con el secreto de notificaciones antes de interpretarlo y lo compara en tiempo constante con el valor de X-Cash-Signature (prefijo sha256=). Comprueba que X-Cash-Timestamp, los segundos Unix del momento en que se firmó ese mensaje, está a lo sumo 21600 segundos (6 horas) en el pasado y 300 segundos en el futuro. created_at del cuerpo es el momento del evento y puede ser anterior a X-Cash-Timestamp: un reenvío lleva el mismo cuerpo y el mismo X-Cash-Event-Id que el original, con la marca de tiempo de su propia firma. Deduplica por X-Cash-Event-Id. Un secreto rotado o revocado deja de valer en el acto. Una respuesta distinta de 2xx se reintenta hasta cinco intentos, con aproximadamente una hora entre uno y otro.
      tags: [Notificaciones]
      security: []
      parameters:
        - {$ref: '#/components/parameters/XCashEventId'}
        - {$ref: '#/components/parameters/XCashEventType'}
        - {$ref: '#/components/parameters/XCashDeliveryId'}
        - {$ref: '#/components/parameters/XCashTimestamp'}
        - {$ref: '#/components/parameters/XCashSignature'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/MerchantSubscriptionCanceledEvent'}}
      responses:
        '2XX': {description: El evento se recibió; cualquier otra respuesta se reintenta}
  payment_link.canceled:
    post:
      operationId: webhook_payment_link_canceled
      summary: Un link de pago fue cancelado
      description: >-
        Cada notificación llega como POST a la URL de la conexión con el cuerpo crudo firmado. El receptor recalcula HMAC-SHA256 del cuerpo crudo con el secreto de notificaciones antes de interpretarlo y lo compara en tiempo constante con el valor de X-Cash-Signature (prefijo sha256=). Comprueba que X-Cash-Timestamp, los segundos Unix del momento en que se firmó ese mensaje, está a lo sumo 21600 segundos (6 horas) en el pasado y 300 segundos en el futuro. created_at del cuerpo es el momento del evento y puede ser anterior a X-Cash-Timestamp: un reenvío lleva el mismo cuerpo y el mismo X-Cash-Event-Id que el original, con la marca de tiempo de su propia firma. Deduplica por X-Cash-Event-Id. Un secreto rotado o revocado deja de valer en el acto. Una respuesta distinta de 2xx se reintenta hasta cinco intentos, con aproximadamente una hora entre uno y otro.
      tags: [Notificaciones]
      security: []
      parameters:
        - {$ref: '#/components/parameters/XCashEventId'}
        - {$ref: '#/components/parameters/XCashEventType'}
        - {$ref: '#/components/parameters/XCashDeliveryId'}
        - {$ref: '#/components/parameters/XCashTimestamp'}
        - {$ref: '#/components/parameters/XCashSignature'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/PaymentLinkCanceledEvent'}}
      responses:
        '2XX': {description: El evento se recibió; cualquier otra respuesta se reintenta}
  connection.deactivated:
    post:
      operationId: webhook_connection_deactivated
      summary: Una conexión fue desactivada
      description: >-
        Cada notificación llega como POST a la URL de la conexión con el cuerpo crudo firmado. El receptor recalcula HMAC-SHA256 del cuerpo crudo con el secreto de notificaciones antes de interpretarlo y lo compara en tiempo constante con el valor de X-Cash-Signature (prefijo sha256=). Comprueba que X-Cash-Timestamp, los segundos Unix del momento en que se firmó ese mensaje, está a lo sumo 21600 segundos (6 horas) en el pasado y 300 segundos en el futuro. created_at del cuerpo es el momento del evento y puede ser anterior a X-Cash-Timestamp: un reenvío lleva el mismo cuerpo y el mismo X-Cash-Event-Id que el original, con la marca de tiempo de su propia firma. Deduplica por X-Cash-Event-Id. Un secreto rotado o revocado deja de valer en el acto. Una respuesta distinta de 2xx se reintenta hasta cinco intentos, con aproximadamente una hora entre uno y otro.
      tags: [Notificaciones]
      security: []
      parameters:
        - {$ref: '#/components/parameters/XCashEventId'}
        - {$ref: '#/components/parameters/XCashEventType'}
        - {$ref: '#/components/parameters/XCashDeliveryId'}
        - {$ref: '#/components/parameters/XCashTimestamp'}
        - {$ref: '#/components/parameters/XCashSignature'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/ConnectionDeactivatedEvent'}}
      responses:
        '2XX': {description: El evento se recibió; cualquier otra respuesta se reintenta}
  immediate_debit.accredited:
    post:
      operationId: webhook_immediate_debit_accredited
      summary: Un débito inmediato fue acreditado
      description: >-
        Cada notificación llega como POST a la URL de la conexión con el cuerpo crudo firmado. El receptor recalcula HMAC-SHA256 del cuerpo crudo con el secreto de notificaciones antes de interpretarlo y lo compara en tiempo constante con el valor de X-Cash-Signature (prefijo sha256=). Comprueba que X-Cash-Timestamp, los segundos Unix del momento en que se firmó ese mensaje, está a lo sumo 21600 segundos (6 horas) en el pasado y 300 segundos en el futuro. created_at del cuerpo es el momento del evento y puede ser anterior a X-Cash-Timestamp: un reenvío lleva el mismo cuerpo y el mismo X-Cash-Event-Id que el original, con la marca de tiempo de su propia firma. Deduplica por X-Cash-Event-Id. Un secreto rotado o revocado deja de valer en el acto. Una respuesta distinta de 2xx se reintenta hasta cinco intentos, con aproximadamente una hora entre uno y otro.
      tags: [Notificaciones]
      security: []
      parameters:
        - {$ref: '#/components/parameters/XCashEventId'}
        - {$ref: '#/components/parameters/XCashEventType'}
        - {$ref: '#/components/parameters/XCashDeliveryId'}
        - {$ref: '#/components/parameters/XCashTimestamp'}
        - {$ref: '#/components/parameters/XCashSignature'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/ImmediateDebitAccreditedEvent'}}
      responses:
        '2XX': {description: El evento se recibió; cualquier otra respuesta se reintenta}
  immediate_debit.rejected:
    post:
      operationId: webhook_immediate_debit_rejected
      summary: Un débito inmediato fue rechazado
      description: >-
        Cada notificación llega como POST a la URL de la conexión con el cuerpo crudo firmado. El receptor recalcula HMAC-SHA256 del cuerpo crudo con el secreto de notificaciones antes de interpretarlo y lo compara en tiempo constante con el valor de X-Cash-Signature (prefijo sha256=). Comprueba que X-Cash-Timestamp, los segundos Unix del momento en que se firmó ese mensaje, está a lo sumo 21600 segundos (6 horas) en el pasado y 300 segundos en el futuro. created_at del cuerpo es el momento del evento y puede ser anterior a X-Cash-Timestamp: un reenvío lleva el mismo cuerpo y el mismo X-Cash-Event-Id que el original, con la marca de tiempo de su propia firma. Deduplica por X-Cash-Event-Id. Un secreto rotado o revocado deja de valer en el acto. Una respuesta distinta de 2xx se reintenta hasta cinco intentos, con aproximadamente una hora entre uno y otro.
      tags: [Notificaciones]
      security: []
      parameters:
        - {$ref: '#/components/parameters/XCashEventId'}
        - {$ref: '#/components/parameters/XCashEventType'}
        - {$ref: '#/components/parameters/XCashDeliveryId'}
        - {$ref: '#/components/parameters/XCashTimestamp'}
        - {$ref: '#/components/parameters/XCashSignature'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/ImmediateDebitRejectedEvent'}}
      responses:
        '2XX': {description: El evento se recibió; cualquier otra respuesta se reintenta}
  immediate_debit.expired:
    post:
      operationId: webhook_immediate_debit_expired
      summary: Un débito inmediato venció
      description: >-
        Cada notificación llega como POST a la URL de la conexión con el cuerpo crudo firmado. El receptor recalcula HMAC-SHA256 del cuerpo crudo con el secreto de notificaciones antes de interpretarlo y lo compara en tiempo constante con el valor de X-Cash-Signature (prefijo sha256=). Comprueba que X-Cash-Timestamp, los segundos Unix del momento en que se firmó ese mensaje, está a lo sumo 21600 segundos (6 horas) en el pasado y 300 segundos en el futuro. created_at del cuerpo es el momento del evento y puede ser anterior a X-Cash-Timestamp: un reenvío lleva el mismo cuerpo y el mismo X-Cash-Event-Id que el original, con la marca de tiempo de su propia firma. Deduplica por X-Cash-Event-Id. Un secreto rotado o revocado deja de valer en el acto. Una respuesta distinta de 2xx se reintenta hasta cinco intentos, con aproximadamente una hora entre uno y otro.
      tags: [Notificaciones]
      security: []
      parameters:
        - {$ref: '#/components/parameters/XCashEventId'}
        - {$ref: '#/components/parameters/XCashEventType'}
        - {$ref: '#/components/parameters/XCashDeliveryId'}
        - {$ref: '#/components/parameters/XCashTimestamp'}
        - {$ref: '#/components/parameters/XCashSignature'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/ImmediateDebitExpiredEvent'}}
      responses:
        '2XX': {description: El evento se recibió; cualquier otra respuesta se reintenta}
  c2p_charge.accredited:
    post:
      operationId: webhook_c2p_charge_accredited
      summary: Un cobro C2P fue acreditado
      description: >-
        Cada notificación llega como POST a la URL de la conexión con el cuerpo crudo firmado. El receptor recalcula HMAC-SHA256 del cuerpo crudo con el secreto de notificaciones antes de interpretarlo y lo compara en tiempo constante con el valor de X-Cash-Signature (prefijo sha256=). Comprueba que X-Cash-Timestamp, los segundos Unix del momento en que se firmó ese mensaje, está a lo sumo 21600 segundos (6 horas) en el pasado y 300 segundos en el futuro. created_at del cuerpo es el momento del evento y puede ser anterior a X-Cash-Timestamp: un reenvío lleva el mismo cuerpo y el mismo X-Cash-Event-Id que el original, con la marca de tiempo de su propia firma. Deduplica por X-Cash-Event-Id. Un secreto rotado o revocado deja de valer en el acto. Una respuesta distinta de 2xx se reintenta hasta cinco intentos, con aproximadamente una hora entre uno y otro.
      tags: [Notificaciones]
      security: []
      parameters:
        - {$ref: '#/components/parameters/XCashEventId'}
        - {$ref: '#/components/parameters/XCashEventType'}
        - {$ref: '#/components/parameters/XCashDeliveryId'}
        - {$ref: '#/components/parameters/XCashTimestamp'}
        - {$ref: '#/components/parameters/XCashSignature'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/C2PChargeAccreditedEvent'}}
      responses:
        '2XX': {description: El evento se recibió; cualquier otra respuesta se reintenta}
  c2p_charge.rejected:
    post:
      operationId: webhook_c2p_charge_rejected
      summary: Un cobro C2P fue rechazado
      description: >-
        Cada notificación llega como POST a la URL de la conexión con el cuerpo crudo firmado. El receptor recalcula HMAC-SHA256 del cuerpo crudo con el secreto de notificaciones antes de interpretarlo y lo compara en tiempo constante con el valor de X-Cash-Signature (prefijo sha256=). Comprueba que X-Cash-Timestamp, los segundos Unix del momento en que se firmó ese mensaje, está a lo sumo 21600 segundos (6 horas) en el pasado y 300 segundos en el futuro. created_at del cuerpo es el momento del evento y puede ser anterior a X-Cash-Timestamp: un reenvío lleva el mismo cuerpo y el mismo X-Cash-Event-Id que el original, con la marca de tiempo de su propia firma. Deduplica por X-Cash-Event-Id. Un secreto rotado o revocado deja de valer en el acto. Una respuesta distinta de 2xx se reintenta hasta cinco intentos, con aproximadamente una hora entre uno y otro.
      tags: [Notificaciones]
      security: []
      parameters:
        - {$ref: '#/components/parameters/XCashEventId'}
        - {$ref: '#/components/parameters/XCashEventType'}
        - {$ref: '#/components/parameters/XCashDeliveryId'}
        - {$ref: '#/components/parameters/XCashTimestamp'}
        - {$ref: '#/components/parameters/XCashSignature'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/C2PChargeRejectedEvent'}}
      responses:
        '2XX': {description: El evento se recibió; cualquier otra respuesta se reintenta}
  checkout_cart.paid:
    post:
      operationId: webhook_checkout_cart_paid
      summary: Un cart de checkout fue pagado
      description: >-
        Cada notificación llega como POST a la URL de la conexión con el cuerpo crudo firmado. El receptor recalcula HMAC-SHA256 del cuerpo crudo con el secreto de notificaciones antes de interpretarlo y lo compara en tiempo constante con el valor de X-Cash-Signature (prefijo sha256=). Comprueba que X-Cash-Timestamp, los segundos Unix del momento en que se firmó ese mensaje, está a lo sumo 21600 segundos (6 horas) en el pasado y 300 segundos en el futuro. created_at del cuerpo es el momento del evento y puede ser anterior a X-Cash-Timestamp: un reenvío lleva el mismo cuerpo y el mismo X-Cash-Event-Id que el original, con la marca de tiempo de su propia firma. Deduplica por X-Cash-Event-Id. Un secreto rotado o revocado deja de valer en el acto. Una respuesta distinta de 2xx se reintenta hasta cinco intentos, con aproximadamente una hora entre uno y otro.
      tags: [Notificaciones]
      security: []
      parameters:
        - {$ref: '#/components/parameters/XCashEventId'}
        - {$ref: '#/components/parameters/XCashEventType'}
        - {$ref: '#/components/parameters/XCashDeliveryId'}
        - {$ref: '#/components/parameters/XCashTimestamp'}
        - {$ref: '#/components/parameters/XCashSignature'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/CheckoutCartPaidEvent'}}
      responses:
        '2XX': {description: El evento se recibió; cualquier otra respuesta se reintenta}
  checkout_cart.expired:
    post:
      operationId: webhook_checkout_cart_expired
      summary: Un cart de checkout venció
      description: >-
        Cada notificación llega como POST a la URL de la conexión con el cuerpo crudo firmado. El receptor recalcula HMAC-SHA256 del cuerpo crudo con el secreto de notificaciones antes de interpretarlo y lo compara en tiempo constante con el valor de X-Cash-Signature (prefijo sha256=). Comprueba que X-Cash-Timestamp, los segundos Unix del momento en que se firmó ese mensaje, está a lo sumo 21600 segundos (6 horas) en el pasado y 300 segundos en el futuro. created_at del cuerpo es el momento del evento y puede ser anterior a X-Cash-Timestamp: un reenvío lleva el mismo cuerpo y el mismo X-Cash-Event-Id que el original, con la marca de tiempo de su propia firma. Deduplica por X-Cash-Event-Id. Un secreto rotado o revocado deja de valer en el acto. Una respuesta distinta de 2xx se reintenta hasta cinco intentos, con aproximadamente una hora entre uno y otro.
      tags: [Notificaciones]
      security: []
      parameters:
        - {$ref: '#/components/parameters/XCashEventId'}
        - {$ref: '#/components/parameters/XCashEventType'}
        - {$ref: '#/components/parameters/XCashDeliveryId'}
        - {$ref: '#/components/parameters/XCashTimestamp'}
        - {$ref: '#/components/parameters/XCashSignature'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/CheckoutCartExpiredEvent'}}
      responses:
        '2XX': {description: El evento se recibió; cualquier otra respuesta se reintenta}
  payment.partner_accredited:
    post:
      operationId: webhook_payment_partner_accredited
      summary: A un beneficiario del reparto de un pago se le acreditó su parte
      description: >-
        Cada notificación llega como POST a la URL de la conexión con el cuerpo crudo firmado. El receptor recalcula HMAC-SHA256 del cuerpo crudo con el secreto de notificaciones antes de interpretarlo y lo compara en tiempo constante con el valor de X-Cash-Signature (prefijo sha256=). Comprueba que X-Cash-Timestamp, los segundos Unix del momento en que se firmó ese mensaje, está a lo sumo 21600 segundos (6 horas) en el pasado y 300 segundos en el futuro. created_at del cuerpo es el momento del evento y puede ser anterior a X-Cash-Timestamp: un reenvío lleva el mismo cuerpo y el mismo X-Cash-Event-Id que el original, con la marca de tiempo de su propia firma. Deduplica por X-Cash-Event-Id. Un secreto rotado o revocado deja de valer en el acto. Una respuesta distinta de 2xx se reintenta hasta cinco intentos, con aproximadamente una hora entre uno y otro.
      tags: [Notificaciones]
      security: []
      parameters:
        - {$ref: '#/components/parameters/XCashEventId'}
        - {$ref: '#/components/parameters/XCashEventType'}
        - {$ref: '#/components/parameters/XCashDeliveryId'}
        - {$ref: '#/components/parameters/XCashTimestamp'}
        - {$ref: '#/components/parameters/XCashSignature'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/PaymentPartnerAccreditedEvent'}}
      responses:
        '2XX': {description: El evento se recibió; cualquier otra respuesta se reintenta}
  checkout_cart.partner_accredited:
    post:
      operationId: webhook_checkout_cart_partner_accredited
      summary: A un beneficiario del reparto de un pago de checkout se le acreditó su parte
      description: >-
        Cada notificación llega como POST a la URL de la conexión con el cuerpo crudo firmado. El receptor recalcula HMAC-SHA256 del cuerpo crudo con el secreto de notificaciones antes de interpretarlo y lo compara en tiempo constante con el valor de X-Cash-Signature (prefijo sha256=). Comprueba que X-Cash-Timestamp, los segundos Unix del momento en que se firmó ese mensaje, está a lo sumo 21600 segundos (6 horas) en el pasado y 300 segundos en el futuro. created_at del cuerpo es el momento del evento y puede ser anterior a X-Cash-Timestamp: un reenvío lleva el mismo cuerpo y el mismo X-Cash-Event-Id que el original, con la marca de tiempo de su propia firma. Deduplica por X-Cash-Event-Id. Un secreto rotado o revocado deja de valer en el acto. Una respuesta distinta de 2xx se reintenta hasta cinco intentos, con aproximadamente una hora entre uno y otro.
      tags: [Notificaciones]
      security: []
      parameters:
        - {$ref: '#/components/parameters/XCashEventId'}
        - {$ref: '#/components/parameters/XCashEventType'}
        - {$ref: '#/components/parameters/XCashDeliveryId'}
        - {$ref: '#/components/parameters/XCashTimestamp'}
        - {$ref: '#/components/parameters/XCashSignature'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/CheckoutCartPartnerAccreditedEvent'}}
      responses:
        '2XX': {description: El evento se recibió; cualquier otra respuesta se reintenta}
  checkout_cart.exhausted:
    post:
      operationId: webhook_checkout_cart_exhausted
      summary: Un cart de checkout agotó sus usos
      description: >-
        Cada notificación llega como POST a la URL de la conexión con el cuerpo crudo firmado. El receptor recalcula HMAC-SHA256 del cuerpo crudo con el secreto de notificaciones antes de interpretarlo y lo compara en tiempo constante con el valor de X-Cash-Signature (prefijo sha256=). Comprueba que X-Cash-Timestamp, los segundos Unix del momento en que se firmó ese mensaje, está a lo sumo 21600 segundos (6 horas) en el pasado y 300 segundos en el futuro. created_at del cuerpo es el momento del evento y puede ser anterior a X-Cash-Timestamp: un reenvío lleva el mismo cuerpo y el mismo X-Cash-Event-Id que el original, con la marca de tiempo de su propia firma. Deduplica por X-Cash-Event-Id. Un secreto rotado o revocado deja de valer en el acto. Una respuesta distinta de 2xx se reintenta hasta cinco intentos, con aproximadamente una hora entre uno y otro.
      tags: [Notificaciones]
      security: []
      parameters:
        - {$ref: '#/components/parameters/XCashEventId'}
        - {$ref: '#/components/parameters/XCashEventType'}
        - {$ref: '#/components/parameters/XCashDeliveryId'}
        - {$ref: '#/components/parameters/XCashTimestamp'}
        - {$ref: '#/components/parameters/XCashSignature'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/CheckoutCartExhaustedEvent'}}
      responses:
        '2XX': {description: El evento se recibió; cualquier otra respuesta se reintenta}
  checkout_cart.payment_pending_review:
    post:
      operationId: webhook_checkout_cart_payment_pending_review
      summary: Un pago de checkout quedó pendiente de decisión
      description: >-
        Cada notificación llega como POST a la URL de la conexión con el cuerpo crudo firmado. El receptor recalcula HMAC-SHA256 del cuerpo crudo con el secreto de notificaciones antes de interpretarlo y lo compara en tiempo constante con el valor de X-Cash-Signature (prefijo sha256=). Comprueba que X-Cash-Timestamp, los segundos Unix del momento en que se firmó ese mensaje, está a lo sumo 21600 segundos (6 horas) en el pasado y 300 segundos en el futuro. created_at del cuerpo es el momento del evento y puede ser anterior a X-Cash-Timestamp: un reenvío lleva el mismo cuerpo y el mismo X-Cash-Event-Id que el original, con la marca de tiempo de su propia firma. Deduplica por X-Cash-Event-Id. Un secreto rotado o revocado deja de valer en el acto. Una respuesta distinta de 2xx se reintenta hasta cinco intentos, con aproximadamente una hora entre uno y otro.
      tags: [Notificaciones]
      security: []
      parameters:
        - {$ref: '#/components/parameters/XCashEventId'}
        - {$ref: '#/components/parameters/XCashEventType'}
        - {$ref: '#/components/parameters/XCashDeliveryId'}
        - {$ref: '#/components/parameters/XCashTimestamp'}
        - {$ref: '#/components/parameters/XCashSignature'}
      requestBody:
        required: true
        content:
          application/json: {schema: {$ref: '#/components/schemas/CheckoutCartPaymentPendingReviewEvent'}}
      responses:
        '2XX': {description: El evento se recibió; cualquier otra respuesta se reintenta}
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: ccash_live
  parameters:
    UUID: {name: uuid, in: path, required: true, schema: {type: string, format: uuid}}
    TraceUUID: {name: trace_uuid, in: path, required: true, schema: {type: string, format: uuid}}
    MessageID: {name: message_id, in: path, required: true, schema: {type: string, format: uuid}}
    Cursor: {name: cursor, in: query, required: false, schema: {type: string}}
    Limit: {name: limit, in: query, required: false, schema: {type: integer, minimum: 1, maximum: 100, default: 50}}
    FromOptional: {name: from, in: query, required: false, schema: {type: string, format: date}}
    ToOptional: {name: to, in: query, required: false, schema: {type: string, format: date}}
    IdempotencyKey: {name: Idempotency-Key, in: header, required: false, description: 'Hasta 64 caracteres: letras, números, guion y guion bajo. Repetir la llamada con la misma clave y el mismo cuerpo devuelve el mismo recurso con la cabecera Idempotent-Replayed; con otro cuerpo responde 409 idempotency_key_reused.', schema: {type: string, pattern: '^[A-Za-z0-9_-]{1,64}$'}}
    XAccountUUID: {name: X-Account-UUID, in: header, required: false, description: 'Cuenta en la que opera la petición, sea de una sesión del panel o de una API key; sin ella opera en la propia de la persona. Una cuenta a la que la persona no pertenece responde 404.', schema: {type: string, format: uuid}}
    From: {name: from, in: query, required: true, schema: {type: string, format: date}}
    To: {name: to, in: query, required: true, schema: {type: string, format: date}}
    XCashEventId: {name: X-Cash-Event-Id, in: header, required: true, description: Identificador del evento; sirve para deduplicar., schema: {type: string, format: uuid}}
    XCashEventType: {name: X-Cash-Event-Type, in: header, required: true, schema: {type: string}}
    XCashDeliveryId: {name: X-Cash-Delivery-Id, in: header, required: true, description: Identificador del mensaje; un reenvío lleva otro., schema: {type: string, format: uuid}}
    XCashTimestamp: {name: X-Cash-Timestamp, in: header, required: true, description: Segundos Unix del momento en que se firmó el mensaje; no es created_at del evento., schema: {type: string}}
    XCashSignature: {name: X-Cash-Signature, in: header, required: true, description: 'sha256= más el HMAC-SHA256 hexadecimal del cuerpo crudo.', schema: {type: string, pattern: '^sha256=[0-9a-f]{64}$'}}
  headers:
    RetryAfter: {description: Segundos que hay que esperar antes de reintentar., schema: {type: integer}}
    RateLimitLimit: {schema: {type: integer}}
    RateLimitRemaining: {schema: {type: integer}}
    RateLimitReset: {schema: {type: integer}}
  responses:
    BadRequest: {description: Dato inválido, content: {application/json: {schema: {$ref: '#/components/schemas/Error'}}}}
    Unauthorized: {description: Credencial ausente o inválida, content: {application/json: {schema: {$ref: '#/components/schemas/Error'}}}}
    PaymentRequired: {description: La suscripción no permite la operación, content: {application/json: {schema: {$ref: '#/components/schemas/Error'}}}}
    Forbidden: {description: 'La credencial no alcanza la ruta o el permiso. En las rutas de pagos, error_key payments_forbidden cuando quien actúa es un miembro cuyo rol no puede leer pagos.', content: {application/json: {schema: {$ref: '#/components/schemas/Error'}}}}
    NotFound: {description: El recurso de la ruta no existe, content: {application/json: {schema: {$ref: '#/components/schemas/Error'}}}}
    Conflict: {description: Duplicado o conflicto de estado, content: {application/json: {schema: {$ref: '#/components/schemas/Error'}}}}
    TooManyRequests:
      description: Límite de peticiones o cupo agotado
      headers:
        Retry-After: {$ref: '#/components/headers/RetryAfter'}
        X-RateLimit-Limit: {$ref: '#/components/headers/RateLimitLimit'}
        X-RateLimit-Remaining: {$ref: '#/components/headers/RateLimitRemaining'}
        X-RateLimit-Reset: {$ref: '#/components/headers/RateLimitReset'}
      content: {application/json: {schema: {$ref: '#/components/schemas/Error'}}}
    ServiceUnavailable: {description: Servicio no disponible, content: {application/json: {schema: {$ref: '#/components/schemas/Error'}}}}
  schemas:
    Error:
      type: object
      required: [message, error_key]
      properties:
        message: {type: string}
        error_key: {type: string}
        details_error: {type: object, additionalProperties: true}
    ValidationFieldError:
      type: object
      description: Un campo que no pasó la validación; message viene en el idioma de la petición.
      x-description-en: A field that failed validation; message comes in the request language.
      required: [field, message, rule]
      properties:
        field: {type: string}
        field_lang: {type: string}
        message: {type: string}
        rule: {type: string}
        content: {type: string}
    ValidationErrors:
      type: array
      description: Lista de campos inválidos; se responde con 400 cuando el cuerpo o la consulta no pasan la validación de forma.
      x-description-en: List of invalid fields; returned with 400 when the body or query fails shape validation.
      items: {$ref: '#/components/schemas/ValidationFieldError'}
    Money: {type: string, pattern: '^-?\d+\.\d{2,4}$', description: Monto decimal en cadena; nunca number., example: '1250.0000'}
    Rate: {type: string, pattern: '^[0-9]+\.[0-9]{8}$', description: 'Tasa en bolívares por unidad, cadena de 8 decimales.', example: '36.58290000'}
    CursorPage:
      type: object
      required: [items, next_cursor]
      properties:
        items: {type: array, items: {}}
        next_cursor: {type: [string, 'null']}
    EventEnvelope:
      type: object
      required: [id, type, created_at, data]
      properties:
        id: {type: string, format: uuid}
        type: {type: string}
        created_at: {type: string, format: date-time}
        data: {type: object}
    PaymentAcceptedEvent:
      allOf:
        - $ref: '#/components/schemas/EventEnvelope'
        - type: object
          properties:
            data: {$ref: '#/components/schemas/PaymentEventData'}
    PaymentReconciledEvent:
      allOf:
        - $ref: '#/components/schemas/EventEnvelope'
        - type: object
          properties:
            data: {$ref: '#/components/schemas/PaymentEventData'}
    ReconciliationRevertedEvent:
      allOf:
        - $ref: '#/components/schemas/EventEnvelope'
        - type: object
          properties:
            data: {$ref: '#/components/schemas/PaymentEventData'}
    PaymentLinkPaidEvent:
      allOf:
        - $ref: '#/components/schemas/EventEnvelope'
        - type: object
          properties:
            data: {$ref: '#/components/schemas/PaymentLinkPaidEventData'}
    PaymentLinkExpiredEvent:
      allOf:
        - $ref: '#/components/schemas/EventEnvelope'
        - type: object
          properties:
            data: {$ref: '#/components/schemas/PaymentLinkEventData'}
    PaymentLinkRejectedEvent:
      allOf:
        - $ref: '#/components/schemas/EventEnvelope'
        - type: object
          properties:
            data: {$ref: '#/components/schemas/PaymentLinkEventData'}
    PaymentProviderRefundedEvent:
      allOf:
        - $ref: '#/components/schemas/EventEnvelope'
        - type: object
          properties:
            data: {$ref: '#/components/schemas/PaymentEventData'}
    PaymentDisputeOpenedEvent:
      allOf:
        - $ref: '#/components/schemas/EventEnvelope'
        - type: object
          properties:
            data: {$ref: '#/components/schemas/PaymentEventData'}
    PaymentDisputeClosedEvent:
      allOf:
        - $ref: '#/components/schemas/EventEnvelope'
        - type: object
          properties:
            data: {$ref: '#/components/schemas/PaymentEventData'}
    PaymentLinkAssetRejectedEvent:
      allOf:
        - $ref: '#/components/schemas/EventEnvelope'
        - type: object
          properties:
            data: {$ref: '#/components/schemas/PaymentLinkAssetRejectedEventData'}
    ProviderChargeSucceededEvent:
      allOf:
        - $ref: '#/components/schemas/EventEnvelope'
        - type: object
          properties:
            data: {$ref: '#/components/schemas/ProviderChargeEventData'}
    ProviderChargeFailedEvent:
      allOf:
        - $ref: '#/components/schemas/EventEnvelope'
        - type: object
          properties:
            data: {$ref: '#/components/schemas/ProviderChargeEventData'}
    ProviderChargeRequiresActionEvent:
      allOf:
        - $ref: '#/components/schemas/EventEnvelope'
        - type: object
          properties:
            data: {$ref: '#/components/schemas/ProviderChargeEventData'}
    SavedMethodCreatedEvent:
      allOf:
        - $ref: '#/components/schemas/EventEnvelope'
        - type: object
          properties:
            data: {$ref: '#/components/schemas/SavedMethodEventData'}
    SavedMethodDetachedEvent:
      allOf:
        - $ref: '#/components/schemas/EventEnvelope'
        - type: object
          properties:
            data: {$ref: '#/components/schemas/SavedMethodEventData'}
    SavedMethodExpiredEvent:
      allOf:
        - $ref: '#/components/schemas/EventEnvelope'
        - type: object
          properties:
            data: {$ref: '#/components/schemas/SavedMethodEventData'}
    MerchantSubscriptionActivatedEvent:
      allOf:
        - $ref: '#/components/schemas/EventEnvelope'
        - type: object
          properties:
            data: {$ref: '#/components/schemas/SubscriptionEventData'}
    MerchantSubscriptionPastDueEvent:
      allOf:
        - $ref: '#/components/schemas/EventEnvelope'
        - type: object
          properties:
            data: {$ref: '#/components/schemas/SubscriptionEventData'}
    MerchantSubscriptionPausedEvent:
      allOf:
        - $ref: '#/components/schemas/EventEnvelope'
        - type: object
          properties:
            data: {$ref: '#/components/schemas/SubscriptionEventData'}
    MerchantSubscriptionResumedEvent:
      allOf:
        - $ref: '#/components/schemas/EventEnvelope'
        - type: object
          properties:
            data: {$ref: '#/components/schemas/SubscriptionEventData'}
    MerchantSubscriptionUnpaidEvent:
      allOf:
        - $ref: '#/components/schemas/EventEnvelope'
        - type: object
          properties:
            data: {$ref: '#/components/schemas/SubscriptionEventData'}
    MerchantSubscriptionCanceledEvent:
      allOf:
        - $ref: '#/components/schemas/EventEnvelope'
        - type: object
          properties:
            data: {$ref: '#/components/schemas/SubscriptionEventData'}
    PaymentLinkCanceledEvent:
      allOf:
        - $ref: '#/components/schemas/EventEnvelope'
        - type: object
          properties:
            data: {$ref: '#/components/schemas/PaymentLinkEventData'}
    ConnectionDeactivatedEvent:
      allOf:
        - $ref: '#/components/schemas/EventEnvelope'
        - type: object
          properties:
            data: {$ref: '#/components/schemas/ConnectionEventView'}
    ImmediateDebitAccreditedEvent:
      allOf:
        - $ref: '#/components/schemas/EventEnvelope'
        - type: object
          properties:
            data: {$ref: '#/components/schemas/ImmediateDebitAccreditedEventData'}
    ImmediateDebitRejectedEvent:
      allOf:
        - $ref: '#/components/schemas/EventEnvelope'
        - type: object
          properties:
            data: {$ref: '#/components/schemas/ImmediateDebitEventData'}
    ImmediateDebitExpiredEvent:
      allOf:
        - $ref: '#/components/schemas/EventEnvelope'
        - type: object
          properties:
            data: {$ref: '#/components/schemas/ImmediateDebitEventData'}
    C2PChargeAccreditedEvent:
      allOf:
        - $ref: '#/components/schemas/EventEnvelope'
        - type: object
          properties:
            data: {$ref: '#/components/schemas/C2PChargeAccreditedEventData'}
    C2PChargeRejectedEvent:
      allOf:
        - $ref: '#/components/schemas/EventEnvelope'
        - type: object
          properties:
            data: {$ref: '#/components/schemas/C2PChargeEventData'}
    NotificationTestEvent:
      allOf:
        - $ref: '#/components/schemas/EventEnvelope'
        - type: object
          properties:
            data: {$ref: '#/components/schemas/NotificationTestEventData'}
    CheckoutCartPaidEvent:
      allOf:
        - $ref: '#/components/schemas/EventEnvelope'
        - type: object
          properties:
            data: {$ref: '#/components/schemas/CartEventData'}
    CheckoutCartExpiredEvent:
      allOf:
        - $ref: '#/components/schemas/EventEnvelope'
        - type: object
          properties:
            data: {$ref: '#/components/schemas/CartEventData'}
    CheckoutCartExhaustedEvent:
      allOf:
        - $ref: '#/components/schemas/EventEnvelope'
        - type: object
          properties:
            data: {$ref: '#/components/schemas/CartEventData'}
    CheckoutCartPaymentPendingReviewEvent:
      allOf:
        - $ref: '#/components/schemas/EventEnvelope'
        - type: object
          properties:
            data: {$ref: '#/components/schemas/CartEventData'}
    PaymentPartnerAccreditedEvent:
      allOf:
        - $ref: '#/components/schemas/EventEnvelope'
        - type: object
          properties:
            data: {$ref: '#/components/schemas/PartnerAccreditedEventData'}
    CheckoutCartPartnerAccreditedEvent:
      allOf:
        - $ref: '#/components/schemas/EventEnvelope'
        - type: object
          properties:
            data: {$ref: '#/components/schemas/PartnerAccreditedEventData'}
    # BEGIN GENERATED SCHEMAS
    C2PChargeAccreditedEventData:
      type: object
      required: ["c2p_charge","payment"]
      properties:
        c2p_charge: {"allOf":[{"$ref":"#/components/schemas/C2PChargeView"}],"description":"Cobro C2P","x-description-en":"C2P charge"}
        payment: {"allOf":[{"$ref":"#/components/schemas/PaymentView"}],"description":"Pago","x-description-en":"Payment"}
    C2PChargeCreateBody:
      type: object
      required: ["connection_uuid","amount","concept","payer","payment_key"]
      properties:
        connection_uuid: {"type":"string","format":"uuid","description":"Conexión","x-description-en":"Connection","example":"6f1c2a9e-3b7d-4e8a-9c21-5d4e3f2a1b0c"}
        amount: {"type":"string","maxLength":20,"description":"Monto","x-description-en":"Amount","example":"1250.00"}
        concept: {"type":"string","minLength":1,"maxLength":100,"description":"Concepto","x-description-en":"Concept","example":"Factura 000123"}
        payer: {"allOf":[{"$ref":"#/components/schemas/C2PChargePayerBody"}],"description":"Pagador","x-description-en":"Payer"}
        payment_key: {"type":"string","pattern":"^[0-9]+$","minLength":4,"maxLength":12,"description":"Clave de pago","x-description-en":"Payment key","example":"12345678"}
        payer_ip: {"type":"string","maxLength":45,"description":"IP del pagador","x-description-en":"Payer IP","example":"190.202.10.15"}
    C2PChargeEventData:
      type: object
      required: ["c2p_charge"]
      properties:
        c2p_charge: {"allOf":[{"$ref":"#/components/schemas/C2PChargeView"}],"description":"Cobro C2P","x-description-en":"C2P charge"}
    C2PChargePayerBody:
      type: object
      required: ["document_type","document_number","phone","bank_code"]
      properties:
        document_type: {"type":"string","enum":["V","E","J","G","P"],"description":"Tipo de documento","x-description-en":"Document type","example":"V"}
        document_number: {"type":"string","pattern":"^[A-Za-z0-9]+$","minLength":1,"maxLength":20,"description":"Número de documento","x-description-en":"Document number","example":"12345678"}
        phone: {"type":"string","maxLength":16,"description":"Teléfono del pagador","x-description-en":"Payer phone","example":"04141234567"}
        bank_code: {"type":"string","pattern":"^[0-9]+$","minLength":4,"maxLength":4,"description":"Banco del pagador","x-description-en":"Payer bank","example":"0102"}
        first_name: {"type":"string","minLength":1,"maxLength":30,"description":"Primer nombre del pagador","x-description-en":"Payer first name","example":"Juan"}
        last_name: {"type":"string","minLength":1,"maxLength":30,"description":"Primer apellido del pagador","x-description-en":"Payer last name","example":"Pérez"}
    C2PChargePayerView:
      type: object
      required: ["document_type","document_number","phone","bank_code"]
      properties:
        document_type: {"type":"string","enum":["V","E","J","G","P"],"description":"Tipo de documento","x-description-en":"Document type","example":"V"}
        document_number: {"type":"string","maxLength":20,"description":"Número de documento","x-description-en":"Document number","example":"12345678"}
        phone: {"type":"string","pattern":"^[0-9]+$","minLength":11,"maxLength":11,"description":"Teléfono del pagador","x-description-en":"Payer phone","example":"04141234567"}
        bank_code: {"type":"string","pattern":"^[0-9]+$","minLength":4,"maxLength":4,"description":"Banco del pagador","x-description-en":"Payer bank","example":"0102"}
    C2PChargeView:
      type: object
      required: ["uuid","connection_uuid","provider","environment","status","rejection_reason","amount","concept","payer","bank_reference","accredited_at","payment_uuid","created_at","updated_at"]
      properties:
        uuid: {"type":"string","format":"uuid","description":"Cobro C2P","x-description-en":"C2P charge","example":"4d2e1f0a-9b8c-4a7d-8e6f-5c4b3a2d1e0f"}
        connection_uuid: {"type":"string","format":"uuid","description":"Conexión","x-description-en":"Connection","example":"6f1c2a9e-3b7d-4e8a-9c21-5d4e3f2a1b0c"}
        provider: {"type":"string","maxLength":24,"description":"Proveedor","x-description-en":"Provider","example":"R4_P2P"}
        environment: {"type":"string","enum":["SANDBOX","PRODUCTION"],"description":"Ambiente","x-description-en":"Environment","example":"PRODUCTION"}
        status: {"type":"string","enum":["ACCREDITED","REJECTED"],"description":"Estado","x-description-en":"Status","example":"ACCREDITED"}
        rejection_reason: {"type":["string","null"],"maxLength":40,"description":"Motivo del rechazo","x-description-en":"Rejection reason"}
        amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Monto en bolívares","x-description-en":"Amount in bolivars","example":"1250.0000"}
        concept: {"type":"string","maxLength":100,"description":"Concepto","x-description-en":"Concept","example":"Factura 000123"}
        payer: {"allOf":[{"$ref":"#/components/schemas/C2PChargePayerView"}],"description":"Pagador","x-description-en":"Payer"}
        bank_reference: {"type":["string","null"],"maxLength":64,"description":"Referencia del banco","x-description-en":"Bank reference","example":"001234567890"}
        accredited_at: {"type":["string","null"],"format":"date-time","description":"Acreditado el","x-description-en":"Accredited at","example":"2026-10-21T03:30:02.000Z"}
        payment_uuid: {"type":["string","null"],"format":"uuid","description":"Pago","x-description-en":"Payment","example":"9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d"}
        checkout_cart_uuid: {"type":"string","format":"uuid","description":"Checkout cart","x-description-en":"Checkout cart","example":"6b2f6c1e-3a7d-4e8a-9c21-5d4e3f2a1b0c"}
        created_at: {"type":"string","format":"date-time","description":"Creado el","x-description-en":"Created at","example":"2026-10-21T03:30:00.000Z"}
        updated_at: {"type":"string","format":"date-time","description":"Modificado el","x-description-en":"Updated at","example":"2026-10-21T03:30:02.000Z"}
    C2PSpecView:
      type: object
      required: ["min_amount","max_amount","code_min_length","code_max_length","concept_max_length","payer_ip_required","required_fields"]
      properties:
        min_amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Monto mínimo","x-description-en":"Minimum amount","example":"0.0100"}
        max_amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Monto máximo","x-description-en":"Maximum amount","example":"1000000.0000"}
        code_min_length: {"type":"integer","minimum":0,"maximum":64,"description":"Largo mínimo de la clave","x-description-en":"Minimum key length","example":8}
        code_max_length: {"type":"integer","minimum":0,"maximum":64,"description":"Largo máximo de la clave","x-description-en":"Maximum key length","example":8}
        concept_max_length: {"type":"integer","minimum":0,"maximum":255,"description":"Largo máximo del concepto","x-description-en":"Maximum concept length","example":30}
        payer_ip_required: {"type":"boolean","description":"Pide la IP del pagador","x-description-en":"Payer IP required","example":false}
        required_fields: {"type":"array","maxItems":24,"items":{"type":"string","maxLength":64},"description":"Campos requeridos de la conexión","x-description-en":"Required connection fields","example":["client_id"]}
    CartBody:
      type: object
      required: ["items"]
      properties:
        title: {"type":"string","maxLength":120,"description":"Título del cart: es el nombre del cobro que ve el comprador y el título que se envía a la pasarela. Opcional con una sola línea: omitido o vacío se toma el nombre de esa línea. Obligatorio con más de una línea (checkout_cart_title_required).","x-description-en":"Cart title: the payment name the buyer sees and the title sent to the gateway. Optional with a single line: when omitted or empty the name of that line is used. Required with more than one line (checkout_cart_title_required).","example":"Pedido 1043"}
        items: {"type":"array","minItems":1,"maxItems":20,"items":{"$ref":"#/components/schemas/ItemBody"},"description":"Líneas del cart, al menos una. Cada línea es de catálogo (product_uuid) o propia (custom), nunca las dos ni ninguna: de lo contrario checkout_line_invalid. El orden enviado es el orden en que se muestran. Un producto no se repite en el cart ni el SKU de las líneas propias. El total del cart debe ser mayor que 0: hace falta al menos una línea de precio fijo o abierta con mínimo mayor que 0; si todas son voluntarias responde checkout_amount_invalid. En una edición la lista reemplaza por completo a la anterior.","x-description-en":"Cart lines, at least one. Each line is either a catalog line (product_uuid) or a custom line (custom), never both and never neither: otherwise checkout_line_invalid. The order sent is the display order. A product cannot repeat in the cart and neither can the SKU of custom lines. The cart total must be greater than 0: at least one fixed-price line, or an open line with a minimum greater than 0, is needed; if every line is voluntary the response is checkout_amount_invalid. On an edit the list fully replaces the previous one."}
        connections: {"type":"array","maxItems":50,"items":{"$ref":"#/components/schemas/CartConnectionBody"},"description":"Conexiones con las que el comprador puede pagar, en el orden en que se le muestran, cada una con los métodos que se le ofrecen. Acepta sólo conexiones activas de la cuenta, sin repetir y con los ajustes obligatorios de su conector cargados; cualquier otra responde checkout_cart_connection_invalid. methods omitido: se ofrecen todos los métodos de la conexión, también los que se activen después. methods con valores (REDIRECT, REPORTED_PAYMENT, IMMEDIATE_DEBIT, C2P): sólo esos; una lista vacía, un método repetido, desconocido o que la conexión no ofrece responde checkout_cart_methods_invalid. Omitido o vacío connections: el cart ofrece todas las conexiones activas de la cuenta que no sean de pruebas, tomadas en cada lectura, con todos sus métodos. Si la selección se queda sin ninguna conexión utilizable el cart no se amplía a las demás: queda UNAVAILABLE con NO_USABLE_CONNECTION. Una conexión deja de ser utilizable si no ofrece ningún método de cobro entre los elegidos o si alguna línea debe convertirse a su moneda de cobro y no hay cotización vigente.","x-description-en":"Connections the buyer can pay with, in the order they are shown, each with the methods offered on it. Only active connections of the account are accepted, without repeats and with the required settings of their connector loaded; anything else answers checkout_cart_connection_invalid. methods omitted: every method of the connection is offered, including those activated later. methods with values (REDIRECT, REPORTED_PAYMENT, IMMEDIATE_DEBIT, C2P): only those; an empty list, a repeated, unknown or unsupported method answers checkout_cart_methods_invalid. connections omitted or empty: the cart offers every active non-sandbox connection of the account, taken on each read, with all their methods. If the selection ends up with no usable connection the cart does not widen to the others: it is UNAVAILABLE with NO_USABLE_CONNECTION. A connection stops being usable when none of the chosen methods is offered or when a line must be converted to its charge currency and there is no current rate."}
        expires_at: {"type":["string","null"],"format":"date-time","description":"Instante RFC 3339 en que el cart deja de vender. Omitido o null: no vence. Al crear, o al cambiarlo en una edición, debe ser futuro (checkout_cart_expiry_invalid); reenviar el mismo valor ya vencido es válido. Vencido, el cart pasa a state EXPIRED en la lectura y limita el plazo de pago (pay_by) de toda sesión. Editar con una fecha futura u omitida reabre un cart vencido.","x-description-en":"RFC 3339 instant at which the cart stops selling. Omitted or null: it never expires. On creation, or when changed in an edit, it must be in the future (checkout_cart_expiry_invalid); resending the same already-past value is valid. Once past, the cart reads as state EXPIRED and caps the payment deadline (pay_by) of every session. Editing with a future or omitted date reopens an expired cart.","example":"2026-11-06T14:00:00Z"}
        session_minutes: {"type":["integer","null"],"minimum":1,"maximum":100000,"description":"Minutos que dura la sesión de pago del comprador, contados desde que la abre. Omitido: una hora. Fuera del rango del esquema responde checkout_cart_session_duration_invalid. El plazo real (pay_by) es el menor entre la apertura más estos minutos, el vencimiento propio de la pasarela y expires_at del cart; hasta pay_by el monto y las tasas quedan fijos.","x-description-en":"Minutes the buyer payment session lasts, counted from when it is opened. Omitted: one hour. Outside the schema range it answers checkout_cart_session_duration_invalid. The real deadline (pay_by) is the earliest of the opening plus these minutes, the own expiry of the gateway and the cart expires_at; until pay_by the amount and rates stay fixed.","example":60}
        max_uses: {"type":["integer","null"],"minimum":1,"maximum":100000,"description":"Cantidad de ventas que admite el cart. Omitido o null: sin límite. Cuentan los pagos confirmados más las sesiones abiertas, que reservan un uso mientras el comprador paga: al llegar al máximo el cart es EXHAUSTED, y mientras las reservas ocupan los usos que quedan es BUSY (se reintenta cuando alguna sesión venza o falle y libere su reserva). Al editar no puede quedar por debajo de usos confirmados más reservas (checkout_cart_max_uses_invalid).","x-description-en":"Number of sales the cart admits. Omitted or null: unlimited. Confirmed payments plus open sessions count, since an open session reserves a use while the buyer pays: at the maximum the cart is EXHAUSTED, and while reservations hold the remaining uses it is BUSY (retry when a session expires or fails and releases its reservation). On an edit it cannot fall below confirmed uses plus reservations (checkout_cart_max_uses_invalid).","example":1}
        max_installments: {"type":["integer","null"],"minimum":1,"maximum":1000,"description":"Máximo de cuotas que el comprador puede elegir. Omitido o null al crear: sin cuotas. Al editar, omitido conserva el valor guardado. El límite efectivo es el menor entre este y el de la pasarela, y sólo aplica a conexiones que soportan cuotas (installments_available lo indica); en las demás el comprador paga en una cuota y pedir otra cantidad es inválido. Fuera del rango del esquema responde checkout_cart_installments_invalid.","x-description-en":"Maximum installments the buyer can choose. Omitted or null on creation: no installments. On an edit, omitted keeps the stored value. The effective limit is the lower of this and the gateway one, and applies only to connections that support installments (installments_available reports it); on the others the buyer pays in one installment and asking for another count is invalid. Outside the schema range it answers checkout_cart_installments_invalid.","example":6}
        line_currencies: {"type":"string","maxLength":20,"description":"Moneda en que se pintan los precios de las líneas en la página de pago. product (valor por defecto, también si se omite o va vacío): cada línea en la moneda de su producto o precio. CURRENCY_ seguido de un código del catálogo (por ejemplo CURRENCY_USD): todas las líneas en esa moneda; la página pública publica la cotización vigente de esa moneda en rates y, sin tasa vigente, no la inventa. Es sólo de presentación: la moneda de cobro es la de la conexión que elige el comprador. Otro valor responde checkout_cart_field_invalid.","x-description-en":"Currency in which line prices are drawn on the payment page. product (default, also when omitted or empty): each line in the currency of its product or price. CURRENCY_ followed by a catalog code (for example CURRENCY_USD): every line in that currency; the public page publishes the current rate of that currency in rates and, with no current rate, does not invent one. Presentation only: the charge currency is that of the connection the buyer picks. Any other value answers checkout_cart_field_invalid.","example":"product"}
        total_currencies: {"type":"array","maxItems":19,"items":{"type":"string","minLength":3,"maxLength":3},"description":"Monedas en que se muestra el total, del catálogo y sin repetir; la primera es la moneda principal. Omitido o vacío: se llenan con las monedas de cobro de las conexiones del cart en su orden y, si no se marcó ninguna, con las de las conexiones activas por fecha de creación (también en cada edición). Es sólo de presentación: no cambia lo que se cobra. Un código fuera del catálogo o repetido responde checkout_cart_field_invalid. La página pública publica la cotización vigente de cada una en rates; sin tasa no se inventa.","x-description-en":"Currencies in which the total is shown, from the catalog and without repeats; the first is the main currency. Omitted or empty: filled with the charge currencies of the cart connections in their order and, if none was selected, with those of the active connections by creation date (also on every edit). Presentation only: it does not change what is charged. A code outside the catalog or repeated answers checkout_cart_field_invalid. The public page publishes the current rate of each in rates; with no rate none is invented."}
        button_color: {"type":"string","maxLength":7,"description":"Color de fondo del botón de pago en #RRGGBB (se guarda en mayúsculas). Opcional: omitido o vacío queda null y la página usa su color por defecto. Otro formato responde checkout_cart_field_invalid. Es de presentación.","x-description-en":"Background color of the pay button as #RRGGBB (stored in uppercase). Optional: omitted or empty is null and the page uses its default color. Any other format answers checkout_cart_field_invalid. Presentation only.","example":"#1A73E8"}
        button_text_color: {"type":"string","maxLength":7,"description":"Color del texto del botón de pago en #RRGGBB (se guarda en mayúsculas). Opcional: omitido o vacío queda null y la página usa su color por defecto. Otro formato responde checkout_cart_field_invalid. Es de presentación.","x-description-en":"Text color of the pay button as #RRGGBB (stored in uppercase). Optional: omitted or empty is null and the page uses its default color. Any other format answers checkout_cart_field_invalid. Presentation only.","example":"#FFFFFF"}
        external_reference: {"type":"string","maxLength":120,"description":"Referencia de tu sistema, por ejemplo el número de pedido. Opcional: vacío equivale a no enviarla. Se devuelve en el cart, viaja en los eventos del cart y se envía a la pasarela como referencia del cobro. No tiene que ser única.","x-description-en":"Reference from your own system, for example the order number. Optional: empty equals not sending it. It is returned on the cart, travels in the cart events and is sent to the gateway as the payment reference. It does not have to be unique.","example":"order-1043"}
        return_url: {"type":"string","maxLength":500,"description":"URL https adonde se devuelve al comprador al terminar el pago. Opcional: vacío equivale a omitirla. Si no empieza por https:// responde checkout_cart_field_invalid. Se envía a la pasarela y se entrega al comprador en el estado de su sesión.","x-description-en":"https URL to which the buyer is sent back when the payment ends. Optional: empty equals omitting it. If it does not start with https:// it answers checkout_cart_field_invalid. It is sent to the gateway and given to the buyer in the state of their session.","example":"https://example.com/gracias"}
        notification_url: {"type":"string","maxLength":500,"description":"URL https que recibe los eventos del cart (venta pagada, cart agotado), firmados con el secreto del cart. Omitida o vacía: no se notifica y la respuesta de la creación no trae secreto. Se valida al guardar (notification_url_invalid). Con URL, la creación devuelve el secreto de firma una sola vez en notification_secret; agregar la URL en una edición no lo devuelve, para conocerlo se rota. En una edición, omitirla o enviarla vacía la quita.","x-description-en":"https URL that receives the cart events (sale paid, cart exhausted), signed with the cart secret. Omitted or empty: nothing is notified and the creation response carries no secret. It is validated on save (notification_url_invalid). With a URL, creation returns the signing secret only once in notification_secret; adding the URL in an edit does not return it, rotate it to learn it. On an edit, omitting it or sending it empty removes it.","example":"https://example.com/cash/checkout"}
    CartConnectionBody:
      type: object
      required: ["uuid"]
      properties:
        uuid: {"type":"string","format":"uuid","description":"Conexión activa de la cuenta.","x-description-en":"Active connection of the account.","example":"0b6f3c1e-9a2d-4c5b-8e7f-1a2b3c4d5e6f"}
        split: {"type":["object","null"],"additionalProperties":true,"description":"Reparto del cobro en esta conexión, con el formato del split de un link de pago. Omitido: usa el reparto por defecto de la conexión. null: cobra sin reparto aunque la conexión tenga uno. Objeto: reemplaza por completo al de la conexión. Sólo en conexiones con supports_split; el reparto se resuelve al abrir cada sesión sobre su total.","x-description-en":"Split of the charge on this connection, in the format of the split of a payment link. Omitted: uses the default split of the connection. null: charges without split even if the connection has one. Object: fully replaces the one of the connection. Only on connections with supports_split; the split is resolved when each session is opened over its total."}
        methods: {"type":"array","maxItems":8,"items":{"type":"string","maxLength":24},"description":"Métodos que el cart ofrece en esta conexión: REDIRECT, REPORTED_PAYMENT, BINANCE_REPORTED, IMMEDIATE_DEBIT, C2P o CARD_TOKEN. Omitido: todos los que la conexión ofrezca, también los que se activen después. Con valores: sólo esos; lista vacía, repetidos, desconocidos o no soportados por la conexión responden checkout_cart_methods_invalid.","x-description-en":"Methods the cart offers on this connection: REDIRECT, REPORTED_PAYMENT, BINANCE_REPORTED, IMMEDIATE_DEBIT, C2P or CARD_TOKEN. Omitted: every method the connection offers, including those activated later. With values: only those; an empty list, repeated, unknown or unsupported methods answer checkout_cart_methods_invalid."}
    CartConnectionView:
      type: object
      required: ["uuid","methods"]
      properties:
        uuid: {"type":"string","format":"uuid","description":"Conexión","x-description-en":"Connection","example":"0b6f3c1e-9a2d-4c5b-8e7f-1a2b3c4d5e6f"}
        split: {"type":"array","items":{"additionalProperties":true,"type":"object"},"description":"Reparto propio del cart en la conexión. Se omite cuando usa el de la conexión y es null cuando cobra sin reparto.","x-description-en":"Own split of the cart on the connection. Omitted when it uses the one of the connection and null when it charges without split."}
        methods: {"type":"array","maxItems":8,"items":{"type":"string","maxLength":24},"description":"Métodos elegidos; nulo cuando se ofrecen todos los de la conexión.","x-description-en":"Chosen methods; null when every method of the connection is offered."}
    CartCreateResponse:
      type: object
      required: ["cart","notification_secret"]
      properties:
        cart: {"allOf":[{"$ref":"#/components/schemas/CartView"}],"description":"Cart","x-description-en":"Cart"}
        notification_secret: {"type":["string","null"],"maxLength":128,"description":"Secreto de firma de los eventos del cart. Sólo viene cuando el cart tiene notification_url y sólo en la primera respuesta: la repetición de la misma Idempotency-Key no lo repite. Guárdalo; para conocer otro se rota.","x-description-en":"Signing secret of the cart events. Only present when the cart has a notification_url and only in the first response: replaying the same Idempotency-Key does not repeat it. Store it; to learn another one it is rotated.","example":"whsec_Zm9vYmFyYmF6..."}
    CartEventData:
      type: object
      required: ["cart"]
      properties:
        cart: {"allOf":[{"$ref":"#/components/schemas/EventCartView"}],"description":"Cart","x-description-en":"Cart"}
        session: {"allOf":[{"$ref":"#/components/schemas/EventSessionView"}],"description":"Sesión","x-description-en":"Session"}
        lines: {"type":"array","maxItems":20,"items":{"$ref":"#/components/schemas/EventLineView"},"description":"Líneas","x-description-en":"Lines"}
        payment: {"allOf":[{"$ref":"#/components/schemas/EventPaymentView"}],"description":"Pago","x-description-en":"Payment"}
        charge_currency: {"type":"string","minLength":3,"maxLength":3,"description":"Moneda de cobro","x-description-en":"Charge currency","example":"VES"}
        review: {"allOf":[{"$ref":"#/components/schemas/ReviewView"}],"description":"Revisión","x-description-en":"Review"}
    CartUpdateBody:
      type: object
      required: ["version","items"]
      properties:
        version: {"type":"integer","minimum":1,"description":"Versión del cart que leíste. Si cambió desde entonces responde 409 checkout_cart_version_conflict; cada edición correcta sube la versión en 1. Las sesiones ya abiertas conservan su foto (líneas, montos, tasas y plazo) y no se alteran.","x-description-en":"Version of the cart you read. If it changed since then it answers 409 checkout_cart_version_conflict; every successful edit raises the version by 1. Sessions already open keep their snapshot (lines, amounts, rates and deadline) and are not altered.","example":1}
        status: {"type":"string","enum":["ACTIVE","INACTIVE"],"description":"ACTIVE o INACTIVE. Omitido conserva el estado. INACTIVE cierra la venta de forma reversible: el cart queda UNAVAILABLE con CART_INACTIVE, no se abren sesiones nuevas y las sesiones abiertas aún pueden pagarse (el pago se registra y la sesión queda con paid_after_cart_closed). Los estados finales no se cambian por esta vía; un cart vencido se reabre con una expires_at futura u omitida.","x-description-en":"ACTIVE or INACTIVE. Omitted keeps the state. INACTIVE closes sales reversibly: the cart is UNAVAILABLE with CART_INACTIVE, no new sessions are opened and open sessions can still be paid (the payment is recorded and the session carries paid_after_cart_closed). Final states are not changed this way; an expired cart is reopened with a future or omitted expires_at.","example":"ACTIVE"}
        title: {"type":"string","maxLength":120,"description":"Título del cart: es el nombre del cobro que ve el comprador y el título que se envía a la pasarela. Opcional con una sola línea: omitido o vacío se toma el nombre de esa línea. Obligatorio con más de una línea (checkout_cart_title_required).","x-description-en":"Cart title: the payment name the buyer sees and the title sent to the gateway. Optional with a single line: when omitted or empty the name of that line is used. Required with more than one line (checkout_cart_title_required).","example":"Pedido 1043"}
        items: {"type":"array","minItems":1,"maxItems":20,"items":{"$ref":"#/components/schemas/ItemBody"},"description":"Líneas del cart, al menos una. Cada línea es de catálogo (product_uuid) o propia (custom), nunca las dos ni ninguna: de lo contrario checkout_line_invalid. El orden enviado es el orden en que se muestran. Un producto no se repite en el cart ni el SKU de las líneas propias. El total del cart debe ser mayor que 0: hace falta al menos una línea de precio fijo o abierta con mínimo mayor que 0; si todas son voluntarias responde checkout_amount_invalid. En una edición la lista reemplaza por completo a la anterior.","x-description-en":"Cart lines, at least one. Each line is either a catalog line (product_uuid) or a custom line (custom), never both and never neither: otherwise checkout_line_invalid. The order sent is the display order. A product cannot repeat in the cart and neither can the SKU of custom lines. The cart total must be greater than 0: at least one fixed-price line, or an open line with a minimum greater than 0, is needed; if every line is voluntary the response is checkout_amount_invalid. On an edit the list fully replaces the previous one."}
        connections: {"type":"array","maxItems":50,"items":{"$ref":"#/components/schemas/CartConnectionBody"},"description":"Conexiones con las que el comprador puede pagar, en el orden en que se le muestran, cada una con los métodos que se le ofrecen. Acepta sólo conexiones activas de la cuenta, sin repetir y con los ajustes obligatorios de su conector cargados; cualquier otra responde checkout_cart_connection_invalid. methods omitido: se ofrecen todos los métodos de la conexión, también los que se activen después. methods con valores (REDIRECT, REPORTED_PAYMENT, IMMEDIATE_DEBIT, C2P): sólo esos; una lista vacía, un método repetido, desconocido o que la conexión no ofrece responde checkout_cart_methods_invalid. Omitido o vacío connections: el cart ofrece todas las conexiones activas de la cuenta que no sean de pruebas, tomadas en cada lectura, con todos sus métodos. Si la selección se queda sin ninguna conexión utilizable el cart no se amplía a las demás: queda UNAVAILABLE con NO_USABLE_CONNECTION. Una conexión deja de ser utilizable si no ofrece ningún método de cobro entre los elegidos o si alguna línea debe convertirse a su moneda de cobro y no hay cotización vigente.","x-description-en":"Connections the buyer can pay with, in the order they are shown, each with the methods offered on it. Only active connections of the account are accepted, without repeats and with the required settings of their connector loaded; anything else answers checkout_cart_connection_invalid. methods omitted: every method of the connection is offered, including those activated later. methods with values (REDIRECT, REPORTED_PAYMENT, IMMEDIATE_DEBIT, C2P): only those; an empty list, a repeated, unknown or unsupported method answers checkout_cart_methods_invalid. connections omitted or empty: the cart offers every active non-sandbox connection of the account, taken on each read, with all their methods. If the selection ends up with no usable connection the cart does not widen to the others: it is UNAVAILABLE with NO_USABLE_CONNECTION. A connection stops being usable when none of the chosen methods is offered or when a line must be converted to its charge currency and there is no current rate."}
        expires_at: {"type":["string","null"],"format":"date-time","description":"Instante RFC 3339 en que el cart deja de vender. Omitido o null: no vence. Al crear, o al cambiarlo en una edición, debe ser futuro (checkout_cart_expiry_invalid); reenviar el mismo valor ya vencido es válido. Vencido, el cart pasa a state EXPIRED en la lectura y limita el plazo de pago (pay_by) de toda sesión. Editar con una fecha futura u omitida reabre un cart vencido.","x-description-en":"RFC 3339 instant at which the cart stops selling. Omitted or null: it never expires. On creation, or when changed in an edit, it must be in the future (checkout_cart_expiry_invalid); resending the same already-past value is valid. Once past, the cart reads as state EXPIRED and caps the payment deadline (pay_by) of every session. Editing with a future or omitted date reopens an expired cart.","example":"2026-11-06T14:00:00Z"}
        session_minutes: {"type":["integer","null"],"minimum":1,"maximum":100000,"description":"Minutos que dura la sesión de pago del comprador, contados desde que la abre. Omitido: una hora. Fuera del rango del esquema responde checkout_cart_session_duration_invalid. El plazo real (pay_by) es el menor entre la apertura más estos minutos, el vencimiento propio de la pasarela y expires_at del cart; hasta pay_by el monto y las tasas quedan fijos.","x-description-en":"Minutes the buyer payment session lasts, counted from when it is opened. Omitted: one hour. Outside the schema range it answers checkout_cart_session_duration_invalid. The real deadline (pay_by) is the earliest of the opening plus these minutes, the own expiry of the gateway and the cart expires_at; until pay_by the amount and rates stay fixed.","example":60}
        max_uses: {"type":["integer","null"],"minimum":1,"maximum":100000,"description":"Cantidad de ventas que admite el cart. Omitido o null: sin límite. Cuentan los pagos confirmados más las sesiones abiertas, que reservan un uso mientras el comprador paga: al llegar al máximo el cart es EXHAUSTED, y mientras las reservas ocupan los usos que quedan es BUSY (se reintenta cuando alguna sesión venza o falle y libere su reserva). Al editar no puede quedar por debajo de usos confirmados más reservas (checkout_cart_max_uses_invalid).","x-description-en":"Number of sales the cart admits. Omitted or null: unlimited. Confirmed payments plus open sessions count, since an open session reserves a use while the buyer pays: at the maximum the cart is EXHAUSTED, and while reservations hold the remaining uses it is BUSY (retry when a session expires or fails and releases its reservation). On an edit it cannot fall below confirmed uses plus reservations (checkout_cart_max_uses_invalid).","example":1}
        max_installments: {"type":["integer","null"],"minimum":1,"maximum":1000,"description":"Máximo de cuotas que el comprador puede elegir. Omitido o null al crear: sin cuotas. Al editar, omitido conserva el valor guardado. El límite efectivo es el menor entre este y el de la pasarela, y sólo aplica a conexiones que soportan cuotas (installments_available lo indica); en las demás el comprador paga en una cuota y pedir otra cantidad es inválido. Fuera del rango del esquema responde checkout_cart_installments_invalid.","x-description-en":"Maximum installments the buyer can choose. Omitted or null on creation: no installments. On an edit, omitted keeps the stored value. The effective limit is the lower of this and the gateway one, and applies only to connections that support installments (installments_available reports it); on the others the buyer pays in one installment and asking for another count is invalid. Outside the schema range it answers checkout_cart_installments_invalid.","example":6}
        line_currencies: {"type":"string","maxLength":20,"description":"Moneda en que se pintan los precios de las líneas en la página de pago. product (valor por defecto, también si se omite o va vacío): cada línea en la moneda de su producto o precio. CURRENCY_ seguido de un código del catálogo (por ejemplo CURRENCY_USD): todas las líneas en esa moneda; la página pública publica la cotización vigente de esa moneda en rates y, sin tasa vigente, no la inventa. Es sólo de presentación: la moneda de cobro es la de la conexión que elige el comprador. Otro valor responde checkout_cart_field_invalid.","x-description-en":"Currency in which line prices are drawn on the payment page. product (default, also when omitted or empty): each line in the currency of its product or price. CURRENCY_ followed by a catalog code (for example CURRENCY_USD): every line in that currency; the public page publishes the current rate of that currency in rates and, with no current rate, does not invent one. Presentation only: the charge currency is that of the connection the buyer picks. Any other value answers checkout_cart_field_invalid.","example":"product"}
        total_currencies: {"type":"array","maxItems":19,"items":{"type":"string","minLength":3,"maxLength":3},"description":"Monedas en que se muestra el total, del catálogo y sin repetir; la primera es la moneda principal. Omitido o vacío: se llenan con las monedas de cobro de las conexiones del cart en su orden y, si no se marcó ninguna, con las de las conexiones activas por fecha de creación (también en cada edición). Es sólo de presentación: no cambia lo que se cobra. Un código fuera del catálogo o repetido responde checkout_cart_field_invalid. La página pública publica la cotización vigente de cada una en rates; sin tasa no se inventa.","x-description-en":"Currencies in which the total is shown, from the catalog and without repeats; the first is the main currency. Omitted or empty: filled with the charge currencies of the cart connections in their order and, if none was selected, with those of the active connections by creation date (also on every edit). Presentation only: it does not change what is charged. A code outside the catalog or repeated answers checkout_cart_field_invalid. The public page publishes the current rate of each in rates; with no rate none is invented."}
        button_color: {"type":"string","maxLength":7,"description":"Color de fondo del botón de pago en #RRGGBB (se guarda en mayúsculas). Opcional: omitido o vacío queda null y la página usa su color por defecto. Otro formato responde checkout_cart_field_invalid. Es de presentación.","x-description-en":"Background color of the pay button as #RRGGBB (stored in uppercase). Optional: omitted or empty is null and the page uses its default color. Any other format answers checkout_cart_field_invalid. Presentation only.","example":"#1A73E8"}
        button_text_color: {"type":"string","maxLength":7,"description":"Color del texto del botón de pago en #RRGGBB (se guarda en mayúsculas). Opcional: omitido o vacío queda null y la página usa su color por defecto. Otro formato responde checkout_cart_field_invalid. Es de presentación.","x-description-en":"Text color of the pay button as #RRGGBB (stored in uppercase). Optional: omitted or empty is null and the page uses its default color. Any other format answers checkout_cart_field_invalid. Presentation only.","example":"#FFFFFF"}
        external_reference: {"type":"string","maxLength":120,"description":"Referencia de tu sistema, por ejemplo el número de pedido. Opcional: vacío equivale a no enviarla. Se devuelve en el cart, viaja en los eventos del cart y se envía a la pasarela como referencia del cobro. No tiene que ser única.","x-description-en":"Reference from your own system, for example the order number. Optional: empty equals not sending it. It is returned on the cart, travels in the cart events and is sent to the gateway as the payment reference. It does not have to be unique.","example":"order-1043"}
        return_url: {"type":"string","maxLength":500,"description":"URL https adonde se devuelve al comprador al terminar el pago. Opcional: vacío equivale a omitirla. Si no empieza por https:// responde checkout_cart_field_invalid. Se envía a la pasarela y se entrega al comprador en el estado de su sesión.","x-description-en":"https URL to which the buyer is sent back when the payment ends. Optional: empty equals omitting it. If it does not start with https:// it answers checkout_cart_field_invalid. It is sent to the gateway and given to the buyer in the state of their session.","example":"https://example.com/gracias"}
        notification_url: {"type":"string","maxLength":500,"description":"URL https que recibe los eventos del cart (venta pagada, cart agotado), firmados con el secreto del cart. Omitida o vacía: no se notifica y la respuesta de la creación no trae secreto. Se valida al guardar (notification_url_invalid). Con URL, la creación devuelve el secreto de firma una sola vez en notification_secret; agregar la URL en una edición no lo devuelve, para conocerlo se rota. En una edición, omitirla o enviarla vacía la quita.","x-description-en":"https URL that receives the cart events (sale paid, cart exhausted), signed with the cart secret. Omitted or empty: nothing is notified and the creation response carries no secret. It is validated on save (notification_url_invalid). With a URL, creation returns the signing secret only once in notification_secret; adding the URL in an edit does not return it, rotate it to learn it. On an edit, omitting it or sending it empty removes it.","example":"https://example.com/cash/checkout"}
    CartView:
      type: object
      required: ["uuid","title","status","state","unavailable_reasons","items","connections","usable_connection_uuids","expires_at","session_minutes","version","max_uses","uses_count","reserved_count","max_installments","installments_available","line_currencies","total_currencies","button_color","button_text_color","external_reference","return_url","notification_url","notification_secret_rotated_at","checkout_url","created_at","updated_at"]
      properties:
        uuid: {"type":"string","format":"uuid","description":"Cart","x-description-en":"Cart","example":"5a1f0e2d-3c4b-4a59-8e7d-6c5b4a3f2e1d"}
        title: {"type":["string","null"],"maxLength":120,"description":"Título","x-description-en":"Title","example":"Pedido 1043"}
        status: {"type":"string","enum":["ACTIVE","INACTIVE","EXPIRED","EXHAUSTED","CANCELED"],"description":"Estado guardado: ACTIVE e INACTIVE los cambia el comercio; EXPIRED, EXHAUSTED y CANCELED son finales. La disponibilidad real para comprar es state.","x-description-en":"Stored status: ACTIVE and INACTIVE are changed by the merchant; EXPIRED, EXHAUSTED and CANCELED are final. The real availability to buy is state.","example":"ACTIVE"}
        state: {"type":"string","enum":["AVAILABLE","EXPIRED","EXHAUSTED","BUSY","UNAVAILABLE"],"description":"Disponibilidad calculada al leer. AVAILABLE: se puede abrir una sesión. EXPIRED: pasó expires_at. EXHAUSTED: las ventas llegaron a max_uses. BUSY: los usos que quedan están reservados por sesiones abiertas, se reintenta cuando alguna venza. UNAVAILABLE: ver unavailable_reasons. Vencido y agotado ganan sobre cualquier otro estado.","x-description-en":"Availability computed on read. AVAILABLE: a session can be opened. EXPIRED: expires_at has passed. EXHAUSTED: sales reached max_uses. BUSY: the remaining uses are reserved by open sessions, retry when one expires. UNAVAILABLE: see unavailable_reasons. Expired and exhausted win over any other state.","example":"AVAILABLE"}
        unavailable_reasons: {"type":"array","maxItems":8,"items":{"type":"string","maxLength":32},"description":"Vacío salvo con state UNAVAILABLE; puede traer varios. CART_INACTIVE: el cart está INACTIVE o cancelado. ACCOUNT_NO_ACCESS: la cuenta no tiene acceso vigente para vender por checkout. PRODUCT_INACTIVE: algún producto de las líneas está inactivo. NO_USABLE_CONNECTION: ninguna conexión utilizable (inactiva, sin método de cobro o sin cotización para convertir alguna línea).","x-description-en":"Empty unless state is UNAVAILABLE; it may carry several. CART_INACTIVE: the cart is INACTIVE or canceled. ACCOUNT_NO_ACCESS: the account has no current access to sell through checkout. PRODUCT_INACTIVE: a product in the lines is inactive. NO_USABLE_CONNECTION: no usable connection (inactive, without a payment method or without a rate to convert some line)."}
        items: {"type":"array","maxItems":20,"items":{"$ref":"#/components/schemas/ItemView"},"description":"Líneas","x-description-en":"Lines"}
        connections: {"type":"array","maxItems":50,"items":{"$ref":"#/components/schemas/CartConnectionView"},"description":"Conexiones marcadas en el cart, en el orden en que se muestran, con los métodos elegidos de cada una (methods nulo: todos los de la conexión, también los que se activen después). Vacía cuando el cart ofrece todas las activas que no son de pruebas.","x-description-en":"Connections selected in the cart, in display order, with the methods chosen for each (methods null: every method of the connection, including those activated later). Empty when the cart offers every active non-sandbox connection."}
        usable_connection_uuids: {"type":"array","maxItems":50,"items":{"type":"string","format":"uuid"},"description":"Conexiones con las que hoy se puede pagar, ya filtradas por método de cobro y cotización. Si queda vacía, state es UNAVAILABLE con NO_USABLE_CONNECTION.","x-description-en":"Connections that can be paid with today, already filtered by payment method and rate. If empty, state is UNAVAILABLE with NO_USABLE_CONNECTION."}
        expires_at: {"type":["string","null"],"format":"date-time","description":"Instante RFC 3339 en que el cart deja de vender. Omitido o null: no vence. Al crear, o al cambiarlo en una edición, debe ser futuro (checkout_cart_expiry_invalid); reenviar el mismo valor ya vencido es válido. Vencido, el cart pasa a state EXPIRED en la lectura y limita el plazo de pago (pay_by) de toda sesión. Editar con una fecha futura u omitida reabre un cart vencido.","x-description-en":"RFC 3339 instant at which the cart stops selling. Omitted or null: it never expires. On creation, or when changed in an edit, it must be in the future (checkout_cart_expiry_invalid); resending the same already-past value is valid. Once past, the cart reads as state EXPIRED and caps the payment deadline (pay_by) of every session. Editing with a future or omitted date reopens an expired cart.","example":"2026-11-06T14:00:00Z"}
        session_minutes: {"type":"integer","minimum":15,"maximum":720,"description":"Minutos que dura la sesión de pago del comprador, contados desde que la abre. Omitido: una hora. Fuera del rango del esquema responde checkout_cart_session_duration_invalid. El plazo real (pay_by) es el menor entre la apertura más estos minutos, el vencimiento propio de la pasarela y expires_at del cart; hasta pay_by el monto y las tasas quedan fijos.","x-description-en":"Minutes the buyer payment session lasts, counted from when it is opened. Omitted: one hour. Outside the schema range it answers checkout_cart_session_duration_invalid. The real deadline (pay_by) is the earliest of the opening plus these minutes, the own expiry of the gateway and the cart expires_at; until pay_by the amount and rates stay fixed.","example":60}
        version: {"type":"integer","minimum":1,"description":"Versión del cart; la edición debe enviarla para detectar cambios concurrentes.","x-description-en":"Cart version; an edit must send it to detect concurrent changes.","example":1}
        max_uses: {"type":["integer","null"],"minimum":1,"maximum":100000,"description":"Cantidad de ventas que admite el cart. Omitido o null: sin límite. Cuentan los pagos confirmados más las sesiones abiertas, que reservan un uso mientras el comprador paga: al llegar al máximo el cart es EXHAUSTED, y mientras las reservas ocupan los usos que quedan es BUSY (se reintenta cuando alguna sesión venza o falle y libere su reserva). Al editar no puede quedar por debajo de usos confirmados más reservas (checkout_cart_max_uses_invalid).","x-description-en":"Number of sales the cart admits. Omitted or null: unlimited. Confirmed payments plus open sessions count, since an open session reserves a use while the buyer pays: at the maximum the cart is EXHAUSTED, and while reservations hold the remaining uses it is BUSY (retry when a session expires or fails and releases its reservation). On an edit it cannot fall below confirmed uses plus reservations (checkout_cart_max_uses_invalid).","example":1}
        uses_count: {"type":"integer","minimum":0,"description":"Ventas confirmadas del cart.","x-description-en":"Confirmed sales of the cart.","example":0}
        reserved_count: {"type":"integer","minimum":0,"description":"Sesiones abiertas que hoy reservan un uso; se liberan al vencer o fallar la sesión y se vuelven uso al confirmarse el pago.","x-description-en":"Open sessions that currently reserve a use; released when the session expires or fails and turned into a use when the payment is confirmed.","example":0}
        max_installments: {"type":["integer","null"],"minimum":2,"maximum":36,"description":"Máximo de cuotas que el comprador puede elegir. Omitido o null al crear: sin cuotas. Al editar, omitido conserva el valor guardado. El límite efectivo es el menor entre este y el de la pasarela, y sólo aplica a conexiones que soportan cuotas (installments_available lo indica); en las demás el comprador paga en una cuota y pedir otra cantidad es inválido. Fuera del rango del esquema responde checkout_cart_installments_invalid.","x-description-en":"Maximum installments the buyer can choose. Omitted or null on creation: no installments. On an edit, omitted keeps the stored value. The effective limit is the lower of this and the gateway one, and applies only to connections that support installments (installments_available reports it); on the others the buyer pays in one installment and asking for another count is invalid. Outside the schema range it answers checkout_cart_installments_invalid.","example":6}
        installments_available: {"type":"boolean","description":"true si alguna conexión utilizable soporta cuotas y el cart tiene max_installments.","x-description-en":"true if some usable connection supports installments and the cart has max_installments.","example":true}
        line_currencies: {"type":"string","maxLength":20,"description":"Moneda en que se pintan los precios de las líneas en la página de pago. product (valor por defecto, también si se omite o va vacío): cada línea en la moneda de su producto o precio. CURRENCY_ seguido de un código del catálogo (por ejemplo CURRENCY_USD): todas las líneas en esa moneda; la página pública publica la cotización vigente de esa moneda en rates y, sin tasa vigente, no la inventa. Es sólo de presentación: la moneda de cobro es la de la conexión que elige el comprador. Otro valor responde checkout_cart_field_invalid.","x-description-en":"Currency in which line prices are drawn on the payment page. product (default, also when omitted or empty): each line in the currency of its product or price. CURRENCY_ followed by a catalog code (for example CURRENCY_USD): every line in that currency; the public page publishes the current rate of that currency in rates and, with no current rate, does not invent one. Presentation only: the charge currency is that of the connection the buyer picks. Any other value answers checkout_cart_field_invalid.","example":"product"}
        total_currencies: {"type":"array","maxItems":19,"items":{"type":"string","minLength":3,"maxLength":3},"description":"Monedas en que se muestra el total, del catálogo y sin repetir; la primera es la moneda principal. Omitido o vacío: se llenan con las monedas de cobro de las conexiones del cart en su orden y, si no se marcó ninguna, con las de las conexiones activas por fecha de creación (también en cada edición). Es sólo de presentación: no cambia lo que se cobra. Un código fuera del catálogo o repetido responde checkout_cart_field_invalid. La página pública publica la cotización vigente de cada una en rates; sin tasa no se inventa.","x-description-en":"Currencies in which the total is shown, from the catalog and without repeats; the first is the main currency. Omitted or empty: filled with the charge currencies of the cart connections in their order and, if none was selected, with those of the active connections by creation date (also on every edit). Presentation only: it does not change what is charged. A code outside the catalog or repeated answers checkout_cart_field_invalid. The public page publishes the current rate of each in rates; with no rate none is invented."}
        button_color: {"type":["string","null"],"maxLength":7,"description":"Color de fondo del botón de pago en #RRGGBB (se guarda en mayúsculas). Opcional: omitido o vacío queda null y la página usa su color por defecto. Otro formato responde checkout_cart_field_invalid. Es de presentación.","x-description-en":"Background color of the pay button as #RRGGBB (stored in uppercase). Optional: omitted or empty is null and the page uses its default color. Any other format answers checkout_cart_field_invalid. Presentation only.","example":"#1A73E8"}
        button_text_color: {"type":["string","null"],"maxLength":7,"description":"Color del texto del botón de pago en #RRGGBB (se guarda en mayúsculas). Opcional: omitido o vacío queda null y la página usa su color por defecto. Otro formato responde checkout_cart_field_invalid. Es de presentación.","x-description-en":"Text color of the pay button as #RRGGBB (stored in uppercase). Optional: omitted or empty is null and the page uses its default color. Any other format answers checkout_cart_field_invalid. Presentation only.","example":"#FFFFFF"}
        external_reference: {"type":["string","null"],"maxLength":120,"description":"Referencia de tu sistema, por ejemplo el número de pedido. Opcional: vacío equivale a no enviarla. Se devuelve en el cart, viaja en los eventos del cart y se envía a la pasarela como referencia del cobro. No tiene que ser única.","x-description-en":"Reference from your own system, for example the order number. Optional: empty equals not sending it. It is returned on the cart, travels in the cart events and is sent to the gateway as the payment reference. It does not have to be unique.","example":"order-1043"}
        return_url: {"type":["string","null"],"maxLength":500,"description":"URL https adonde se devuelve al comprador al terminar el pago. Opcional: vacío equivale a omitirla. Si no empieza por https:// responde checkout_cart_field_invalid. Se envía a la pasarela y se entrega al comprador en el estado de su sesión.","x-description-en":"https URL to which the buyer is sent back when the payment ends. Optional: empty equals omitting it. If it does not start with https:// it answers checkout_cart_field_invalid. It is sent to the gateway and given to the buyer in the state of their session.","example":"https://example.com/gracias"}
        notification_url: {"type":["string","null"],"maxLength":500,"description":"URL https que recibe los eventos del cart (venta pagada, cart agotado), firmados con el secreto del cart. Omitida o vacía: no se notifica y la respuesta de la creación no trae secreto. Se valida al guardar (notification_url_invalid). Con URL, la creación devuelve el secreto de firma una sola vez en notification_secret; agregar la URL en una edición no lo devuelve, para conocerlo se rota. En una edición, omitirla o enviarla vacía la quita.","x-description-en":"https URL that receives the cart events (sale paid, cart exhausted), signed with the cart secret. Omitted or empty: nothing is notified and the creation response carries no secret. It is validated on save (notification_url_invalid). With a URL, creation returns the signing secret only once in notification_secret; adding the URL in an edit does not return it, rotate it to learn it. On an edit, omitting it or sending it empty removes it.","example":"https://example.com/cash/checkout"}
        notification_secret_rotated_at: {"type":["string","null"],"format":"date-time","description":"Instante en que se fijó o rotó el secreto de firma; null si el cart se creó sin notification_url y nunca se rotó.","x-description-en":"Instant at which the signing secret was set or rotated; null if the cart was created without a notification_url and never rotated.","example":"2026-11-05T14:10:02Z"}
        checkout_url: {"type":"string","maxLength":512,"description":"URL pública del cart para compartir con el comprador; abrirla no crea sesión ni reserva nada.","x-description-en":"Public URL of the cart to share with the buyer; opening it creates no session and reserves nothing.","example":"https://example.com/checkout/5a1f0e2d-3c4b-4a59-8e7d-6c5b4a3f2e1d"}
        created_at: {"type":"string","format":"date-time","description":"Creado el","x-description-en":"Created at","example":"2026-11-05T14:10:02Z"}
        updated_at: {"type":"string","format":"date-time","description":"Modificado el","x-description-en":"Updated at","example":"2026-11-05T14:10:02Z"}
    ChargeBody:
      type: object
      required: ["saved_method_uuid","amount","currency"]
      properties:
        saved_method_uuid: {"type":"string","format":"uuid","description":"Método guardado","x-description-en":"Saved method","example":"6f1c2a9e-3b7d-4e8a-9c21-5d4e3f2a1b0c"}
        amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Monto","x-description-en":"Amount","example":"25.0000"}
        currency: {"type":"string","minLength":3,"maxLength":3,"description":"Moneda","x-description-en":"Currency","example":"USD"}
        description: {"type":"string","maxLength":120,"description":"Descripción","x-description-en":"Description","example":"Pedido 1043"}
        external_reference: {"type":"string","maxLength":120,"description":"Referencia externa","x-description-en":"External reference","example":"order-1043"}
    ChargeResolveBody:
      type: object
      required: ["outcome"]
      properties:
        outcome: {"type":"string","enum":["CHARGED","NOT_CHARGED"],"description":"Resultado","x-description-en":"Outcome","example":"CHARGED"}
        provider_reference: {"type":"string","maxLength":120,"description":"Referencia del proveedor","x-description-en":"Provider reference","example":"pi_3Pq1x2"}
    ConnectionEventView:
      type: object
      required: ["uuid","provider","auth_mode","environment","name","status","fingerprint","settings","secret_fields","capabilities","inbound_url","provider_webhook_url","inbound_key_previous_until","notification_url","notification_secret_rotated_at","verified_at","last_used_at","archived_at","version","created_at","updated_at"]
      properties:
        uuid: {"type":"string","format":"uuid","description":"Conexión","x-description-en":"Connection","example":"0b6f3c1e-9a2d-4c5b-8e7f-1a2b3c4d5e6f"}
        provider: {"type":"string","maxLength":24,"enum":["BANCARIBE_P2P","BDV_BIOPAGO","BDV_P2P","BINANCE_PAY","BINANCE_PERSONAL","BNC_P2P","BT_P2P","BVC_P2P","MERCADO_PAGO","MERCANTIL_P2P","PAYPAL","R4_P2P","SPIDI","STRIPE","WAYU_PAY"],"description":"Proveedor","x-description-en":"Provider","example":"BANCARIBE_P2P"}
        auth_mode: {"type":["string","null"],"enum":["OWN","ASSOCIATED",null],"description":"Modo de autenticación","x-description-en":"Authentication mode","example":"OWN"}
        environment: {"type":"string","enum":["SANDBOX","PRODUCTION"],"description":"Ambiente","x-description-en":"Environment","example":"PRODUCTION"}
        name: {"type":"string","maxLength":120,"description":"Nombre","x-description-en":"Name","example":"Bancaribe principal"}
        status: {"type":"string","enum":["ACTIVE","INACTIVE","ARCHIVED"],"description":"Estado","x-description-en":"Status","example":"ACTIVE"}
        fingerprint: {"type":"string","minLength":12,"maxLength":12,"description":"Huella de la cuenta","x-description-en":"Account fingerprint","example":"3f9a1c0b7e2d"}
        settings: {"type":"object","additionalProperties":{"type":"string"},"description":"Ajustes","x-description-en":"Settings"}
        secret_fields: {"type":"array","maxItems":12,"items":{"type":"string","maxLength":64},"description":"Credenciales cargadas","x-description-en":"Stored credentials","example":["consumer_key"]}
        capabilities: {"type":"array","maxItems":3,"items":{"type":"string","enum":["IMMEDIATE_DEBIT","C2P","CARD_TOKEN"]},"description":"Capacidades","x-description-en":"Capabilities","example":["C2P"]}
        inbound_url: {"type":["string","null"],"maxLength":512,"description":"URL de avisos del banco","x-description-en":"Bank notice URL","example":"https://api.cachicamo.cash/v1/webhooks/providers/bancaribe/0b6f3c1e-9a2d-4c5b-8e7f-1a2b3c4d5e6f"}
        webhook_status: {"type":"string","enum":["CONFIGURED","MISSING"],"description":"Sólo en Stripe y PayPal: MISSING mientras falte el secreto o el identificador del webhook, y la conexión no recibe avisos del proveedor aunque pueda cobrar; CONFIGURED cuando están cargados.","x-description-en":"Stripe and PayPal only: MISSING while the webhook secret or identifier is absent, and the connection receives no provider notices although it can still charge; CONFIGURED once stored.","example":"MISSING"}
        provider_webhook_url: {"type":["string","null"],"maxLength":512,"description":"URL del webhook de la pasarela","x-description-en":"Gateway webhook URL"}
        inbound_key_previous_until: {"type":["string","null"],"format":"date-time","description":"La llave anterior vale hasta","x-description-en":"Previous key valid until","example":"2026-10-21T14:10:02Z"}
        notification_url: {"type":["string","null"],"maxLength":500,"description":"URL de notificaciones","x-description-en":"Notification URL","example":"https://example.com/cash/notificaciones"}
        payment_qr_url: {"type":"string","maxLength":500,"description":"QR de cobro","x-description-en":"Payment QR","example":"https://example.com/cash/qr/0b6f3c1e/ab12.png"}
        notification_secret_rotated_at: {"type":["string","null"],"format":"date-time","description":"Secreto de notificaciones rotado el","x-description-en":"Notification secret rotated at","example":"2026-10-20T14:10:02Z"}
        verified_at: {"type":["string","null"],"format":"date-time","description":"Verificada el","x-description-en":"Verified at","example":"2026-10-20T14:10:02Z"}
        last_used_at: {"type":["string","null"],"format":"date-time","description":"Último uso","x-description-en":"Last used","example":"2026-10-20T14:10:02Z"}
        archived_at: {"type":["string","null"],"format":"date-time","description":"Archivada el","x-description-en":"Archived at"}
        version: {"type":"integer","minimum":1,"description":"Versión","x-description-en":"Version","example":3}
        created_at: {"type":"string","format":"date-time","description":"Creada el","x-description-en":"Created at","example":"2026-10-20T14:10:02Z"}
        updated_at: {"type":"string","format":"date-time","description":"Modificada el","x-description-en":"Updated at","example":"2026-10-20T14:10:02Z"}
    ConnectionView:
      type: object
      required: ["uuid","provider","auth_mode","environment","name","status","fingerprint","settings","secret_fields","capabilities","inbound_url","provider_webhook_url","inbound_key_previous_until","notification_url","notification_secret_rotated_at","verified_at","last_used_at","archived_at","version","created_at","updated_at","checkout_methods","split","supports_split","currency_policy","provider_capabilities","supports_installments"]
      properties:
        uuid: {"type":"string","format":"uuid","description":"Conexión","x-description-en":"Connection","example":"0b6f3c1e-9a2d-4c5b-8e7f-1a2b3c4d5e6f"}
        provider: {"type":"string","maxLength":24,"enum":["BANCARIBE_P2P","BDV_BIOPAGO","BDV_P2P","BINANCE_PAY","BINANCE_PERSONAL","BNC_P2P","BT_P2P","BVC_P2P","MERCADO_PAGO","MERCANTIL_P2P","PAYPAL","R4_P2P","SPIDI","STRIPE","WAYU_PAY"],"description":"Proveedor","x-description-en":"Provider","example":"BANCARIBE_P2P"}
        auth_mode: {"type":["string","null"],"enum":["OWN","ASSOCIATED",null],"description":"Modo de autenticación","x-description-en":"Authentication mode","example":"OWN"}
        environment: {"type":"string","enum":["SANDBOX","PRODUCTION"],"description":"Ambiente","x-description-en":"Environment","example":"PRODUCTION"}
        name: {"type":"string","maxLength":120,"description":"Nombre","x-description-en":"Name","example":"Bancaribe principal"}
        status: {"type":"string","enum":["ACTIVE","INACTIVE","ARCHIVED"],"description":"Estado","x-description-en":"Status","example":"ACTIVE"}
        fingerprint: {"type":"string","minLength":12,"maxLength":12,"description":"Huella de la cuenta","x-description-en":"Account fingerprint","example":"3f9a1c0b7e2d"}
        settings: {"type":"object","additionalProperties":{"type":"string"},"description":"Ajustes","x-description-en":"Settings"}
        secret_fields: {"type":"array","maxItems":12,"items":{"type":"string","maxLength":64},"description":"Credenciales cargadas","x-description-en":"Stored credentials","example":["consumer_key"]}
        capabilities: {"type":"array","maxItems":3,"items":{"type":"string","enum":["IMMEDIATE_DEBIT","C2P","CARD_TOKEN"]},"description":"Capacidades","x-description-en":"Capabilities","example":["C2P"]}
        inbound_url: {"type":["string","null"],"maxLength":512,"description":"URL de avisos del banco","x-description-en":"Bank notice URL","example":"https://api.cachicamo.cash/v1/webhooks/providers/bancaribe/0b6f3c1e-9a2d-4c5b-8e7f-1a2b3c4d5e6f"}
        webhook_status: {"type":"string","enum":["CONFIGURED","MISSING"],"description":"Sólo en Stripe y PayPal: MISSING mientras falte el secreto o el identificador del webhook, y la conexión no recibe avisos del proveedor aunque pueda cobrar; CONFIGURED cuando están cargados.","x-description-en":"Stripe and PayPal only: MISSING while the webhook secret or identifier is absent, and the connection receives no provider notices although it can still charge; CONFIGURED once stored.","example":"MISSING"}
        provider_webhook_url: {"type":["string","null"],"maxLength":512,"description":"URL del webhook de la pasarela","x-description-en":"Gateway webhook URL"}
        inbound_key_previous_until: {"type":["string","null"],"format":"date-time","description":"La llave anterior vale hasta","x-description-en":"Previous key valid until","example":"2026-10-21T14:10:02Z"}
        notification_url: {"type":["string","null"],"maxLength":500,"description":"URL de notificaciones","x-description-en":"Notification URL","example":"https://example.com/cash/notificaciones"}
        payment_qr_url: {"type":"string","maxLength":500,"description":"QR de cobro","x-description-en":"Payment QR","example":"https://example.com/cash/qr/0b6f3c1e/ab12.png"}
        notification_secret_rotated_at: {"type":["string","null"],"format":"date-time","description":"Secreto de notificaciones rotado el","x-description-en":"Notification secret rotated at","example":"2026-10-20T14:10:02Z"}
        verified_at: {"type":["string","null"],"format":"date-time","description":"Verificada el","x-description-en":"Verified at","example":"2026-10-20T14:10:02Z"}
        last_used_at: {"type":["string","null"],"format":"date-time","description":"Último uso","x-description-en":"Last used","example":"2026-10-20T14:10:02Z"}
        archived_at: {"type":["string","null"],"format":"date-time","description":"Archivada el","x-description-en":"Archived at"}
        version: {"type":"integer","minimum":1,"description":"Versión","x-description-en":"Version","example":3}
        created_at: {"type":"string","format":"date-time","description":"Creada el","x-description-en":"Created at","example":"2026-10-20T14:10:02Z"}
        updated_at: {"type":"string","format":"date-time","description":"Modificada el","x-description-en":"Updated at","example":"2026-10-20T14:10:02Z"}
        checkout_methods: {"type":"array","maxItems":8,"items":{"type":"string","maxLength":24},"description":"Métodos que la conexión ofrece hoy en el checkout: REDIRECT, REPORTED_PAYMENT, BINANCE_REPORTED, IMMEDIATE_DEBIT, C2P o CARD_TOKEN.","x-description-en":"Methods the connection offers today at checkout: REDIRECT, REPORTED_PAYMENT, BINANCE_REPORTED, IMMEDIATE_DEBIT, C2P or CARD_TOKEN."}
        split: {"oneOf":[{"$ref":"#/components/schemas/SplitView"},{"type":"null"}],"description":"Reparto por defecto de los cobros de la conexión; nulo sin reparto.","x-description-en":"Default split of the charges of the connection; null without split."}
        supports_split: {"type":"boolean","description":"Indica si los links de la conexión pueden repartir el cobro entre el comercio y sus partners.","x-description-en":"Whether the links of the connection can split the charge between the merchant and its partners.","example":false}
        currency_policy: {"allOf":[{"$ref":"#/components/schemas/CurrencyPolicyView"}],"description":"Moneda en que cobra la conexión: VES_WITH_RATE convierte a bolívares; OWN_CURRENCY cobra en su propia moneda.","x-description-en":"Currency the connection charges in: VES_WITH_RATE converts to bolivars; OWN_CURRENCY charges in its own currency."}
        provider_capabilities: {"type":"array","maxItems":8,"items":{"type":"string","maxLength":32},"description":"Lo que la conexión sabe hacer con su proveedor: HOSTED_CHECKOUT (página de pago del proveedor), SAVED_METHODS (guardar métodos de pago de clientes), PROVIDER_SUBSCRIPTIONS (suscripciones propias del proveedor), INSTALLMENTS (cuotas), PAYMENT_REFUND (reembolsos) y TOKEN_CHARGE (cobro con la tarjeta tokenizada en el navegador del comprador).","x-description-en":"What the connection can do with its provider: HOSTED_CHECKOUT (the provider payment page), SAVED_METHODS (save customer payment methods), PROVIDER_SUBSCRIPTIONS (the provider own subscriptions), INSTALLMENTS, PAYMENT_REFUND (refunds) and TOKEN_CHARGE (charge with the card tokenized in the buyer browser).","example":["HOSTED_CHECKOUT"]}
        supports_installments: {"type":"boolean","description":"Indica si la conexión permite pagar en cuotas en el checkout.","x-description-en":"Whether the connection allows paying in installments at checkout.","example":false}
    ConsentProofListView:
      type: object
      required: ["items"]
      properties:
        items: {"type":"array","maxItems":100,"items":{"$ref":"#/components/schemas/ConsentProofView"},"description":"Asientos","x-description-en":"Entries","example":[]}
    ConsentProofView:
      type: object
      required: ["uuid","kind","purpose","text_version","language","rendered_text","text_sha256","consent_at","timezone","receipt_sent_at","revoked_at","revoked_via","integrity_ok"]
      properties:
        uuid: {"type":"string","format":"uuid","description":"Asiento","x-description-en":"Entry","example":"0b8f3c1e-7a2d-4f5b-8e9c-1d2a3b4c5d6e"}
        kind: {"type":"string","maxLength":16,"description":"Tipo","x-description-en":"Kind","example":"GRANT"}
        purpose: {"type":"string","maxLength":16,"description":"Finalidad","x-description-en":"Purpose","example":"SUBSCRIPTION"}
        text_version: {"type":"string","maxLength":16,"description":"Versión del texto","x-description-en":"Text version","example":"SUB-2026-11"}
        language: {"type":"string","minLength":2,"maxLength":2,"description":"Idioma","x-description-en":"Language","example":"es"}
        rendered_text: {"type":"string","maxLength":20000,"description":"Texto aceptado","x-description-en":"Accepted text","example":"Autorizo..."}
        text_sha256: {"type":"string","minLength":64,"maxLength":64,"description":"Huella del texto","x-description-en":"Text hash","example":"0000000000000000000000000000000000000000000000000000000000000000"}
        consent_at: {"type":"string","format":"date-time","description":"Consentido el","x-description-en":"Consented at","example":"2026-10-21T03:30:00.000Z"}
        timezone: {"type":"string","maxLength":40,"description":"Zona horaria","x-description-en":"Time zone","example":"America/Caracas"}
        receipt_sent_at: {"type":["string","null"],"format":"date-time","description":"Constancia enviada el","x-description-en":"Receipt sent at","example":"2026-10-21T03:31:00.000Z"}
        revoked_at: {"type":["string","null"],"format":"date-time","description":"Revocado el","x-description-en":"Revoked at"}
        revoked_via: {"type":["string","null"],"maxLength":16,"description":"Revocado por","x-description-en":"Revoked via"}
        integrity_ok: {"type":"boolean","description":"El texto coincide con su huella","x-description-en":"Text matches its hash","example":true}
    CurrencyPolicyView:
      type: object
      required: ["kind","currency","currencies"]
      properties:
        kind: {"type":"string","enum":["VES_WITH_RATE","OWN_CURRENCY"],"description":"Política de moneda","x-description-en":"Currency policy","example":"OWN_CURRENCY"}
        currency: {"type":"string","minLength":3,"maxLength":3,"description":"Moneda en que se cobra; vacía cuando la conexión convierte a bolívares.","x-description-en":"Currency charged; empty when the connection converts to bolivars.","example":"USD"}
        currencies: {"type":"array","maxItems":40,"items":{"type":"string","minLength":3,"maxLength":3},"description":"Monedas que el proveedor admite para elegir al crear la conexión; vacía admite todas las del catálogo.","x-description-en":"Currencies the provider supports when creating the connection; empty accepts every catalog currency.","example":["USD","EUR"]}
    CustomLineBody:
      type: object
      required: ["name","price"]
      properties:
        sku: {"type":"string","maxLength":64,"description":"SKU opcional de la línea propia; no se repite entre las líneas propias del cart (checkout_line_invalid).","x-description-en":"Optional SKU of the custom line; it cannot repeat among the custom lines of the cart (checkout_line_invalid).","example":"ENVIO-1"}
        name: {"type":"string","minLength":3,"maxLength":80,"description":"Nombre","x-description-en":"Name","example":"Envío a domicilio"}
        description: {"type":"string","maxLength":255,"description":"Descripción","x-description-en":"Description","example":"Entrega en 48 horas"}
        image_key: {"type":"string","maxLength":255,"description":"Clave de una foto subida antes con POST /v1/checkout-images. Debe pertenecer a la cuenta; otra clave responde checkout_line_invalid. Omitida o vacía: sin foto.","x-description-en":"Key of a photo uploaded earlier with POST /v1/checkout-images. It must belong to the account; any other key answers checkout_line_invalid. Omitted or empty: no photo.","example":"cash/carts/5a1f0e2d/ab12.jpg"}
        price: {"allOf":[{"$ref":"#/components/schemas/PriceBody"}],"description":"Precio de la línea: FIXED con monto, u OPEN con mínimo y máximo opcionales. Con el modo omitido se toma FIXED.","x-description-en":"Price of the line: FIXED with an amount, or OPEN with optional minimum and maximum. With the mode omitted FIXED is used."}
    CustomerCreateBody:
      type: object
      required: ["email","full_name"]
      properties:
        external_reference: {"type":"string","maxLength":120,"description":"Referencia externa","x-description-en":"External reference","example":"cli-1043"}
        email: {"type":"string","format":"email","maxLength":254,"description":"Correo","x-description-en":"Email","example":"ana@example.com"}
        full_name: {"type":"string","minLength":1,"maxLength":120,"description":"Nombre completo","x-description-en":"Full name","example":"Ana Pérez"}
        document: {"type":"string","maxLength":32,"description":"Documento","x-description-en":"Document","example":"12345678"}
        country: {"type":"string","minLength":2,"maxLength":2,"description":"País","x-description-en":"Country","example":"AR"}
        phone: {"type":"string","maxLength":24,"description":"Teléfono","x-description-en":"Phone","example":"+54 11 5555-1234"}
        street_name: {"type":"string","maxLength":120,"description":"Calle","x-description-en":"Street name","example":"Av. Corrientes"}
        street_number: {"type":"string","maxLength":10,"description":"Número de calle","x-description-en":"Street number","example":"1234"}
    CustomerUpdateBody:
      type: object
      required: ["email","full_name"]
      properties:
        external_reference: {"type":"string","maxLength":120,"description":"Referencia externa","x-description-en":"External reference","example":"cli-1043"}
        email: {"type":"string","format":"email","maxLength":254,"description":"Correo","x-description-en":"Email","example":"ana@example.com"}
        full_name: {"type":"string","minLength":1,"maxLength":120,"description":"Nombre completo","x-description-en":"Full name","example":"Ana Pérez"}
        document: {"type":"string","maxLength":32,"description":"Documento","x-description-en":"Document","example":"12345678"}
        country: {"type":"string","minLength":2,"maxLength":2,"description":"País","x-description-en":"Country","example":"AR"}
        phone: {"type":"string","maxLength":24,"description":"Teléfono","x-description-en":"Phone","example":"+54 11 5555-1234"}
        street_name: {"type":"string","maxLength":120,"description":"Calle","x-description-en":"Street name","example":"Av. Corrientes"}
        street_number: {"type":"string","maxLength":10,"description":"Número de calle","x-description-en":"Street number","example":"1234"}
    CustomerView:
      type: object
      required: ["uuid","external_reference","email","full_name","document","country","created_at","updated_at"]
      properties:
        uuid: {"type":"string","format":"uuid","description":"Cliente","x-description-en":"Customer","example":"0b8f3c1e-7a2d-4f5b-8e9c-1d2a3b4c5d6e"}
        external_reference: {"type":["string","null"],"maxLength":120,"description":"Referencia externa","x-description-en":"External reference","example":"cli-1043"}
        email: {"type":"string","maxLength":254,"description":"Correo","x-description-en":"Email","example":"ana@example.com"}
        full_name: {"type":"string","maxLength":120,"description":"Nombre completo","x-description-en":"Full name","example":"Ana Pérez"}
        document: {"type":["string","null"],"maxLength":32,"description":"Documento","x-description-en":"Document","example":"12345678"}
        country: {"type":["string","null"],"minLength":2,"maxLength":2,"description":"País","x-description-en":"Country","example":"AR"}
        created_at: {"type":"string","format":"date-time","description":"Creado el","x-description-en":"Created at","example":"2026-10-21T03:30:00.000Z"}
        updated_at: {"type":"string","format":"date-time","description":"Modificado el","x-description-en":"Updated at","example":"2026-10-21T03:30:00.000Z"}
    EventCartView:
      type: object
      required: ["uuid","title","external_reference","status","version","max_uses","uses_count"]
      properties:
        uuid: {"type":"string","format":"uuid","description":"Cart","x-description-en":"Cart","example":"5a1f0e2d-3c4b-4a59-8e7d-6c5b4a3f2e1d"}
        title: {"type":["string","null"],"maxLength":120,"description":"Título","x-description-en":"Title","example":"Pedido 1043"}
        external_reference: {"type":["string","null"],"maxLength":120,"description":"Referencia externa","x-description-en":"External reference","example":"order-1043"}
        status: {"type":"string","maxLength":16,"description":"Estado","x-description-en":"Status","example":"ACTIVE"}
        version: {"type":"integer","minimum":1,"description":"Versión","x-description-en":"Version","example":1}
        max_uses: {"type":["integer","null"],"minimum":1,"description":"Máximo de usos","x-description-en":"Maximum uses","example":1}
        uses_count: {"type":"integer","minimum":0,"description":"Usos","x-description-en":"Uses","example":1}
    EventLineView:
      type: object
      required: ["sku","name","quantity","currency","unit_amount","line_amount","charge_amount"]
      properties:
        sku: {"type":["string","null"],"maxLength":64,"description":"SKU","x-description-en":"SKU","example":"HAR-001"}
        name: {"type":"string","maxLength":80,"description":"Nombre","x-description-en":"Name","example":"Harina de maíz"}
        quantity: {"type":"integer","minimum":1,"maximum":999,"description":"Cantidad","x-description-en":"Quantity","example":2}
        currency: {"type":"string","minLength":3,"maxLength":3,"description":"Moneda","x-description-en":"Currency","example":"USD"}
        unit_amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Precio unitario","x-description-en":"Unit price","example":"25.0000"}
        line_amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Importe de la línea","x-description-en":"Line amount","example":"50.0000"}
        charge_amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Importe cobrado","x-description-en":"Charged amount","example":"1825.0000"}
    EventPaymentView:
      type: object
      required: ["uuid","provider","source","bank_reference","operation_date","amount","original_currency","original_amount"]
      properties:
        uuid: {"type":"string","format":"uuid","description":"Pago","x-description-en":"Payment","example":"5a1f0e2d-3c4b-4a59-8e7d-6c5b4a3f2e1d"}
        provider: {"type":"string","maxLength":24,"enum":["BANCARIBE_P2P","BDV_BIOPAGO","BDV_P2P","BINANCE_PAY","BINANCE_PERSONAL","BNC_P2P","BT_P2P","BVC_P2P","MERCADO_PAGO","MERCANTIL_P2P","PAYPAL","R4_P2P","SPIDI","STRIPE","WAYU_PAY"],"description":"Proveedor","x-description-en":"Provider","example":"BDV_P2P"}
        source: {"type":"string","maxLength":16,"description":"Origen","x-description-en":"Source","example":"VERIFIED"}
        bank_reference: {"type":"string","maxLength":64,"description":"Referencia","x-description-en":"Reference","example":"001234567890"}
        operation_date: {"type":"string","minLength":10,"maxLength":10,"description":"Fecha de la operación","x-description-en":"Operation date","example":"2026-11-06"}
        amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Monto en bolívares","x-description-en":"Amount in bolivars","example":"1825.0000"}
        original_currency: {"type":"string","minLength":3,"maxLength":3,"description":"Moneda original","x-description-en":"Original currency","example":"USD"}
        original_amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Monto original","x-description-en":"Original amount","example":"50.0000"}
    EventSessionView:
      type: object
      required: ["uuid","cart_version","status","method","connection_uuid","currency","original_amount","charge_currency","amount","rate","rate_value_date","paid_after_cart_closed","created_at"]
      properties:
        uuid: {"type":"string","format":"uuid","description":"Sesión","x-description-en":"Session","example":"5a1f0e2d-3c4b-4a59-8e7d-6c5b4a3f2e1d"}
        cart_version: {"type":"integer","minimum":1,"description":"Versión del cart","x-description-en":"Cart version","example":1}
        status: {"type":"string","enum":["OPEN","PAID","FAILED","EXPIRED"],"description":"Estado","x-description-en":"Status","example":"PAID"}
        method: {"type":"string","maxLength":24,"description":"Método","x-description-en":"Method","example":"REDIRECT"}
        connection_uuid: {"type":"string","format":"uuid","description":"Conexión","x-description-en":"Connection","example":"0b6f3c1e-9a2d-4c5b-8e7f-1a2b3c4d5e6f"}
        currency: {"type":"string","minLength":3,"maxLength":3,"description":"Moneda de las líneas","x-description-en":"Lines currency","example":"USD"}
        original_amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Monto original","x-description-en":"Original amount","example":"50.0000"}
        charge_currency: {"type":"string","minLength":3,"maxLength":3,"description":"Moneda de cobro","x-description-en":"Charge currency","example":"VES"}
        amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Monto","x-description-en":"Amount","example":"1825.0000"}
        rate: {"type":["string","null"],"maxLength":24,"description":"Tasa","x-description-en":"Rate","example":"36.50000000"}
        rate_value_date: {"type":["string","null"],"minLength":10,"maxLength":10,"description":"Fecha de la tasa","x-description-en":"Rate date","example":"2026-11-06"}
        paid_after_cart_closed: {"type":"boolean","description":"Pagada con el cart cerrado","x-description-en":"Paid after the cart closed","example":false}
        created_at: {"type":"string","format":"date-time","description":"Creada el","x-description-en":"Created at","example":"2026-11-06T14:00:00Z"}
    FieldSpecView:
      type: object
      required: ["name","kind","required","min_len","max_len","default"]
      properties:
        name: {"type":"string","maxLength":64,"description":"Campo","x-description-en":"Field","example":"consumer_key"}
        kind: {"type":"string","maxLength":16,"description":"Tipo","x-description-en":"Kind","example":"TEXT"}
        required: {"type":"boolean","description":"Obligatorio","x-description-en":"Required","example":true}
        min_len: {"type":"integer","minimum":0,"maximum":4096,"description":"Largo mínimo","x-description-en":"Minimum length","example":6}
        max_len: {"type":"integer","minimum":0,"maximum":4096,"description":"Largo máximo","x-description-en":"Maximum length","example":64}
        default: {"type":"object","additionalProperties":{"type":"string"},"description":"Valor por ambiente","x-description-en":"Value per environment"}
    ImageView:
      type: object
      required: ["key","url"]
      properties:
        key: {"type":"string","maxLength":255,"description":"Clave","x-description-en":"Key","example":"cash/carts/5a1f0e2d/ab12.jpg"}
        url: {"type":"string","maxLength":500,"description":"URL","x-description-en":"URL","example":"https://example.com/cash/carts/5a1f0e2d/ab12.jpg"}
    ImmediateDebitAccreditedEventData:
      type: object
      required: ["immediate_debit","payment"]
      properties:
        immediate_debit: {"allOf":[{"$ref":"#/components/schemas/ImmediateDebitView"}],"description":"Débito inmediato","x-description-en":"Immediate debit"}
        payment: {"allOf":[{"$ref":"#/components/schemas/PaymentView"}],"description":"Pago","x-description-en":"Payment"}
    ImmediateDebitConfirmBody:
      type: object
      required: ["otp"]
      properties:
        otp: {"type":"string","pattern":"^[0-9]+$","minLength":4,"maxLength":12,"description":"Clave del débito","x-description-en":"Debit code","example":"12345678"}
    ImmediateDebitCreateBody:
      type: object
      required: ["connection_uuid","amount","concept","payer"]
      properties:
        connection_uuid: {"type":"string","format":"uuid","description":"Conexión","x-description-en":"Connection","example":"6f1c2a9e-3b7d-4e8a-9c21-5d4e3f2a1b0c"}
        amount: {"type":"string","maxLength":20,"description":"Monto","x-description-en":"Amount","example":"1250.00"}
        concept: {"type":"string","minLength":1,"maxLength":100,"description":"Concepto","x-description-en":"Concept","example":"Factura 000123"}
        payer: {"allOf":[{"$ref":"#/components/schemas/ImmediateDebitPayerBody"}],"description":"Pagador","x-description-en":"Payer"}
    ImmediateDebitEventData:
      type: object
      required: ["immediate_debit"]
      properties:
        immediate_debit: {"allOf":[{"$ref":"#/components/schemas/ImmediateDebitView"}],"description":"Débito inmediato","x-description-en":"Immediate debit"}
    ImmediateDebitPayerBody:
      type: object
      required: ["document_type","document_number","bank_code","phone"]
      properties:
        document_type: {"type":"string","enum":["V","E","J","G","P"],"description":"Tipo de documento","x-description-en":"Document type","example":"V"}
        document_number: {"type":"string","pattern":"^[A-Za-z0-9]+$","minLength":1,"maxLength":20,"description":"Número de documento","x-description-en":"Document number","example":"12345678"}
        bank_code: {"type":"string","pattern":"^[0-9]+$","minLength":4,"maxLength":4,"description":"Banco del pagador","x-description-en":"Payer bank","example":"0102"}
        phone: {"type":"string","maxLength":16,"description":"Teléfono del pagador","x-description-en":"Payer phone","example":"04141234567"}
        first_name: {"type":"string","minLength":1,"maxLength":30,"description":"Primer nombre del pagador","x-description-en":"Payer first name","example":"Juan"}
        last_name: {"type":"string","minLength":1,"maxLength":30,"description":"Primer apellido del pagador","x-description-en":"Payer last name","example":"Pérez"}
    ImmediateDebitPayerView:
      type: object
      required: ["document_type","document_number","bank_code","phone","name","name_source"]
      properties:
        document_type: {"type":"string","enum":["V","E","J","G","P"],"description":"Tipo de documento","x-description-en":"Document type","example":"V"}
        document_number: {"type":"string","maxLength":20,"description":"Número de documento","x-description-en":"Document number","example":"12345678"}
        bank_code: {"type":"string","pattern":"^[0-9]+$","minLength":4,"maxLength":4,"description":"Banco del pagador","x-description-en":"Payer bank","example":"0102"}
        phone: {"type":"string","pattern":"^[0-9]+$","minLength":11,"maxLength":11,"description":"Teléfono del pagador","x-description-en":"Payer phone","example":"04141234567"}
        name: {"type":"string","maxLength":60,"description":"Nombre enviado al banco","x-description-en":"Name sent to the bank","example":"Juan Perez"}
        name_source: {"type":"string","enum":["INTEGRATOR","CEDULA_VE","UNKNOWN"],"description":"Origen del nombre","x-description-en":"Name source","example":"INTEGRATOR"}
    ImmediateDebitSpecView:
      type: object
      required: ["min_amount","max_amount","code_min_length","code_max_length","name_max_length","concept_max_length","otp_validity_seconds","otp_max_sends","status_query","required_fields"]
      properties:
        min_amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Monto mínimo","x-description-en":"Minimum amount","example":"0.0100"}
        max_amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Monto máximo","x-description-en":"Maximum amount","example":"1000000.0000"}
        code_min_length: {"type":"integer","minimum":0,"maximum":64,"description":"Largo mínimo del código","x-description-en":"Minimum code length","example":6}
        code_max_length: {"type":"integer","minimum":0,"maximum":64,"description":"Largo máximo del código","x-description-en":"Maximum code length","example":8}
        name_max_length: {"type":"integer","minimum":0,"maximum":255,"description":"Largo máximo del nombre","x-description-en":"Maximum name length","example":60}
        concept_max_length: {"type":"integer","minimum":0,"maximum":255,"description":"Largo máximo del concepto","x-description-en":"Maximum concept length","example":30}
        otp_validity_seconds: {"type":"integer","minimum":0,"maximum":86400,"description":"Vigencia del código en segundos","x-description-en":"Code validity in seconds","example":600}
        otp_max_sends: {"type":"integer","minimum":1,"maximum":3,"description":"Claves que el banco puede enviar por débito","x-description-en":"Codes the bank can send per debit","example":3}
        status_query: {"type":"boolean","description":"Consulta el estado en el banco","x-description-en":"Queries status at the bank","example":true}
        required_fields: {"type":"array","maxItems":24,"items":{"type":"string","maxLength":64},"description":"Campos requeridos de la conexión","x-description-en":"Required connection fields","example":["client_id"]}
    ImmediateDebitView:
      type: object
      required: ["uuid","connection_uuid","provider","environment","status","rejection_reason","last_attempt_reason","amount","concept","payer","bank_reference","otp_expires_at","otp_sends_remaining","accredited_at","payment_uuid","created_at","updated_at"]
      properties:
        uuid: {"type":"string","format":"uuid","description":"Débito inmediato","x-description-en":"Immediate debit","example":"0b8f3c1e-7a2d-4f5b-8e9c-1d2a3b4c5d6e"}
        connection_uuid: {"type":"string","format":"uuid","description":"Conexión","x-description-en":"Connection","example":"6f1c2a9e-3b7d-4e8a-9c21-5d4e3f2a1b0c"}
        provider: {"type":"string","maxLength":24,"enum":["BANCARIBE_P2P","BNC_P2P","BVC_P2P","R4_P2P"],"description":"Proveedor","x-description-en":"Provider","example":"R4_P2P"}
        environment: {"type":"string","enum":["SANDBOX","PRODUCTION"],"description":"Ambiente","x-description-en":"Environment","example":"PRODUCTION"}
        status: {"type":"string","enum":["OTP_SENT","PROCESSING","ACCREDITED","REJECTED","EXPIRED"],"description":"Estado","x-description-en":"Status","example":"OTP_SENT"}
        rejection_reason: {"type":["string","null"],"maxLength":40,"description":"Motivo del rechazo","x-description-en":"Rejection reason"}
        last_attempt_reason: {"type":["string","null"],"maxLength":40,"description":"Motivo del último intento","x-description-en":"Last attempt reason"}
        amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Monto en bolívares","x-description-en":"Amount in bolivars","example":"1250.0000"}
        concept: {"type":"string","maxLength":100,"description":"Concepto","x-description-en":"Concept","example":"Factura 000123"}
        payer: {"allOf":[{"$ref":"#/components/schemas/ImmediateDebitPayerView"}],"description":"Pagador","x-description-en":"Payer"}
        bank_reference: {"type":["string","null"],"maxLength":64,"description":"Referencia del banco","x-description-en":"Bank reference"}
        otp_expires_at: {"type":["string","null"],"format":"date-time","description":"La clave vence el","x-description-en":"Code expires at","example":"2026-10-21T03:40:00.000Z"}
        otp_sends_remaining: {"type":"integer","minimum":0,"maximum":2,"description":"Claves nuevas que aún puede enviar el banco","x-description-en":"New codes the bank can still send","example":2}
        accredited_at: {"type":["string","null"],"format":"date-time","description":"Acreditado el","x-description-en":"Accredited at"}
        payment_uuid: {"type":["string","null"],"format":"uuid","description":"Pago","x-description-en":"Payment"}
        checkout_cart_uuid: {"type":"string","format":"uuid","description":"Checkout cart","x-description-en":"Checkout cart","example":"6b2f6c1e-3a7d-4e8a-9c21-5d4e3f2a1b0c"}
        created_at: {"type":"string","format":"date-time","description":"Creado el","x-description-en":"Created at","example":"2026-10-21T03:30:00.000Z"}
        updated_at: {"type":"string","format":"date-time","description":"Modificado el","x-description-en":"Updated at","example":"2026-10-21T03:30:00.000Z"}
    InboundCredentialView:
      type: object
      required: ["url","key"]
      properties:
        url: {"type":"string","maxLength":512,"description":"URL a registrar en el banco","x-description-en":"URL to register at the bank","example":"https://api.cachicamo.cash/v1/webhooks/providers/bancaribe/0b6f3c1e-9a2d-4c5b-8e7f-1a2b3c4d5e6f"}
        key: {"type":"string","maxLength":60,"description":"Llave que envía el banco","x-description-en":"Key sent by the bank","example":"qJ3x9P0m2VtYhK8bN5rD7wEaLcZ1uSgF"}
    IntervalBody:
      type: object
      required: ["unit","count"]
      properties:
        unit: {"type":"string","enum":["DAY","WEEK","MONTH","YEAR"],"description":"Unidad","x-description-en":"Unit","example":"MONTH"}
        count: {"type":"integer","minimum":1,"maximum":365,"description":"Cantidad","x-description-en":"Count","example":1}
    ItemBody:
      type: object
      required: ["quantity"]
      properties:
        product_uuid: {"type":"string","format":"uuid","description":"Producto del catálogo que se vende en la línea. Se excluye con custom: se envía uno u otro. Debe ser un producto de la cuenta; uno inexistente responde checkout_line_invalid, y uno borrado sólo se admite si ya estaba en el cart al editar. El precio es el vigente del producto, salvo que se pise con price.","x-description-en":"Catalog product sold in the line. Mutually exclusive with custom: send one or the other. It must be a product of the account; an unknown one answers checkout_line_invalid, and a deleted one is only accepted if it was already in the cart when editing. The price is the current price of the product unless overridden with price.","example":"5a1f0e2d-3c4b-4a59-8e7d-6c5b4a3f2e1d"}
        quantity: {"type":"integer","minimum":1,"maximum":999,"description":"Unidades de la línea, mínimo 1. Una línea de precio abierto sólo admite cantidad 1. El importe de la línea es el precio unitario por la cantidad.","x-description-en":"Units of the line, minimum 1. An open-price line only admits quantity 1. The line amount is the unit price times the quantity.","example":2}
        price: {"oneOf":[{"$ref":"#/components/schemas/PriceBody"},{"type":"null"}],"description":"Pisa el precio del producto sólo en este cart: monto fijo y moneda, aunque el producto sea de precio abierto; el producto no cambia y el pisado queda en la bitácora. Sólo aplica a líneas de catálogo (con custom responde checkout_line_invalid). Omitido: rige el precio vigente del producto y el cart lo sigue si cambia.","x-description-en":"Overrides the product price only in this cart: fixed amount and currency, even when the product is open-price; the product does not change and the override is audited. It applies only to catalog lines (with custom it answers checkout_line_invalid). Omitted: the current product price applies and the cart follows it if it changes."}
        custom: {"oneOf":[{"$ref":"#/components/schemas/CustomLineBody"},{"type":"null"}],"description":"Línea propia que vive y muere con el cart, para cobrar algo que no está en el catálogo (envío, propina, servicio). Se excluye con product_uuid. Lleva nombre y precio, y opcionalmente SKU, descripción y foto.","x-description-en":"Own line that lives and dies with the cart, to charge something outside the catalog (shipping, tip, service). Mutually exclusive with product_uuid. It carries a name and a price, and optionally SKU, description and photo."}
    ItemView:
      type: object
      required: ["uuid","product_uuid","custom","sku","name","description","image_url","quantity","price_mode","currency","amount","open_min","open_max","price_overridden","product_inactive","product_deleted"]
      properties:
        uuid: {"type":"string","format":"uuid","description":"Línea","x-description-en":"Line","example":"5a1f0e2d-3c4b-4a59-8e7d-6c5b4a3f2e1d"}
        product_uuid: {"type":["string","null"],"format":"uuid","description":"Producto","x-description-en":"Product","example":"5a1f0e2d-3c4b-4a59-8e7d-6c5b4a3f2e1d"}
        custom: {"type":"boolean","description":"Línea propia","x-description-en":"Custom line","example":false}
        sku: {"type":["string","null"],"maxLength":64,"description":"SKU","x-description-en":"SKU","example":"HAR-001"}
        name: {"type":"string","maxLength":80,"description":"Nombre","x-description-en":"Name","example":"Harina de maíz"}
        description: {"type":["string","null"],"maxLength":255,"description":"Descripción","x-description-en":"Description","example":"Paquete de 1 kg"}
        image_url: {"type":["string","null"],"maxLength":500,"description":"Foto","x-description-en":"Photo","example":"https://example.com/cash/carts/5a1f0e2d/ab12.jpg"}
        quantity: {"type":"integer","minimum":1,"maximum":999,"description":"Cantidad","x-description-en":"Quantity","example":2}
        price_mode: {"type":"string","enum":["FIXED","OPEN"],"description":"Tipo de precio","x-description-en":"Price type","example":"FIXED"}
        currency: {"type":"string","minLength":3,"maxLength":3,"description":"Moneda","x-description-en":"Currency","example":"USD"}
        amount: {"oneOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}],"description":"Monto","x-description-en":"Amount","example":"25.0000"}
        open_min: {"oneOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}],"description":"Mínimo del precio abierto; null cuando la línea es fija o voluntaria sin mínimo.","x-description-en":"Minimum of the open price; null when the line is fixed or voluntary with no minimum.","example":"1.0000"}
        open_max: {"oneOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}],"description":"Máximo","x-description-en":"Maximum","example":"100.0000"}
        price_overridden: {"type":"boolean","description":"true si la línea de catálogo lleva un precio pisado en este cart.","x-description-en":"true if the catalog line carries a price overridden in this cart.","example":false}
        product_inactive: {"type":"boolean","description":"true si el producto de la línea está inactivo; deja el cart UNAVAILABLE con PRODUCT_INACTIVE.","x-description-en":"true if the product of the line is inactive; it leaves the cart UNAVAILABLE with PRODUCT_INACTIVE.","example":false}
        product_deleted: {"type":"boolean","description":"true si el producto fue borrado; la línea se conserva en el cart y sigue vendiéndose, pero no se puede agregar a otro cart.","x-description-en":"true if the product was deleted; the line stays in the cart and keeps selling, but it cannot be added to another cart.","example":false}
    MerchantSubscriptionView:
      type: object
      required: ["uuid","connection_uuid","customer_uuid","saved_method_uuid","engine","status","title","currency","amount","pending_amount","pending_amount_effective_on","setup_amount","interval","repetitions","charges_done","trial_days","next_charge_on","external_reference","authorization_url","manage_url","cancel_page_url","canceled_at","cancel_reason","cancel_code","created_at","updated_at"]
      properties:
        uuid: {"type":"string","format":"uuid","description":"Suscripción","x-description-en":"Subscription","example":"0b8f3c1e-7a2d-4f5b-8e9c-1d2a3b4c5d6e"}
        connection_uuid: {"type":"string","format":"uuid","description":"Conexión","x-description-en":"Connection","example":"6f1c2a9e-3b7d-4e8a-9c21-5d4e3f2a1b0c"}
        customer_uuid: {"type":"string","format":"uuid","description":"Cliente","x-description-en":"Customer","example":"6f1c2a9e-3b7d-4e8a-9c21-5d4e3f2a1b0c"}
        saved_method_uuid: {"type":["string","null"],"format":"uuid","description":"Método guardado","x-description-en":"Saved method","example":"6f1c2a9e-3b7d-4e8a-9c21-5d4e3f2a1b0c"}
        engine: {"type":"string","enum":["CASH_ENGINE","PROVIDER_ENGINE"],"description":"Motor","x-description-en":"Engine","example":"CASH_ENGINE"}
        status: {"type":"string","enum":["PENDING","TRIALING","ACTIVE","PAST_DUE","PAUSED","UNPAID","CANCELED"],"description":"Estado","x-description-en":"Status","example":"ACTIVE"}
        title: {"type":"string","maxLength":120,"description":"Título","x-description-en":"Title","example":"Plan mensual"}
        currency: {"type":"string","minLength":3,"maxLength":3,"description":"Moneda","x-description-en":"Currency","example":"USD"}
        amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Monto","x-description-en":"Amount","example":"19.9000"}
        pending_amount: {"oneOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}],"description":"Monto que rige después","x-description-en":"Amount that applies later"}
        pending_amount_effective_on: {"type":["string","null"],"format":"date","description":"Fecha desde la que rige el monto nuevo","x-description-en":"Date the new amount applies from"}
        setup_amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Cobro inicial","x-description-en":"Setup amount","example":"0.0000"}
        interval: {"allOf":[{"$ref":"#/components/schemas/IntervalBody"}],"description":"Periodicidad","x-description-en":"Interval"}
        repetitions: {"type":["integer","null"],"minimum":1,"maximum":1000,"description":"Cobros que dura","x-description-en":"Number of charges","example":12}
        charges_done: {"type":"integer","minimum":0,"maximum":100000,"description":"Cobros hechos","x-description-en":"Charges done","example":3}
        trial_days: {"type":"integer","minimum":0,"maximum":365,"description":"Días de prueba","x-description-en":"Trial days","example":0}
        next_charge_on: {"type":["string","null"],"format":"date","description":"Próximo cobro","x-description-en":"Next charge","example":"2026-11-30"}
        external_reference: {"type":["string","null"],"maxLength":120,"description":"Referencia externa","x-description-en":"External reference","example":"sub-77"}
        authorization_url: {"type":["string","null"],"maxLength":400,"description":"Enlace de autorización del comprador","x-description-en":"Buyer authorization link","example":"https://example.com/subscribe/0123456789abcdef0123456789abcdef"}
        manage_url: {"type":["string","null"],"maxLength":400,"description":"Enlace de gestión y baja del comprador","x-description-en":"Buyer management and cancellation link","example":"https://example.com/manage/0123456789abcdef0123456789abcdef"}
        cancel_page_url: {"type":["string","null"],"maxLength":400,"description":"Página pública de baja del comercio","x-description-en":"Merchant public cancellation page","example":"https://example.com/cancel/6f1c2a9e-3b7d-4e8a-9c21-5d4e3f2a1b0c/0123456789abcdef0123456789abcdef"}
        canceled_at: {"type":["string","null"],"format":"date-time","description":"Cancelada el","x-description-en":"Canceled at"}
        cancel_reason: {"type":["string","null"],"maxLength":24,"description":"Motivo de la baja","x-description-en":"Cancel reason"}
        cancel_code: {"type":["string","null"],"maxLength":16,"description":"Código de gestión de la baja","x-description-en":"Cancellation code"}
        created_at: {"type":"string","format":"date-time","description":"Creada el","x-description-en":"Created at","example":"2026-10-21T03:30:00.000Z"}
        updated_at: {"type":"string","format":"date-time","description":"Modificada el","x-description-en":"Updated at","example":"2026-10-21T03:30:00.000Z"}
    NotificationAttemptView:
      type: object
      required: ["attempt_number","attempted_at","status_code","error"]
      properties:
        attempt_number: {"type":"integer","minimum":1,"maximum":5,"description":"Número de intento","x-description-en":"Attempt number","example":1}
        attempted_at: {"type":"string","format":"date-time","description":"Intentado el","x-description-en":"Attempted at","example":"2026-10-20T15:04:06Z"}
        status_code: {"type":["integer","null"],"minimum":100,"maximum":599,"description":"Código de respuesta","x-description-en":"Response status","example":200}
        error: {"type":["string","null"],"enum":["timeout","connection_refused","dns_error","tls_error","http_error","other",null],"description":"Error resumido","x-description-en":"Error summary"}
    NotificationDetailView:
      type: object
      required: ["message_id","connection_uuid","event_id","event_type","object_type","object_uuid","destination_url","is_test","resent_from","delivery_status","delivery_attempts","delivery_checked_at","last_error","enqueued_at","created_at","attempts_available","attempts","resends_left"]
      properties:
        message_id: {"type":"string","format":"uuid","description":"Mensaje","x-description-en":"Message","example":"6f1d2c3b-4a59-4e7d-8c6b-5a4f3e2d1c0b"}
        connection_uuid: {"type":"string","format":"uuid","description":"Conexión","x-description-en":"Connection","example":"0b6f3c1e-9a2d-4c5b-8e7f-1a2b3c4d5e6f"}
        event_id: {"type":"string","format":"uuid","description":"Evento","x-description-en":"Event","example":"c7a8f1e2-0b3d-4e5f-8a9b-0c1d2e3f4a5b"}
        event_type: {"type":"string","maxLength":48,"description":"Tipo de evento","x-description-en":"Event type","example":"payment.accepted"}
        object_type: {"type":"string","maxLength":32,"description":"Tipo de objeto","x-description-en":"Object type","example":"PAYMENT"}
        object_uuid: {"type":"string","format":"uuid","description":"Objeto","x-description-en":"Object","example":"9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a"}
        destination_url: {"type":["string","null"],"maxLength":500,"description":"Destino","x-description-en":"Destination","example":"https://example.com/webhooks/cash"}
        is_test: {"type":"boolean","description":"Es una prueba","x-description-en":"Is a test","example":false}
        resent_from: {"type":["string","null"],"format":"uuid","description":"Reenvío de","x-description-en":"Resent from"}
        delivery_status: {"type":"string","enum":["PENDING","QUEUED","RETRYING","SENT","FAILED","NOT_ENQUEUED"],"description":"Estado de entrega","x-description-en":"Delivery status","example":"SENT"}
        delivery_attempts: {"type":"integer","minimum":0,"maximum":5,"description":"Intentos de entrega","x-description-en":"Delivery attempts","example":1}
        delivery_checked_at: {"type":["string","null"],"format":"date-time","description":"Estado consultado el","x-description-en":"Status checked at","example":"2026-10-20T15:05:00Z"}
        last_error: {"type":["string","null"],"enum":["destination_removed","connection_archived","enqueue_rejected","enqueue_expired",null],"description":"Último error","x-description-en":"Last error"}
        enqueued_at: {"type":["string","null"],"format":"date-time","description":"Puesto en cola el","x-description-en":"Enqueued at","example":"2026-10-20T15:04:05Z"}
        created_at: {"type":"string","format":"date-time","description":"Creada el","x-description-en":"Created at","example":"2026-10-20T15:04:00.512Z"}
        attempts_available: {"type":"boolean","description":"Intentos disponibles","x-description-en":"Attempts available","example":true}
        attempts: {"type":"array","maxItems":5,"items":{"$ref":"#/components/schemas/NotificationAttemptView"},"description":"Intentos","x-description-en":"Attempts","example":[]}
        resends_left: {"type":"integer","minimum":0,"description":"Reenvíos restantes","x-description-en":"Resends left","example":4}
    NotificationMessageResponse:
      type: object
      required: ["message_id"]
      properties:
        message_id: {"type":"string","format":"uuid","description":"Mensaje","x-description-en":"Message","example":"6f1d2c3b-4a59-4e7d-8c6b-5a4f3e2d1c0b"}
    NotificationSecretRotateResponse:
      type: object
      required: ["notification_secret","rotated_at"]
      properties:
        notification_secret: {"type":"string","maxLength":128,"description":"Secreto de firma de notificaciones","x-description-en":"Notification signing secret","example":"whsec_Zm9vYmFyYmF6..."}
        rotated_at: {"type":"string","format":"date-time","description":"Rotado el","x-description-en":"Rotated at","example":"2026-11-05T14:10:02Z"}
    NotificationTestEventData:
      type: object
      required: ["connection_uuid","message"]
      properties:
        connection_uuid: {"type":"string","format":"uuid","description":"Conexión","x-description-en":"Connection","example":"0b6f3c1e-9a2d-4c5b-8e7f-1a2b3c4d5e6f"}
        message: {"type":"string","maxLength":64,"description":"Mensaje","x-description-en":"Message","example":"Prueba de CachicamoCash"}
    NotificationView:
      type: object
      required: ["message_id","connection_uuid","event_id","event_type","object_type","object_uuid","destination_url","is_test","resent_from","delivery_status","delivery_attempts","delivery_checked_at","last_error","enqueued_at","created_at"]
      properties:
        message_id: {"type":"string","format":"uuid","description":"Mensaje","x-description-en":"Message","example":"6f1d2c3b-4a59-4e7d-8c6b-5a4f3e2d1c0b"}
        connection_uuid: {"type":"string","format":"uuid","description":"Conexión","x-description-en":"Connection","example":"0b6f3c1e-9a2d-4c5b-8e7f-1a2b3c4d5e6f"}
        event_id: {"type":"string","format":"uuid","description":"Evento","x-description-en":"Event","example":"c7a8f1e2-0b3d-4e5f-8a9b-0c1d2e3f4a5b"}
        event_type: {"type":"string","maxLength":48,"description":"Tipo de evento","x-description-en":"Event type","example":"payment.accepted"}
        object_type: {"type":"string","maxLength":32,"description":"Tipo de objeto","x-description-en":"Object type","example":"PAYMENT"}
        object_uuid: {"type":"string","format":"uuid","description":"Objeto","x-description-en":"Object","example":"9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a"}
        destination_url: {"type":["string","null"],"maxLength":500,"description":"Destino","x-description-en":"Destination","example":"https://example.com/webhooks/cash"}
        is_test: {"type":"boolean","description":"Es una prueba","x-description-en":"Is a test","example":false}
        resent_from: {"type":["string","null"],"format":"uuid","description":"Reenvío de","x-description-en":"Resent from"}
        delivery_status: {"type":"string","enum":["PENDING","QUEUED","RETRYING","SENT","FAILED","NOT_ENQUEUED"],"description":"Estado de entrega","x-description-en":"Delivery status","example":"SENT"}
        delivery_attempts: {"type":"integer","minimum":0,"maximum":5,"description":"Intentos de entrega","x-description-en":"Delivery attempts","example":1}
        delivery_checked_at: {"type":["string","null"],"format":"date-time","description":"Estado consultado el","x-description-en":"Status checked at","example":"2026-10-20T15:05:00Z"}
        last_error: {"type":["string","null"],"enum":["destination_removed","connection_archived","enqueue_rejected","enqueue_expired",null],"description":"Último error","x-description-en":"Last error"}
        enqueued_at: {"type":["string","null"],"format":"date-time","description":"Puesto en cola el","x-description-en":"Enqueued at","example":"2026-10-20T15:04:05Z"}
        created_at: {"type":"string","format":"date-time","description":"Creada el","x-description-en":"Created at","example":"2026-10-20T15:04:00.512Z"}
    OperatorView:
      type: object
      required: ["channel","uuid","name","email","api_key_prefix"]
      properties:
        channel: {"type":"string","enum":["DASHBOARD","API"],"description":"Canal","x-description-en":"Channel","example":"DASHBOARD"}
        uuid: {"type":"string","format":"uuid","description":"Usuario o API key","x-description-en":"User or API key","example":"1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d"}
        name: {"type":"string","maxLength":255,"description":"Nombre","x-description-en":"Name","example":"María Pérez"}
        email: {"type":["string","null"],"format":"email","maxLength":191,"description":"Correo","x-description-en":"Email","example":"maria@tienda.example"}
        api_key_prefix: {"type":["string","null"],"minLength":16,"maxLength":16,"description":"Prefijo de la API key","x-description-en":"API key prefix","example":"ccash_live_Ab3x9"}
    PartnerAccreditedEventData:
      type: object
      required: ["payment_uuid","partner_uuid","amount_credited","bank_commissions","credited_at","spidi_credit_id","bank_reference_id"]
      properties:
        payment_uuid: {"type":["string","null"],"format":"uuid","description":"Pago","x-description-en":"Payment","example":"c7a8f1e2-0b3d-4e5f-8a9b-0c1d2e3f4a5b"}
        checkout_cart_uuid: {"type":"string","format":"uuid","description":"Checkout cart","x-description-en":"Checkout cart","example":"6b2f6c1e-3a7d-4e8a-9c21-5d4e3f2a1b0c"}
        checkout_session_uuid: {"type":"string","format":"uuid","description":"Sesión del checkout","x-description-en":"Checkout session","example":"3f1b9a2c-7d4e-4c8a-9b21-0e5d4c3b2a1f"}
        partner_uuid: {"type":"string","format":"uuid","description":"Partner","x-description-en":"Partner","example":"9d1c2b0a-5e3f-4a7b-8c6d-1e2f3a4b5c6d"}
        amount_credited: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Monto acreditado","x-description-en":"Credited amount","example":"249.8700"}
        bank_commissions: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Comisiones bancarias","x-description-en":"Bank commissions","example":"0.1300"}
        credited_at: {"type":"string","format":"date-time","description":"Acreditado el","x-description-en":"Credited at","example":"2026-10-20T18:23:28Z"}
        spidi_credit_id: {"type":["string","null"],"maxLength":64,"description":"Acreditación en la pasarela","x-description-en":"Gateway credit","example":"36246"}
        bank_reference_id: {"type":["string","null"],"maxLength":128,"description":"Referencia bancaria de la acreditación","x-description-en":"Credit bank reference","example":"00007905|0,04"}
    PaymentCheckView:
      type: object
      required: ["uuid","connection_uuid","provider","reference_input","payment_date","declared_amount","outcome","not_found_reason","answered_from","bank_amount","payment_uuid","operator","created_at"]
      properties:
        uuid: {"type":"string","format":"uuid","description":"Validación","x-description-en":"Verification","example":"7d1e0c7a-5b9f-4a1e-9a40-2f6a4c8b1e01"}
        connection_uuid: {"type":"string","format":"uuid","description":"Conexión","x-description-en":"Connection","example":"0b6f3c1e-9a2d-4c5b-8e7f-1a2b3c4d5e6f"}
        provider: {"type":"string","maxLength":24,"enum":["BANCARIBE_P2P","BDV_BIOPAGO","BDV_P2P","BINANCE_PAY","BINANCE_PERSONAL","BNC_P2P","BT_P2P","BVC_P2P","MERCADO_PAGO","MERCANTIL_P2P","PAYPAL","R4_P2P","SPIDI","STRIPE","WAYU_PAY"],"description":"Proveedor","x-description-en":"Provider","example":"BDV_P2P"}
        reference_input: {"type":"string","maxLength":64,"description":"Referencia tecleada","x-description-en":"Typed reference","example":"567890"}
        payment_date: {"type":"string","format":"date","description":"Fecha del pago","x-description-en":"Payment date","example":"2026-10-20"}
        declared_amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Monto declarado","x-description-en":"Declared amount","example":"1250.0000"}
        outcome: {"type":"string","enum":["FOUND","NOT_FOUND","AMOUNT_MISMATCH","PROVIDER_UNAVAILABLE","PROVIDER_REJECTED","PLAN_QUOTA_REACHED"],"description":"Resultado","x-description-en":"Outcome","example":"FOUND"}
        not_found_reason: {"type":["string","null"],"maxLength":40,"description":"Motivo","x-description-en":"Reason"}
        answered_from: {"type":["string","null"],"enum":["STORED","PROVIDER",null],"description":"Origen de la respuesta","x-description-en":"Answer source","example":"PROVIDER"}
        bank_amount: {"oneOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}],"description":"Monto del banco","x-description-en":"Bank amount","example":"1250.0000"}
        payment_uuid: {"type":["string","null"],"format":"uuid","description":"Pago","x-description-en":"Payment","example":"c7a8f1e2-0b3d-4e5f-8a9b-0c1d2e3f4a5b"}
        operator: {"allOf":[{"$ref":"#/components/schemas/OperatorView"}],"description":"Operador","x-description-en":"Operator"}
        created_at: {"type":"string","format":"date-time","description":"Creada el","x-description-en":"Created at","example":"2026-10-20T14:10:02Z"}
    PaymentEventData:
      type: object
      required: ["payment","reconciliation"]
      properties:
        payment: {"oneOf":[{"$ref":"#/components/schemas/PaymentView"},{"type":"null"}]}
        reconciliation: {"oneOf":[{"$ref":"#/components/schemas/ReconciliationView"},{"type":"null"}]}
    PaymentLinkAssetRejectedEventData:
      type: object
      required: ["payment_link","received_currency","received_amount"]
      properties:
        payment_link: {"allOf":[{"$ref":"#/components/schemas/PaymentLinkEventView"}],"description":"Link de pago","x-description-en":"Payment link"}
        received_currency: {"type":"string","maxLength":10,"description":"Moneda recibida","x-description-en":"Received currency","example":"BTC"}
        received_amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Monto recibido","x-description-en":"Received amount","example":"0.00012345"}
    PaymentLinkCreateBody:
      type: object
      required: ["connection_uuid","amount","title"]
      properties:
        connection_uuid: {"type":"string","format":"uuid","description":"Conexión","x-description-en":"Connection","example":"0b6f3c1e-9a2d-4c5b-8e7f-1a2b3c4d5e6f"}
        amount: {"type":"string","maxLength":20,"description":"Monto","x-description-en":"Amount","example":"25.00"}
        currency: {"type":"string","enum":["ARS","BOB","BRL","CLP","COP","CRC","CUP","DOP","EUR","GTQ","HNL","MXN","NIO","PAB","PEN","PYG","USD","UYU","VES"],"description":"Moneda","x-description-en":"Currency","example":"USD"}
        title: {"type":"string","minLength":3,"maxLength":80,"description":"Título","x-description-en":"Title","example":"Pedido 1043"}
        description: {"type":"string","maxLength":255,"description":"Descripción","x-description-en":"Description","example":"Dos cajas de harina"}
        identifier: {"type":"string","maxLength":64,"description":"Identificador del cliente","x-description-en":"Customer identifier","example":"V12345678"}
        external_reference: {"type":"string","maxLength":64,"description":"Referencia externa","x-description-en":"External reference","example":"order-1043"}
        return_url: {"type":"string","format":"uri","maxLength":512,"description":"URL de retorno","x-description-en":"Return URL","example":"https://example.com/gracias"}
        payer: {"oneOf":[{"$ref":"#/components/schemas/PaymentLinkPayerBody"},{"type":"null"}],"description":"Pagador","x-description-en":"Payer"}
        split: {"type":["object","null"],"additionalProperties":true,"description":"Reparto del cobro entre el comercio (owner) y sus partners: {owner:{type,value}, partners:[{account:{name,identification,contact_email,contact_phone,bank_code,payment_phone_or_cnta},type,value,observations}]}. type es PERCENT o AMOUNT (monto en la moneda de cobro de la conexión); value omitido o vacío es el resto, y a lo sumo un participante lo deja vacío. Omitido: usa el reparto por defecto de la conexión. null: cobra sin reparto. Sólo en conexiones con supports_split.","x-description-en":"Split of the charge between the merchant (owner) and its partners: {owner:{type,value}, partners:[{account:{name,identification,contact_email,contact_phone,bank_code,payment_phone_or_cnta},type,value,observations}]}. type is PERCENT or AMOUNT (amount in the charge currency of the connection); value omitted or empty is the remainder, and at most one participant leaves it empty. Omitted: uses the default split of the connection. null: charges without split. Only on connections with supports_split."}
    PaymentLinkCreateResponse:
      type: object
      required: ["link","payment_qr"]
      properties:
        link: {"allOf":[{"$ref":"#/components/schemas/PaymentLinkView"}],"description":"Link","x-description-en":"Link"}
        payment_qr: {"type":["string","null"],"maxLength":65536,"description":"QR de pago","x-description-en":"Payment QR","example":"iVBORw0KGgo..."}
    PaymentLinkEventData:
      type: object
      required: ["payment_link"]
      properties:
        payment_link: {"allOf":[{"$ref":"#/components/schemas/PaymentLinkEventView"}],"description":"Link de pago","x-description-en":"Payment link"}
    PaymentLinkEventView:
      type: object
      required: ["uuid","connection_uuid","provider","auth_mode","environment","status","title","description","identifier","external_reference","original_currency","original_amount","amount","rate","rate_value_date","payer","payment_url","public_url","provider_reference","bank_reference","paid_amount","paid_at","expires_at","closed_at","return_url","payment_uuid","refunded_by_provider","operator","created_at"]
      properties:
        uuid: {"type":"string","format":"uuid","description":"Link","x-description-en":"Link","example":"5a1f0e2d-3c4b-4a59-8e7d-6c5b4a3f2e1d"}
        connection_uuid: {"type":"string","format":"uuid","description":"Conexión","x-description-en":"Connection","example":"0b6f3c1e-9a2d-4c5b-8e7f-1a2b3c4d5e6f"}
        provider: {"type":"string","enum":["BDV_BIOPAGO","SPIDI","WAYU_PAY","STRIPE","PAYPAL","MERCADO_PAGO","BINANCE_PAY"],"description":"Pasarela","x-description-en":"Gateway","example":"SPIDI"}
        auth_mode: {"type":["string","null"],"enum":["OWN","ASSOCIATED",null],"description":"Modo de autenticación","x-description-en":"Authentication mode","example":"ASSOCIATED"}
        environment: {"type":"string","enum":["SANDBOX","PRODUCTION"],"description":"Ambiente","x-description-en":"Environment","example":"PRODUCTION"}
        status: {"type":"string","enum":["PENDING","PAID","EXPIRED","REJECTED","CANCELED"],"description":"Estado","x-description-en":"Status","example":"PAID"}
        title: {"type":"string","maxLength":80,"description":"Título","x-description-en":"Title","example":"Pedido 1043"}
        description: {"type":["string","null"],"maxLength":255,"description":"Descripción","x-description-en":"Description","example":"Dos cajas de harina"}
        identifier: {"type":["string","null"],"maxLength":64,"description":"Identificador del cliente","x-description-en":"Customer identifier","example":"V12345678"}
        external_reference: {"type":["string","null"],"maxLength":64,"description":"Referencia externa","x-description-en":"External reference","example":"order-1043"}
        original_currency: {"type":"string","enum":["ARS","BOB","BRL","CLP","COP","CRC","CUP","DOP","EUR","GTQ","HNL","MXN","NIO","PAB","PEN","PYG","USD","UYU","VES"],"description":"Moneda original","x-description-en":"Original currency","example":"USD"}
        original_amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Monto original","x-description-en":"Original amount","example":"25.0000"}
        amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Monto en la moneda de cobro","x-description-en":"Amount in the charge currency","example":"914.5700"}
        charge_currency: {"type":"string","enum":["ARS","BOB","BRL","CLP","COP","CRC","CUP","DOP","EUR","GTQ","HNL","MXN","NIO","PAB","PEN","PYG","USD","UYU","VES"],"description":"Sólo sale cuando no es VES.","x-description-en":"Only present when it is not VES.","example":"USD"}
        rate: {"oneOf":[{"$ref":"#/components/schemas/Rate"},{"type":"null"}],"description":"Tasa","x-description-en":"Rate","example":"36.58290000"}
        rate_value_date: {"type":["string","null"],"format":"date","description":"Día de la tasa","x-description-en":"Rate date","example":"2026-10-20"}
        payer: {"oneOf":[{"$ref":"#/components/schemas/PaymentLinkPayerView"},{"type":"null"}],"description":"Pagador","x-description-en":"Payer"}
        payment_url: {"type":["string","null"],"maxLength":2048,"description":"URL de pago","x-description-en":"Payment URL","example":"https://example.com/s/abc123"}
        public_url: {"type":"string","maxLength":512,"description":"URL pública","x-description-en":"Public URL","example":"https://example.com/pay/5a1f0e2d-3c4b-4a59-8e7d-6c5b4a3f2e1d"}
        provider_reference: {"type":"string","maxLength":128,"description":"Referencia de la pasarela","x-description-en":"Gateway reference","example":"sess_01HZX3"}
        bank_reference: {"type":["string","null"],"maxLength":64,"description":"Referencia del pago","x-description-en":"Payment reference","example":"001234567890"}
        paid_amount: {"oneOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}],"description":"Monto cobrado en la moneda de cobro","x-description-en":"Collected amount in the charge currency","example":"914.5700"}
        paid_at: {"type":["string","null"],"format":"date-time","description":"Pagado el","x-description-en":"Paid at","example":"2026-10-20T15:02:11.204Z"}
        expires_at: {"type":["string","null"],"format":"date-time","description":"Vence el","x-description-en":"Expires at","example":"2026-10-20T21:00:00Z"}
        closed_at: {"type":["string","null"],"format":"date-time","description":"Cerrado el","x-description-en":"Closed at"}
        return_url: {"type":["string","null"],"maxLength":512,"description":"URL de retorno","x-description-en":"Return URL","example":"https://example.com/gracias"}
        payment_uuid: {"type":["string","null"],"format":"uuid","description":"Pago","x-description-en":"Payment","example":"c7a8f1e2-0b3d-4e5f-8a9b-0c1d2e3f4a5b"}
        checkout_cart_uuid: {"type":"string","format":"uuid","description":"Checkout cart","x-description-en":"Checkout cart","example":"6b2f6c1e-3a7d-4e8a-9c21-5d4e3f2a1b0c"}
        refunded_by_provider: {"type":"boolean","description":"Reembolsado por la pasarela","x-description-en":"Refunded by the gateway","example":false}
        operator: {"allOf":[{"$ref":"#/components/schemas/OperatorView"}],"description":"Operador","x-description-en":"Operator"}
        created_at: {"type":"string","format":"date-time","description":"Creado el","x-description-en":"Created at","example":"2026-10-20T14:00:00.118Z"}
    PaymentLinkPaidEventData:
      type: object
      required: ["payment_link","payment"]
      properties:
        payment_link: {"allOf":[{"$ref":"#/components/schemas/PaymentLinkEventView"}],"description":"Link de pago","x-description-en":"Payment link"}
        payment: {"allOf":[{"$ref":"#/components/schemas/PaymentView"}],"description":"Pago","x-description-en":"Payment"}
    PaymentLinkPayerBody:
      type: object
      properties:
        document_type: {"type":"string","pattern":"^[A-Za-z0-9]+$","maxLength":8,"description":"Biopago: V o E, obligatorio. Mercado Pago: opcional; en Brasil no hace falta, en los demás países va con document_number y es uno de los tipos del país (DNI, CUIT...). No aplica en Stripe ni PayPal.","x-description-en":"Biopago: V or E, required. Mercado Pago: optional; in Brazil it is not needed, in the other countries it goes with document_number and is one of the types of the country (DNI, CUIT...). Not used on Stripe or PayPal.","example":"V"}
        document_number: {"type":"string","minLength":3,"maxLength":20,"description":"Biopago: cédula de 6 a 9 dígitos, obligatoria. Mercado Pago: opcional; en Brasil el CPF (11 dígitos) o el CNPJ (14), con o sin signos. No aplica en Stripe ni PayPal.","x-description-en":"Biopago: ID number of 6 to 9 digits, required. Mercado Pago: optional; in Brazil the CPF (11 digits) or the CNPJ (14), with or without punctuation. Not used on Stripe or PayPal.","example":"12345678"}
        email: {"type":"string","format":"email","maxLength":191,"description":"Obligatorio en Biopago; opcional en Mercado Pago, Stripe y PayPal.","x-description-en":"Required on Biopago; optional on Mercado Pago, Stripe and PayPal.","example":"cliente@example.com"}
        phone: {"type":"string","maxLength":20,"description":"Obligatorio en Biopago; opcional en Mercado Pago. No aplica en Stripe ni PayPal.","x-description-en":"Required on Biopago; optional on Mercado Pago. Not used on Stripe or PayPal.","example":"04141234567"}
        rif_type: {"type":"string","enum":["V","E","J","G","P","C"],"description":"Tipo de RIF","x-description-en":"Tax ID type","example":"J"}
        rif_number: {"type":"string","pattern":"^[0-9]+$","minLength":9,"maxLength":9,"description":"Número de RIF","x-description-en":"Tax ID number","example":"503927194"}
        name: {"type":"string","maxLength":80,"description":"Opcional en Mercado Pago, Stripe y PayPal.","x-description-en":"Optional on Mercado Pago, Stripe and PayPal.","example":"Ana Pérez"}
        street_name: {"type":"string","maxLength":80,"description":"Opcional, sólo en Mercado Pago de Brasil.","x-description-en":"Optional, only on Mercado Pago of Brazil.","example":"Rua Augusta"}
        street_number: {"type":"string","maxLength":10,"description":"Opcional, sólo en Mercado Pago de Brasil; sin número se envía SN.","x-description-en":"Optional, only on Mercado Pago of Brazil; without a number SN is sent.","example":"1500"}
        zip_code: {"type":"string","maxLength":12,"description":"Opcional, sólo en Mercado Pago de Brasil.","x-description-en":"Optional, only on Mercado Pago of Brazil.","example":"01304-001"}
    PaymentLinkPayerView:
      type: object
      required: ["document_type","document_number","email","phone","rif_type","rif_number"]
      properties:
        document_type: {"type":"string","pattern":"^[A-Za-z0-9]+$","maxLength":8,"description":"Tipo de documento","x-description-en":"Document type","example":"V"}
        document_number: {"type":"string","maxLength":20,"description":"Número de documento","x-description-en":"Document number","example":"12345678"}
        email: {"type":"string","format":"email","maxLength":191,"description":"Correo","x-description-en":"Email","example":"cliente@example.com"}
        phone: {"type":"string","maxLength":20,"description":"Teléfono","x-description-en":"Phone","example":"04141234567"}
        rif_type: {"type":["string","null"],"enum":["V","E","J","G","P","C",null],"description":"Tipo de RIF","x-description-en":"Tax ID type","example":"J"}
        rif_number: {"type":["string","null"],"pattern":"^[0-9]+$","minLength":9,"maxLength":9,"description":"Número de RIF","x-description-en":"Tax ID number","example":"503927194"}
        name: {"type":"string","maxLength":80,"description":"Nombre","x-description-en":"Name","example":"Ana Pérez"}
        street_name: {"type":"string","maxLength":80,"description":"Calle","x-description-en":"Street","example":"Rua Augusta"}
        street_number: {"type":"string","maxLength":10,"description":"Número de la dirección","x-description-en":"Street number","example":"1500"}
        zip_code: {"type":"string","maxLength":12,"description":"Código postal","x-description-en":"Postal code","example":"01304-001"}
    PaymentLinkView:
      type: object
      required: ["uuid","connection_uuid","provider","auth_mode","environment","status","title","description","identifier","external_reference","original_currency","original_amount","amount","rate","rate_value_date","payer","payment_url","public_url","provider_reference","bank_reference","paid_amount","paid_at","expires_at","closed_at","return_url","payment_uuid","refunded_by_provider","operator","created_at"]
      properties:
        uuid: {"type":"string","format":"uuid","description":"Link","x-description-en":"Link","example":"5a1f0e2d-3c4b-4a59-8e7d-6c5b4a3f2e1d"}
        connection_uuid: {"type":"string","format":"uuid","description":"Conexión","x-description-en":"Connection","example":"0b6f3c1e-9a2d-4c5b-8e7f-1a2b3c4d5e6f"}
        provider: {"type":"string","enum":["BDV_BIOPAGO","SPIDI","WAYU_PAY","STRIPE","PAYPAL","MERCADO_PAGO","BINANCE_PAY"],"description":"Pasarela","x-description-en":"Gateway","example":"SPIDI"}
        auth_mode: {"type":["string","null"],"enum":["OWN","ASSOCIATED",null],"description":"Modo de autenticación","x-description-en":"Authentication mode","example":"ASSOCIATED"}
        environment: {"type":"string","enum":["SANDBOX","PRODUCTION"],"description":"Ambiente","x-description-en":"Environment","example":"PRODUCTION"}
        status: {"type":"string","enum":["PENDING","PAID","EXPIRED","REJECTED","CANCELED"],"description":"Estado","x-description-en":"Status","example":"PAID"}
        title: {"type":"string","maxLength":80,"description":"Título","x-description-en":"Title","example":"Pedido 1043"}
        description: {"type":["string","null"],"maxLength":255,"description":"Descripción","x-description-en":"Description","example":"Dos cajas de harina"}
        identifier: {"type":["string","null"],"maxLength":64,"description":"Identificador del cliente","x-description-en":"Customer identifier","example":"V12345678"}
        external_reference: {"type":["string","null"],"maxLength":64,"description":"Referencia externa","x-description-en":"External reference","example":"order-1043"}
        original_currency: {"type":"string","enum":["ARS","BOB","BRL","CLP","COP","CRC","CUP","DOP","EUR","GTQ","HNL","MXN","NIO","PAB","PEN","PYG","USD","UYU","VES"],"description":"Moneda original","x-description-en":"Original currency","example":"USD"}
        original_amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Monto original","x-description-en":"Original amount","example":"25.0000"}
        amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Monto en la moneda de cobro","x-description-en":"Amount in the charge currency","example":"914.5700"}
        charge_currency: {"type":"string","enum":["ARS","BOB","BRL","CLP","COP","CRC","CUP","DOP","EUR","GTQ","HNL","MXN","NIO","PAB","PEN","PYG","USD","UYU","VES"],"description":"Sólo sale cuando no es VES.","x-description-en":"Only present when it is not VES.","example":"USD"}
        rate: {"oneOf":[{"$ref":"#/components/schemas/Rate"},{"type":"null"}],"description":"Tasa","x-description-en":"Rate","example":"36.58290000"}
        rate_value_date: {"type":["string","null"],"format":"date","description":"Día de la tasa","x-description-en":"Rate date","example":"2026-10-20"}
        payer: {"oneOf":[{"$ref":"#/components/schemas/PaymentLinkPayerView"},{"type":"null"}],"description":"Pagador","x-description-en":"Payer"}
        payment_url: {"type":["string","null"],"maxLength":2048,"description":"URL de pago","x-description-en":"Payment URL","example":"https://example.com/s/abc123"}
        public_url: {"type":"string","maxLength":512,"description":"URL pública","x-description-en":"Public URL","example":"https://example.com/pay/5a1f0e2d-3c4b-4a59-8e7d-6c5b4a3f2e1d"}
        provider_reference: {"type":"string","maxLength":128,"description":"Referencia de la pasarela","x-description-en":"Gateway reference","example":"sess_01HZX3"}
        bank_reference: {"type":["string","null"],"maxLength":64,"description":"Referencia del pago","x-description-en":"Payment reference","example":"001234567890"}
        paid_amount: {"oneOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}],"description":"Monto cobrado en la moneda de cobro","x-description-en":"Collected amount in the charge currency","example":"914.5700"}
        paid_at: {"type":["string","null"],"format":"date-time","description":"Pagado el","x-description-en":"Paid at","example":"2026-10-20T15:02:11.204Z"}
        expires_at: {"type":["string","null"],"format":"date-time","description":"Vence el","x-description-en":"Expires at","example":"2026-10-20T21:00:00Z"}
        closed_at: {"type":["string","null"],"format":"date-time","description":"Cerrado el","x-description-en":"Closed at"}
        return_url: {"type":["string","null"],"maxLength":512,"description":"URL de retorno","x-description-en":"Return URL","example":"https://example.com/gracias"}
        payment_uuid: {"type":["string","null"],"format":"uuid","description":"Pago","x-description-en":"Payment","example":"c7a8f1e2-0b3d-4e5f-8a9b-0c1d2e3f4a5b"}
        checkout_cart_uuid: {"type":"string","format":"uuid","description":"Checkout cart","x-description-en":"Checkout cart","example":"6b2f6c1e-3a7d-4e8a-9c21-5d4e3f2a1b0c"}
        refunded_by_provider: {"type":"boolean","description":"Reembolsado por la pasarela","x-description-en":"Refunded by the gateway","example":false}
        operator: {"allOf":[{"$ref":"#/components/schemas/OperatorView"}],"description":"Operador","x-description-en":"Operator"}
        created_at: {"type":"string","format":"date-time","description":"Creado el","x-description-en":"Created at","example":"2026-10-20T14:00:00.118Z"}
        split: {"type":"array","items":{"additionalProperties":true,"type":"object"},"description":"Reparto propio del link tal como se pidió, con el uuid de cada partner. Se omite cuando el link usa el reparto de la conexión y es null cuando se cobró sin reparto.","x-description-en":"Own split of the link as requested, with the uuid of each partner. Omitted when the link uses the split of the connection and null when it was charged without split."}
        split_resolution: {"allOf":[{"$ref":"#/components/schemas/SplitResolutionView"}],"description":"Parte de cada participante calculada sobre el total, en la moneda de cobro.","x-description-en":"Share of each participant calculated on the total, in the charge currency."}
        received_currency: {"type":"string","maxLength":10,"description":"Sólo en un link rechazado porque el proveedor reportó un cobro en una moneda que la conexión no acepta.","x-description-en":"Only on a link rejected because the provider reported a charge in a currency the connection does not accept.","example":"BTC"}
        split_receivers: {"type":"array","maxItems":11,"items":{"$ref":"#/components/schemas/SplitReceiverView"},"description":"Lo que el proveedor reporta acreditado a cada receptor; un partner sin acreditar está PENDING.","x-description-en":"What the provider reports as credited to each receiver; a partner not yet credited is PENDING."}
    PaymentVerifyBody:
      type: object
      required: ["connection_uuid","reference","payment_date","amount"]
      properties:
        connection_uuid: {"type":"string","format":"uuid","description":"Conexión","x-description-en":"Connection","example":"0b6f3c1e-9a2d-4c5b-8e7f-1a2b3c4d5e6f"}
        reference: {"type":"string","minLength":4,"maxLength":64,"description":"Referencia","x-description-en":"Reference","example":"567890"}
        payment_date: {"type":"string","format":"date","description":"Fecha del pago","x-description-en":"Payment date","example":"2026-10-20"}
        amount: {"type":"string","maxLength":20,"description":"Monto","x-description-en":"Amount","example":"1250.00"}
        payer_phone: {"type":"string","maxLength":20,"description":"Teléfono del pagador","x-description-en":"Payer phone","example":"04141234567"}
        payer_document: {"type":"string","maxLength":20,"description":"Documento del pagador","x-description-en":"Payer ID document","example":"V12345678"}
        payer_bank_code: {"type":"string","pattern":"^[0-9]+$","minLength":4,"maxLength":4,"description":"Banco del pagador","x-description-en":"Payer bank","example":"0102"}
    PaymentVerifyResult:
      type: object
      required: ["check_uuid","outcome","answered_from","not_found_reason","message","bank_amount","payment"]
      properties:
        check_uuid: {"type":"string","format":"uuid","description":"Validación","x-description-en":"Verification","example":"7d1e0c7a-5b9f-4a1e-9a40-2f6a4c8b1e01"}
        outcome: {"type":"string","enum":["FOUND","NOT_FOUND","AMOUNT_MISMATCH"],"description":"Resultado","x-description-en":"Outcome","example":"FOUND"}
        answered_from: {"type":"string","enum":["STORED","PROVIDER"],"description":"Origen de la respuesta","x-description-en":"Answer source","example":"PROVIDER"}
        not_found_reason: {"type":["string","null"],"maxLength":40,"description":"Motivo","x-description-en":"Reason","example":"r4_payment_not_notified"}
        message: {"type":["string","null"],"maxLength":255,"description":"Mensaje","x-description-en":"Message"}
        bank_amount: {"oneOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}],"description":"Monto del banco","x-description-en":"Bank amount","example":"1250.0000"}
        payment: {"oneOf":[{"$ref":"#/components/schemas/PaymentView"},{"type":"null"}],"description":"Pago","x-description-en":"Payment"}
    PaymentView:
      type: object
      required: ["uuid","connection_uuid","connection_name","provider","operation_date","operation_at","bank_reference","amount","original_currency","original_amount","rate","rate_value_date","payer_phone","payer_document","payer_bank_code","source","payment_link_uuid","immediate_debit_uuid","c2p_charge_uuid","refunded_by_provider","created_at","reconciliation"]
      properties:
        uuid: {"type":"string","format":"uuid","description":"Pago","x-description-en":"Payment","example":"c7a8f1e2-0b3d-4e5f-8a9b-0c1d2e3f4a5b"}
        connection_uuid: {"type":"string","format":"uuid","description":"Conexión","x-description-en":"Connection","example":"0b6f3c1e-9a2d-4c5b-8e7f-1a2b3c4d5e6f"}
        connection_name: {"type":["string","null"],"maxLength":255,"description":"Nombre de la conexión","x-description-en":"Connection name","example":"Caja principal"}
        provider: {"type":"string","maxLength":24,"enum":["BANCARIBE_P2P","BDV_BIOPAGO","BDV_P2P","BINANCE_PAY","BINANCE_PERSONAL","BNC_P2P","BT_P2P","BVC_P2P","MERCADO_PAGO","MERCANTIL_P2P","PAYPAL","R4_P2P","SPIDI","STRIPE","WAYU_PAY"],"description":"Proveedor","x-description-en":"Provider","example":"BDV_P2P"}
        operation_date: {"type":"string","format":"date","description":"Fecha de la operación","x-description-en":"Operation date","example":"2026-10-20"}
        operation_at: {"type":["string","null"],"format":"date-time","description":"Hora de la operación","x-description-en":"Operation time","example":"2026-10-20T14:09:00Z"}
        bank_reference: {"type":"string","maxLength":64,"description":"Referencia del banco","x-description-en":"Bank reference","example":"001234567890"}
        amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Monto en la moneda de cobro","x-description-en":"Amount in the charge currency","example":"1250.0000"}
        original_currency: {"type":"string","enum":["ARS","BOB","BRL","CLP","COP","CRC","CUP","DOP","EUR","GTQ","HNL","MXN","NIO","PAB","PEN","PYG","USD","UYU","VES"],"description":"Moneda original","x-description-en":"Original currency","example":"USD"}
        original_amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Monto original","x-description-en":"Original amount","example":"10.0000"}
        rate: {"oneOf":[{"$ref":"#/components/schemas/Rate"},{"type":"null"}],"description":"Tasa","x-description-en":"Rate","example":"36.58290000"}
        rate_value_date: {"type":["string","null"],"format":"date","description":"Día de la tasa","x-description-en":"Rate date","example":"2026-10-20"}
        payer_phone: {"type":["string","null"],"maxLength":20,"description":"Teléfono del pagador","x-description-en":"Payer phone","example":"04141234567"}
        payer_document: {"type":["string","null"],"maxLength":20,"description":"Documento del pagador","x-description-en":"Payer ID document","example":"V12345678"}
        payer_bank_code: {"type":["string","null"],"pattern":"^[0-9]+$","minLength":4,"maxLength":4,"description":"Banco del pagador","x-description-en":"Payer bank","example":"0102"}
        source: {"type":"string","enum":["VERIFIED","NOTIFIED","LINK","IMMEDIATE_DEBIT","C2P","PROVIDER_CHARGE"],"description":"Origen","x-description-en":"Source","example":"VERIFIED"}
        payment_link_uuid: {"type":["string","null"],"format":"uuid","description":"Link de pago","x-description-en":"Payment link"}
        immediate_debit_uuid: {"type":["string","null"],"format":"uuid","description":"Débito inmediato","x-description-en":"Immediate debit"}
        c2p_charge_uuid: {"type":["string","null"],"format":"uuid","description":"Cobro C2P","x-description-en":"C2P charge"}
        provider_charge_uuid: {"type":"string","format":"uuid","description":"Cobro directo","x-description-en":"Direct charge","example":"3f6b2a1c-7d4e-4b8a-9c05-2e1d0f9a8b7c"}
        installments: {"type":"integer","minimum":1,"maximum":36,"description":"Cuotas","x-description-en":"Installments","example":3}
        payer_total_amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Con los intereses de las cuotas; sólo sale cuando supera el monto.","x-description-en":"With the installment interest; only present when it exceeds the amount.","example":"10.5000"}
        financing_amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Intereses que pagó el comprador por las cuotas: total pagado menos monto.","x-description-en":"Interest the buyer paid for the installments: total paid minus amount.","example":"0.5000"}
        checkout_cart_uuid: {"type":"string","format":"uuid","description":"Checkout cart","x-description-en":"Checkout cart","example":"6b2f6c1e-3a7d-4e8a-9c21-5d4e3f2a1b0c"}
        refunded_by_provider: {"type":"boolean","description":"Reembolsado por la pasarela","x-description-en":"Refunded by the gateway","example":false}
        charge_currency: {"type":"string","enum":["ARS","BOB","BRL","CLP","COP","CRC","CUP","DOP","EUR","GTQ","HNL","MXN","NIO","PAB","PEN","PYG","USD","UYU","VES"],"description":"Sólo sale cuando no es VES.","x-description-en":"Only present when it is not VES.","example":"USD"}
        provider_asset: {"type":"string","maxLength":10,"description":"Activo cobrado","x-description-en":"Collected asset","example":"USDT"}
        provider_payment_detail: {"type":"array","items":{"additionalProperties":true,"type":"object"},"description":"Sólo en el detalle del pago.","x-description-en":"Only in the payment detail."}
        reference_rate: {"allOf":[{"$ref":"#/components/schemas/Rate"}],"description":"Tasa BCV de referencia","x-description-en":"Reference BCV rate","example":"36.58290000"}
        reference_rate_currency: {"type":"string","enum":["ARS","BOB","BRL","CLP","COP","CRC","CUP","DOP","EUR","GTQ","HNL","MXN","NIO","PAB","PEN","PYG","USD","UYU","VES"],"description":"Moneda de la tasa de referencia","x-description-en":"Reference rate currency","example":"USD"}
        reference_rate_value_date: {"type":"string","format":"date","description":"Día de la tasa de referencia","x-description-en":"Reference rate date","example":"2026-10-20"}
        refunded_amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Monto reembolsado","x-description-en":"Refunded amount","example":"5.0000"}
        fully_refunded: {"type":"boolean","description":"Reembolsado por completo","x-description-en":"Fully refunded","example":false}
        dispute_status: {"type":"string","enum":["OPEN","WON","LOST"],"description":"Estado de la disputa","x-description-en":"Dispute status","example":"OPEN"}
        provider_fee: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Comisión del proveedor","x-description-en":"Provider fee","example":"0.8000"}
        net_amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Neto después de la comisión","x-description-en":"Net after fee","example":"9.2000"}
        created_at: {"type":"string","format":"date-time","description":"Creado el","x-description-en":"Created at","example":"2026-10-20T14:10:02.118Z"}
        reconciliation: {"oneOf":[{"$ref":"#/components/schemas/ReconciliationView"},{"type":"null"}],"description":"Conciliación vigente","x-description-en":"Current reconciliation"}
        split_receivers: {"type":"array","maxItems":11,"items":{"$ref":"#/components/schemas/SplitReceiverView"},"description":"Sólo en pagos de un link con reparto: lo que el proveedor reporta acreditado a cada receptor; un partner sin acreditar está PENDING.","x-description-en":"Only on payments of a link with split: what the provider reports as credited to each receiver; a partner not yet credited is PENDING."}
    PriceBody:
      type: object
      required: ["currency"]
      properties:
        mode: {"type":"string","enum":["FIXED","OPEN"],"description":"FIXED (monto fijo) u OPEN (el comprador escribe el monto al abrir la sesión). Omitido: FIXED. En un precio pisado de una línea de catálogo siempre es FIXED.","x-description-en":"FIXED (fixed amount) or OPEN (the buyer types the amount when opening the session). Omitted: FIXED. In a price override of a catalog line it is always FIXED.","example":"FIXED"}
        currency: {"type":"string","minLength":3,"maxLength":3,"description":"Código de una moneda del catálogo de la suite (VES, USD, EUR y las latinoamericanas admitidas); fuera del catálogo responde checkout_line_invalid. Si las líneas mezclan monedas, el total se lleva a la moneda de cobro con las cotizaciones del día y, sin cotización para alguna, la conexión no es utilizable.","x-description-en":"Code of a currency of the suite catalog (VES, USD, EUR and the supported Latin American ones); outside the catalog it answers checkout_line_invalid. If lines mix currencies the total is converted to the charge currency with the rates of the day and, with no rate for one of them, the connection is not usable.","example":"USD"}
        amount: {"type":"string","maxLength":20,"description":"Monto con los decimales de la moneda. Obligatorio con FIXED y mayor que 0; no se envía con OPEN.","x-description-en":"Amount with the decimals of the currency. Required with FIXED and greater than 0; not sent with OPEN.","example":"25.00"}
        open_min: {"type":"string","maxLength":20,"description":"Sólo con OPEN: mínimo que puede escribir el comprador. 0, vacío u omitido: la línea es voluntaria, el comprador puede dejarla sin monto y entonces no entra en la foto de la sesión ni en el pago. Mayor que 0: la línea es obligatoria y el comprador debe escribir un monto no menor. Un monto escrito por debajo del piso interno de cobro se rechaza con checkout_amount_invalid. No se envía con FIXED.","x-description-en":"Only with OPEN: minimum the buyer can type. 0, empty or omitted: the line is voluntary, the buyer may leave it without an amount and it then stays out of the session snapshot and of the payment. Greater than 0: the line is mandatory and the buyer must type an amount no lower. An amount typed below the internal charge floor is rejected with checkout_amount_invalid. Not sent with FIXED.","example":"1.00"}
        open_max: {"type":"string","maxLength":20,"description":"Sólo con OPEN: máximo que puede escribir el comprador. Omitido o vacío: sin máximo propio. No puede ser menor que open_min y 0 no es válido. No se envía con FIXED.","x-description-en":"Only with OPEN: maximum the buyer can type. Omitted or empty: no own maximum. It cannot be lower than open_min and 0 is not valid. Not sent with FIXED.","example":"100.00"}
    ProductBody:
      type: object
      required: ["name","price_mode","currency"]
      properties:
        sku: {"type":"string","maxLength":64,"description":"Código propio del producto. Opcional; no se repite entre los productos de la cuenta (409 si ya existe).","x-description-en":"Own code of the product. Optional; it cannot repeat among the products of the account (409 if it exists).","example":"HAR-001"}
        name: {"type":"string","minLength":3,"maxLength":80,"description":"Nombre","x-description-en":"Name","example":"Harina de maíz"}
        description: {"type":"string","maxLength":255,"description":"Descripción","x-description-en":"Description","example":"Paquete de 1 kg"}
        price_mode: {"type":"string","enum":["FIXED","OPEN"],"description":"FIXED: precio de lista que se cobra tal cual. OPEN: el comprador escribe el monto al pagar, entre open_min y open_max. En un cart se puede pisar con price de la línea.","x-description-en":"FIXED: list price charged as is. OPEN: the buyer types the amount when paying, between open_min and open_max. In a cart it can be overridden with the line price.","example":"FIXED"}
        currency: {"type":"string","minLength":3,"maxLength":3,"description":"Moneda del precio, del catálogo de la suite. Si un cart mezcla monedas, el total se convierte con las cotizaciones del día.","x-description-en":"Currency of the price, from the suite catalog. If a cart mixes currencies, the total is converted with the rates of the day.","example":"USD"}
        amount: {"type":"string","maxLength":20,"description":"Obligatorio con FIXED y mayor que 0; no se envía con OPEN.","x-description-en":"Required with FIXED and greater than 0; not sent with OPEN.","example":"25.00"}
        open_min: {"type":"string","maxLength":20,"description":"Sólo con OPEN. 0, vacío u omitido: sin mínimo, y una línea con este producto es voluntaria (el comprador puede dejarla sin monto). Mayor que 0: obligatoria, con ese mínimo.","x-description-en":"Only with OPEN. 0, empty or omitted: no minimum, and a line with this product is voluntary (the buyer may leave it without an amount). Greater than 0: mandatory, with that minimum.","example":"1.00"}
        open_max: {"type":"string","maxLength":20,"description":"Sólo con OPEN. Omitido o vacío: sin máximo propio. No puede ser menor que open_min.","x-description-en":"Only with OPEN. Omitted or empty: no own maximum. It cannot be lower than open_min.","example":"100.00"}
        status: {"type":"string","enum":["ACTIVE","INACTIVE"],"description":"ACTIVE (por defecto si se omite) o INACTIVE. Un producto INACTIVE deja UNAVAILABLE, con PRODUCT_INACTIVE, a los carts que lo usan; reactivarlo los restablece.","x-description-en":"ACTIVE (default when omitted) or INACTIVE. An INACTIVE product leaves the carts using it UNAVAILABLE with PRODUCT_INACTIVE; reactivating it restores them.","example":"ACTIVE"}
    ProductView:
      type: object
      required: ["uuid","sku","name","description","image_url","price_mode","currency","amount","open_min","open_max","status","version","created_at","updated_at"]
      properties:
        uuid: {"type":"string","format":"uuid","description":"Producto","x-description-en":"Product","example":"5a1f0e2d-3c4b-4a59-8e7d-6c5b4a3f2e1d"}
        sku: {"type":["string","null"],"maxLength":64,"description":"SKU","x-description-en":"SKU","example":"HAR-001"}
        name: {"type":"string","maxLength":80,"description":"Nombre","x-description-en":"Name","example":"Harina de maíz"}
        description: {"type":["string","null"],"maxLength":255,"description":"Descripción","x-description-en":"Description","example":"Paquete de 1 kg"}
        image_url: {"type":["string","null"],"maxLength":500,"description":"Foto","x-description-en":"Photo","example":"https://example.com/cash/products/5a1f0e2d/ab12.jpg"}
        price_mode: {"type":"string","enum":["FIXED","OPEN"],"description":"Tipo de precio","x-description-en":"Price type","example":"FIXED"}
        currency: {"type":"string","minLength":3,"maxLength":3,"description":"Moneda","x-description-en":"Currency","example":"USD"}
        amount: {"oneOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}],"description":"Monto","x-description-en":"Amount","example":"25.0000"}
        open_min: {"oneOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}],"description":"Mínimo","x-description-en":"Minimum","example":"1.0000"}
        open_max: {"oneOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}],"description":"Máximo","x-description-en":"Maximum","example":"100.0000"}
        status: {"type":"string","enum":["ACTIVE","INACTIVE"],"description":"Estado","x-description-en":"Status","example":"ACTIVE"}
        version: {"type":"integer","minimum":1,"description":"Versión","x-description-en":"Version","example":1}
        created_at: {"type":"string","format":"date-time","description":"Creado el","x-description-en":"Created at","example":"2026-10-20T14:10:02Z"}
        updated_at: {"type":"string","format":"date-time","description":"Modificado el","x-description-en":"Updated at","example":"2026-10-20T14:10:02Z"}
    ProviderChargeEventData:
      type: object
      required: ["provider_charge"]
      properties:
        provider_charge: {"allOf":[{"$ref":"#/components/schemas/ProviderChargeView"}],"description":"Cobro","x-description-en":"Charge"}
    ProviderChargeView:
      type: object
      required: ["uuid","connection_uuid","customer_uuid","saved_method_uuid","merchant_subscription_uuid","origin","status","currency","amount","attempt","reason","will_retry","next_attempt_at","payment_uuid","created_at","updated_at"]
      properties:
        uuid: {"type":"string","format":"uuid","description":"Cobro","x-description-en":"Charge","example":"0b8f3c1e-7a2d-4f5b-8e9c-1d2a3b4c5d6e"}
        connection_uuid: {"type":"string","format":"uuid","description":"Conexión","x-description-en":"Connection","example":"6f1c2a9e-3b7d-4e8a-9c21-5d4e3f2a1b0c"}
        customer_uuid: {"type":["string","null"],"format":"uuid","description":"Cliente","x-description-en":"Customer","example":"6f1c2a9e-3b7d-4e8a-9c21-5d4e3f2a1b0c"}
        saved_method_uuid: {"type":["string","null"],"format":"uuid","description":"Método guardado","x-description-en":"Saved method","example":"6f1c2a9e-3b7d-4e8a-9c21-5d4e3f2a1b0c"}
        merchant_subscription_uuid: {"type":["string","null"],"format":"uuid","description":"Suscripción","x-description-en":"Subscription","example":"6f1c2a9e-3b7d-4e8a-9c21-5d4e3f2a1b0c"}
        origin: {"type":"string","enum":["TOKEN","SAVED_METHOD","CASH_SCHEDULE","PROVIDER_SCHEDULE"],"description":"Origen","x-description-en":"Origin","example":"SAVED_METHOD"}
        status: {"type":"string","enum":["SCHEDULED","SENDING","PENDING","SUCCEEDED","REQUIRES_ACTION","REJECTED","UNKNOWN","NEEDS_REVIEW"],"description":"Estado","x-description-en":"Status","example":"SUCCEEDED"}
        currency: {"type":"string","minLength":3,"maxLength":3,"description":"Moneda","x-description-en":"Currency","example":"USD"}
        amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Monto","x-description-en":"Amount","example":"25.0000"}
        attempt: {"type":"integer","minimum":1,"maximum":10,"description":"Intento","x-description-en":"Attempt","example":1}
        reason: {"type":["string","null"],"maxLength":40,"description":"Motivo del rechazo","x-description-en":"Rejection reason"}
        will_retry: {"type":"boolean","description":"Se reintentará","x-description-en":"Will retry","example":false}
        next_attempt_at: {"type":["string","null"],"format":"date-time","description":"Próximo intento","x-description-en":"Next attempt"}
        payment_uuid: {"type":["string","null"],"format":"uuid","description":"Pago","x-description-en":"Payment"}
        created_at: {"type":"string","format":"date-time","description":"Creado el","x-description-en":"Created at","example":"2026-10-21T03:30:00.000Z"}
        updated_at: {"type":"string","format":"date-time","description":"Modificado el","x-description-en":"Updated at","example":"2026-10-21T03:30:00.000Z"}
    ProviderView:
      type: object
      required: ["provider","name","auth_modes","environments","secret_fields","settings_fields","identity_fields","accepts_inbound","supports_links","supports_split","production_ready","verify_reference","verify_fields","verify_any_of","immediate_debit","c2p","currency_policy","capabilities"]
      properties:
        provider: {"type":"string","maxLength":24,"enum":["BANCARIBE_P2P","BDV_BIOPAGO","BDV_P2P","BINANCE_PAY","BINANCE_PERSONAL","BNC_P2P","BT_P2P","BVC_P2P","MERCADO_PAGO","MERCANTIL_P2P","PAYPAL","R4_P2P","SPIDI","STRIPE","WAYU_PAY"],"description":"Proveedor","x-description-en":"Provider","example":"BANCARIBE_P2P"}
        name: {"type":"string","maxLength":120,"description":"Nombre","x-description-en":"Name","example":"Bancaribe"}
        auth_modes: {"type":"array","maxItems":2,"items":{"type":"string","enum":["OWN","ASSOCIATED"]},"description":"Modos de autenticación","x-description-en":"Authentication modes","example":["OWN"]}
        environments: {"type":"array","maxItems":2,"items":{"type":"string","enum":["SANDBOX","PRODUCTION"]},"description":"Ambientes","x-description-en":"Environments","example":["SANDBOX","PRODUCTION"]}
        secret_fields: {"type":"array","maxItems":12,"items":{"$ref":"#/components/schemas/FieldSpecView"},"description":"Campos secretos","x-description-en":"Secret fields","example":[]}
        settings_fields: {"type":"array","maxItems":12,"items":{"$ref":"#/components/schemas/FieldSpecView"},"description":"Campos de ajustes","x-description-en":"Settings fields","example":[]}
        identity_fields: {"type":"array","maxItems":12,"items":{"type":"string","maxLength":64},"description":"Campos de identidad","x-description-en":"Identity fields","example":["client_rif"]}
        accepts_inbound: {"type":"boolean","description":"Recibe avisos","x-description-en":"Accepts notices","example":true}
        supports_links: {"type":"boolean","description":"Admite links","x-description-en":"Supports links","example":false}
        supports_split: {"type":"boolean","description":"Admite reparto","x-description-en":"Supports split","example":false}
        production_ready: {"type":"boolean","description":"Listo para producción","x-description-en":"Production ready","example":true}
        verify_reference: {"allOf":[{"$ref":"#/components/schemas/FieldSpecView"}],"description":"Referencia a validar","x-description-en":"Reference to verify"}
        verify_fields: {"type":"array","maxItems":12,"items":{"$ref":"#/components/schemas/FieldSpecView"},"description":"Campos de validación","x-description-en":"Verification fields","example":[]}
        verify_any_of: {"type":"array","maxItems":4,"items":{"type":"array","maxItems":64,"items":{"type":"string"}},"description":"Alternativas de validación","x-description-en":"Verification alternatives","example":[["payer_phone","payer_document"]]}
        immediate_debit: {"oneOf":[{"$ref":"#/components/schemas/ImmediateDebitSpecView"},{"type":"null"}],"description":"Débito inmediato","x-description-en":"Immediate debit"}
        c2p: {"oneOf":[{"$ref":"#/components/schemas/C2PSpecView"},{"type":"null"}],"description":"Cobro C2P","x-description-en":"C2P charge"}
        currency_policy: {"allOf":[{"$ref":"#/components/schemas/CurrencyPolicyView"}],"description":"Política de moneda","x-description-en":"Currency policy"}
        capabilities: {"type":"array","maxItems":8,"items":{"type":"string","maxLength":32},"description":"Lo que el proveedor sabe hacer: HOSTED_CHECKOUT (página de pago del proveedor), SAVED_METHODS (guardar métodos de pago de clientes), PROVIDER_SUBSCRIPTIONS (suscripciones propias del proveedor), INSTALLMENTS (cuotas), PAYMENT_REFUND (reembolsos) y TOKEN_CHARGE (cobro con la tarjeta tokenizada en el navegador del comprador). Los bancos de Venezuela no lo llenan: ofrecen débito inmediato y C2P en immediate_debit y c2p.","x-description-en":"What the provider can do: HOSTED_CHECKOUT (the provider payment page), SAVED_METHODS (save customer payment methods), PROVIDER_SUBSCRIPTIONS (the provider own subscriptions), INSTALLMENTS, PAYMENT_REFUND (refunds) and TOKEN_CHARGE (charge with the card tokenized in the buyer browser). Venezuelan banks leave it empty: they offer immediate debit and C2P in immediate_debit and c2p.","example":["HOSTED_CHECKOUT","PAYMENT_REFUND"]}
    PublicPaymentLinkView:
      type: object
      required: ["uuid","status","title","original_currency","original_amount","amount","rate","rate_value_date","merchant_name","merchant_logo_url","merchant_logo_dark_url","payment_url","paid_at","bank_reference_last4","return_url"]
      properties:
        uuid: {"type":"string","format":"uuid","description":"Link","x-description-en":"Link","example":"5a1f0e2d-3c4b-4a59-8e7d-6c5b4a3f2e1d"}
        status: {"type":"string","enum":["PENDING","PAID","EXPIRED","REJECTED","CANCELED"],"description":"Estado","x-description-en":"Status","example":"PENDING"}
        title: {"type":"string","maxLength":80,"description":"Título","x-description-en":"Title","example":"Pedido 1043"}
        original_currency: {"type":"string","enum":["ARS","BOB","BRL","CLP","COP","CRC","CUP","DOP","EUR","GTQ","HNL","MXN","NIO","PAB","PEN","PYG","USD","UYU","VES"],"description":"Moneda original","x-description-en":"Original currency","example":"USD"}
        original_amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Monto original","x-description-en":"Original amount","example":"25.0000"}
        amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Monto en la moneda de cobro","x-description-en":"Amount in the charge currency","example":"914.5700"}
        charge_currency: {"type":"string","enum":["ARS","BOB","BRL","CLP","COP","CRC","CUP","DOP","EUR","GTQ","HNL","MXN","NIO","PAB","PEN","PYG","USD","UYU","VES"],"description":"Sólo sale cuando no es VES.","x-description-en":"Only present when it is not VES.","example":"USD"}
        rate: {"oneOf":[{"$ref":"#/components/schemas/Rate"},{"type":"null"}],"description":"Tasa","x-description-en":"Rate","example":"36.58290000"}
        rate_value_date: {"type":["string","null"],"format":"date","description":"Día de la tasa","x-description-en":"Rate date","example":"2026-10-20"}
        merchant_name: {"type":"string","maxLength":120,"description":"Comercio","x-description-en":"Merchant","example":"Bodega La Esquina"}
        merchant_logo_url: {"type":["string","null"],"maxLength":500,"description":"Logo del comercio","x-description-en":"Merchant logo","example":"https://example.com/cash/logos/5a1f0e2d/ab12.png"}
        merchant_logo_dark_url: {"type":["string","null"],"maxLength":500,"description":"Logo del comercio para tema oscuro","x-description-en":"Merchant dark theme logo","example":"https://example.com/cash/logos/5a1f0e2d/cd34.png"}
        payment_url: {"type":["string","null"],"maxLength":2048,"description":"URL de pago","x-description-en":"Payment URL","example":"https://example.com/s/abc123"}
        paid_at: {"type":["string","null"],"format":"date-time","description":"Pagado el","x-description-en":"Paid at"}
        bank_reference_last4: {"type":["string","null"],"minLength":4,"maxLength":4,"description":"Últimos 4 de la referencia","x-description-en":"Reference last 4","example":"7890"}
        return_url: {"type":["string","null"],"maxLength":512,"description":"URL de retorno","x-description-en":"Return URL","example":"https://example.com/gracias"}
    ReauthorizationView:
      type: object
      required: ["authorization_url"]
      properties:
        authorization_url: {"type":"string","maxLength":400,"description":"Enlace de autorización del comprador","x-description-en":"Buyer authorization link","example":"https://example.com/subscribe/0123456789abcdef0123456789abcdef"}
    ReconcileBody:
      type: object
      required: ["reference_type"]
      properties:
        reference_type: {"type":"string","enum":["INVOICE","RECEIPT","OTHER"],"description":"Tipo de referencia","x-description-en":"Reference type","example":"INVOICE"}
        reference: {"type":"string","maxLength":64,"description":"Referencia","x-description-en":"Reference","example":"00012345"}
    ReconciliationRevertBody:
      type: object
      properties:
        reason: {"type":"string","maxLength":255,"description":"Motivo de la reversión","x-description-en":"Revert reason","example":"Se concilió con la factura equivocada"}
    ReconciliationView:
      type: object
      required: ["uuid","payment_uuid","payment","reference_type","reference","reconciled_at","reconciled_by","status","revertible_until","reverted_at","reverted_by","revert_reason"]
      properties:
        uuid: {"type":"string","format":"uuid","description":"Conciliación","x-description-en":"Reconciliation","example":"d1e2f3a4-5b6c-4d7e-8f90-a1b2c3d4e5f6"}
        payment_uuid: {"type":"string","format":"uuid","description":"Pago","x-description-en":"Payment","example":"c7a8f1e2-0b3d-4e5f-8a9b-0c1d2e3f4a5b"}
        payment: {"oneOf":[{"$ref":"#/components/schemas/PaymentView"},{"type":"null"}],"description":"Pago","x-description-en":"Payment"}
        reference_type: {"type":"string","enum":["INVOICE","RECEIPT","OTHER"],"description":"Tipo de referencia","x-description-en":"Reference type","example":"INVOICE"}
        reference: {"type":["string","null"],"maxLength":64,"description":"Referencia","x-description-en":"Reference","example":"00012345"}
        reconciled_at: {"type":"string","format":"date-time","description":"Conciliado el","x-description-en":"Reconciled at","example":"2026-10-20T14:20:00Z"}
        reconciled_by: {"allOf":[{"$ref":"#/components/schemas/OperatorView"}],"description":"Conciliado por","x-description-en":"Reconciled by"}
        status: {"type":"string","enum":["ACTIVE","REVERTED"],"description":"Estado","x-description-en":"Status","example":"ACTIVE"}
        revertible_until: {"type":"string","format":"date-time","description":"Se puede revertir hasta","x-description-en":"Revertible until","example":"2026-10-21T14:20:00Z"}
        reverted_at: {"type":["string","null"],"format":"date-time","description":"Revertido el","x-description-en":"Reverted at"}
        reverted_by: {"oneOf":[{"$ref":"#/components/schemas/OperatorView"},{"type":"null"}],"description":"Revertido por","x-description-en":"Reverted by"}
        revert_reason: {"type":["string","null"],"maxLength":255,"description":"Motivo de la reversión","x-description-en":"Revert reason"}
    RefundBody:
      type: object
      properties:
        amount: {"type":"string","maxLength":20,"description":"Opcional: sin monto se reembolsa todo el saldo del pago. Va en la moneda de cobro del pago.","x-description-en":"Optional: without an amount the whole balance of the payment is refunded. It is in the charge currency of the payment.","example":"5.00"}
        reason: {"type":"string","maxLength":255,"description":"Motivo","x-description-en":"Reason","example":"Producto devuelto"}
    RefundView:
      type: object
      required: ["uuid","payment_uuid","amount","currency","reason","status","provider_reference","refunded_amount","fully_refunded","created_at"]
      properties:
        uuid: {"type":"string","format":"uuid","description":"Reembolso","x-description-en":"Refund","example":"3c9d1f2a-6b7e-4d80-9a1b-2c3d4e5f6a7b"}
        payment_uuid: {"type":"string","format":"uuid","description":"Pago","x-description-en":"Payment","example":"c7a8f1e2-0b3d-4e5f-8a9b-0c1d2e3f4a5b"}
        amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Monto reembolsado","x-description-en":"Refund amount","example":"5.0000"}
        currency: {"type":"string","enum":["ARS","BOB","BRL","CLP","COP","CRC","CUP","DOP","EUR","GTQ","HNL","MXN","NIO","PAB","PEN","PYG","USD","UYU","VES"],"description":"Moneda","x-description-en":"Currency","example":"USD"}
        reason: {"type":["string","null"],"maxLength":255,"description":"Motivo","x-description-en":"Reason","example":"Producto devuelto"}
        status: {"type":"string","enum":["PENDING","SUCCEEDED","REJECTED","UNKNOWN"],"description":"Estado","x-description-en":"Status","example":"SUCCEEDED"}
        provider_reference: {"type":["string","null"],"maxLength":128,"description":"Referencia del reembolso en el proveedor","x-description-en":"Provider refund reference","example":"re_3Nq0aB"}
        refunded_amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Acumulado reembolsado del pago","x-description-en":"Payment refunded total","example":"5.0000"}
        fully_refunded: {"type":"boolean","description":"Reembolsado por completo","x-description-en":"Fully refunded","example":false}
        created_at: {"type":"string","format":"date-time","description":"Creado el","x-description-en":"Created at","example":"2026-10-20T14:10:02.118Z"}
    ReviewDecisionBody:
      type: object
      required: ["decision"]
      properties:
        decision: {"type":"string","enum":["accept","reject"],"description":"Decisión","x-description-en":"Decision","example":"accept"}
    ReviewDecisionResponse:
      type: object
      required: ["session_uuid","decision","status"]
      properties:
        session_uuid: {"type":"string","format":"uuid","description":"Sesión","x-description-en":"Session","example":"5a1f0e2d-3c4b-4a59-8e7d-6c5b4a3f2e1d"}
        decision: {"type":"string","enum":["accept","reject"],"description":"Decisión","x-description-en":"Decision","example":"accept"}
        status: {"type":"string","enum":["OPEN","PAID","FAILED","EXPIRED"],"description":"Estado de la sesión","x-description-en":"Session status","example":"PAID"}
        buyer_notice: {"type":"string","enum":["SENT","NO_EMAIL","FAILED"],"description":"Aviso al comprador","x-description-en":"Buyer notice","example":"SENT"}
    ReviewRateView:
      type: object
      required: ["currency","quoted_rate","quoted_value_date"]
      properties:
        currency: {"type":"string","minLength":3,"maxLength":3,"description":"Moneda","x-description-en":"Currency","example":"USD"}
        quoted_rate: {"type":"string","maxLength":24,"description":"Tasa cotizada","x-description-en":"Quoted rate","example":"36.50000000"}
        quoted_value_date: {"type":"string","minLength":10,"maxLength":10,"description":"Fecha de la tasa cotizada","x-description-en":"Quoted rate date","example":"2026-11-06"}
        payment_day_rate: {"type":"string","maxLength":24,"description":"Tasa del día del pago","x-description-en":"Payment day rate","example":"37.10000000"}
        payment_day_value_date: {"type":"string","minLength":10,"maxLength":10,"description":"Fecha de la tasa del día del pago","x-description-en":"Payment day rate date","example":"2026-11-07"}
        difference: {"type":"string","maxLength":24,"description":"Diferencia","x-description-en":"Difference","example":"0.60000000"}
    ReviewView:
      type: object
      required: ["reason","payment_uuid","quoted_amount","charge_currency","rates","paid_amount","difference_amount"]
      properties:
        reason: {"type":"string","enum":["LATE","BEFORE_OFFER","AMOUNT_MISMATCH"],"description":"Motivo","x-description-en":"Reason","example":"LATE"}
        payment_uuid: {"type":"string","format":"uuid","description":"Pago","x-description-en":"Payment","example":"5a1f0e2d-3c4b-4a59-8e7d-6c5b4a3f2e1d"}
        quoted_amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Monto cotizado","x-description-en":"Quoted amount","example":"1825.0000"}
        charge_currency: {"type":"string","minLength":3,"maxLength":3,"description":"Moneda de cobro","x-description-en":"Charge currency","example":"VES"}
        rates: {"type":"array","maxItems":4,"items":{"$ref":"#/components/schemas/ReviewRateView"},"description":"Tasas","x-description-en":"Rates"}
        paid_amount: {"oneOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}],"description":"Monto pagado","x-description-en":"Paid amount","example":"4000.0000"}
        difference_amount: {"oneOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}],"description":"Diferencia en la moneda de cobro","x-description-en":"Difference in the charge currency","example":"-100.0000"}
    SavedMethodEventData:
      type: object
      required: ["saved_method"]
      properties:
        saved_method: {"allOf":[{"$ref":"#/components/schemas/SavedMethodView"}],"description":"Método guardado","x-description-en":"Saved method"}
    SavedMethodLinkBody:
      type: object
      required: ["connection_uuid","purpose","charge_event","amount_rule","max_amount","currency","expires_on"]
      properties:
        connection_uuid: {"type":"string","format":"uuid","description":"Conexión","x-description-en":"Connection","example":"6f1c2a9e-3b7d-4e8a-9c21-5d4e3f2a1b0c"}
        purpose: {"type":"string","enum":["ONE_OFF_FUTURE"],"description":"Finalidad","x-description-en":"Purpose","example":"ONE_OFF_FUTURE"}
        charge_event: {"type":"string","minLength":1,"maxLength":120,"description":"Hecho que dispara el cobro","x-description-en":"Charge trigger","example":"cada pedido que yo confirme"}
        amount_rule: {"type":"string","minLength":1,"maxLength":120,"description":"Regla del monto","x-description-en":"Amount rule","example":"el total del pedido"}
        max_amount: {"type":"string","maxLength":20,"description":"Tope por cobro","x-description-en":"Cap per charge","example":"50.00"}
        currency: {"type":"string","minLength":3,"maxLength":3,"description":"Moneda","x-description-en":"Currency","example":"USD"}
        expires_on: {"type":"string","format":"date","description":"La autorización vence el","x-description-en":"Authorization expires on","example":"2027-10-21"}
        description: {"type":"string","maxLength":120,"description":"Descripción del primer cobro","x-description-en":"First charge description","example":"Guardado de tarjeta"}
        first_amount: {"type":"string","maxLength":20,"description":"Monto del cobro que guarda la tarjeta","x-description-en":"Amount of the charge that saves the card","example":"1.00"}
    SavedMethodLinkView:
      type: object
      required: ["uuid","url","expires_at"]
      properties:
        uuid: {"type":"string","format":"uuid","description":"Link de guardado","x-description-en":"Saved method link","example":"0b8f3c1e-7a2d-4f5b-8e9c-1d2a3b4c5d6e"}
        url: {"type":"string","maxLength":300,"description":"Enlace para el comprador","x-description-en":"Buyer link","example":"https://example.com/save-method/0123456789abcdef0123456789abcdef"}
        expires_at: {"type":"string","format":"date-time","description":"Vence el","x-description-en":"Expires at","example":"2026-10-22T03:30:00.000Z"}
    SavedMethodView:
      type: object
      required: ["uuid","customer_uuid","connection_uuid","status","method_type","brand","last4","exp_month","exp_year","consent_purpose","consent_text_version","consent_at","consent_receipt_sent_at","manage_url","created_at"]
      properties:
        uuid: {"type":"string","format":"uuid","description":"Método guardado","x-description-en":"Saved method","example":"0b8f3c1e-7a2d-4f5b-8e9c-1d2a3b4c5d6e"}
        customer_uuid: {"type":"string","format":"uuid","description":"Cliente","x-description-en":"Customer","example":"6f1c2a9e-3b7d-4e8a-9c21-5d4e3f2a1b0c"}
        connection_uuid: {"type":"string","format":"uuid","description":"Conexión","x-description-en":"Connection","example":"6f1c2a9e-3b7d-4e8a-9c21-5d4e3f2a1b0c"}
        status: {"type":"string","enum":["PENDING_SETUP","ACTIVE","REQUIRES_ACTION","EXPIRED","DETACHED","FAILED"],"description":"Estado","x-description-en":"Status","example":"ACTIVE"}
        method_type: {"type":"string","maxLength":16,"description":"Tipo","x-description-en":"Type","example":"CARD"}
        brand: {"type":["string","null"],"maxLength":20,"description":"Marca","x-description-en":"Brand","example":"visa"}
        last4: {"type":["string","null"],"minLength":4,"maxLength":4,"description":"Últimos cuatro","x-description-en":"Last four","example":"4242"}
        exp_month: {"type":["integer","null"],"minimum":1,"maximum":12,"description":"Mes de vencimiento","x-description-en":"Expiry month","example":12}
        exp_year: {"type":["integer","null"],"minimum":2000,"maximum":2100,"description":"Año de vencimiento","x-description-en":"Expiry year","example":2030}
        consent_purpose: {"type":"string","enum":["ONE_OFF_FUTURE","SUBSCRIPTION"],"description":"Finalidad del consentimiento","x-description-en":"Consent purpose","example":"ONE_OFF_FUTURE"}
        consent_text_version: {"type":"string","maxLength":16,"description":"Versión del texto","x-description-en":"Text version","example":"OOF-2026-11"}
        consent_at: {"type":"string","format":"date-time","description":"Consentido el","x-description-en":"Consented at","example":"2026-10-21T03:30:00.000Z"}
        consent_receipt_sent_at: {"type":["string","null"],"format":"date-time","description":"Constancia enviada el","x-description-en":"Receipt sent at","example":"2026-10-21T03:31:00.000Z"}
        manage_url: {"type":"string","maxLength":300,"description":"Enlace de gestión del comprador","x-description-en":"Buyer management link","example":"https://example.com/manage-method/0b8f3c1e/0123456789abcdef0123456789abcdef"}
        created_at: {"type":"string","format":"date-time","description":"Creado el","x-description-en":"Created at","example":"2026-10-21T03:30:00.000Z"}
    SessionLineView:
      type: object
      required: ["name","sku","description","image_url","quantity","currency","unit_amount","line_amount","charge_amount"]
      properties:
        product_uuid: {"type":"string","format":"uuid","description":"Producto","x-description-en":"Product","example":"5a1f0e2d-3c4b-4a59-8e7d-6c5b4a3f2e1d"}
        name: {"type":"string","maxLength":80,"description":"Nombre","x-description-en":"Name","example":"Harina de maíz"}
        sku: {"type":["string","null"],"maxLength":64,"description":"SKU","x-description-en":"SKU","example":"HAR-001"}
        description: {"type":["string","null"],"maxLength":255,"description":"Descripción","x-description-en":"Description","example":"Paquete de 1 kg"}
        image_url: {"type":["string","null"],"maxLength":500,"description":"Foto","x-description-en":"Photo","example":"https://example.com/cash/products/5a1f0e2d/ab12.jpg"}
        quantity: {"type":"integer","minimum":1,"maximum":999,"description":"Cantidad","x-description-en":"Quantity","example":2}
        currency: {"type":"string","minLength":3,"maxLength":3,"description":"Moneda","x-description-en":"Currency","example":"USD"}
        unit_amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Precio unitario","x-description-en":"Unit price","example":"25.0000"}
        line_amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Importe de la línea","x-description-en":"Line amount","example":"50.0000"}
        charge_amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Importe cobrado","x-description-en":"Charged amount","example":"1825.0000"}
    SessionView:
      type: object
      required: ["uuid","cart_uuid","cart_version","status","method","connection_uuid","currency","original_amount","charge_currency","amount","rate","rate_value_date","pay_by","report_until","payment_link_uuid","payment_uuid","max_installments","review","second_payment_uuids","paid_after_cart_closed","items","created_at"]
      properties:
        uuid: {"type":"string","format":"uuid","description":"Sesión","x-description-en":"Session","example":"5a1f0e2d-3c4b-4a59-8e7d-6c5b4a3f2e1d"}
        cart_uuid: {"type":"string","format":"uuid","description":"Cart","x-description-en":"Cart","example":"5a1f0e2d-3c4b-4a59-8e7d-6c5b4a3f2e1d"}
        cart_version: {"type":"integer","minimum":1,"description":"Versión del cart","x-description-en":"Cart version","example":1}
        status: {"type":"string","enum":["OPEN","PAID","FAILED","EXPIRED"],"description":"OPEN: esperando el pago dentro de pay_by. PAID: pago confirmado. FAILED: la pasarela no abrió o el intento falló. EXPIRED: venció o el comprador cambió de método y se cerró.","x-description-en":"OPEN: waiting for payment within pay_by. PAID: payment confirmed. FAILED: the gateway did not open or the attempt failed. EXPIRED: it expired or the buyer switched method and it was closed.","example":"OPEN"}
        method: {"type":"string","maxLength":24,"description":"REDIRECT (pasarela), REPORTED_PAYMENT (pago móvil con referencia), IMMEDIATE_DEBIT o C2P. El comprador que repite cart, conexión, método y monto con la cookie de su sesión recibe la misma sesión abierta en vez de una nueva; si cambia de método, la anterior se cierra y libera su reserva.","x-description-en":"REDIRECT (gateway), REPORTED_PAYMENT (mobile payment with a reference), IMMEDIATE_DEBIT or C2P. A buyer who repeats cart, connection, method and amount with their session cookie gets the same open session instead of a new one; on a method change the previous one is closed and releases its reservation.","example":"REDIRECT"}
        connection_uuid: {"type":"string","format":"uuid","description":"Conexión","x-description-en":"Connection","example":"0b6f3c1e-9a2d-4c5b-8e7f-1a2b3c4d5e6f"}
        currency: {"type":"string","minLength":3,"maxLength":3,"description":"Moneda de las líneas de la foto; si las líneas eran de varias monedas es VES.","x-description-en":"Currency of the snapshot lines; if the lines were in several currencies it is VES.","example":"USD"}
        original_amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Total en la moneda de las líneas, sin incluir las líneas voluntarias que el comprador dejó sin monto.","x-description-en":"Total in the currency of the lines, excluding voluntary lines the buyer left without an amount.","example":"50.0000"}
        charge_currency: {"type":"string","minLength":3,"maxLength":3,"description":"Moneda de cobro","x-description-en":"Charge currency","example":"VES"}
        amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Total que se cobra en la moneda de cobro de la conexión, con un único redondeo sobre el total. Queda fijo hasta pay_by aunque cambien el cart o las tasas.","x-description-en":"Total charged in the charge currency of the connection, with a single rounding over the total. It stays fixed until pay_by even if the cart or the rates change.","example":"1825.0000"}
        rate: {"type":["string","null"],"maxLength":24,"description":"Tasa aplicada cuando las líneas estaban en otra moneda y se cobró en VES; null en otro caso.","x-description-en":"Rate applied when the lines were in another currency and the charge was in VES; null otherwise.","example":"36.50000000"}
        rate_value_date: {"type":["string","null"],"minLength":10,"maxLength":10,"description":"Fecha de la tasa","x-description-en":"Rate date","example":"2026-11-06"}
        pay_by: {"type":"string","format":"date-time","description":"Fin de la oferta: el menor entre la apertura más session_minutes, el vencimiento de la pasarela y expires_at del cart. Un pago con instante posterior es tardío y no cierra la venta: queda en revisión (review.reason LATE) hasta que el comercio lo acepte o lo rechace. Si el proveedor sólo da la fecha, el pago del día de pay_by (zona de la cuenta) cuenta en plazo.","x-description-en":"End of the offer: the earliest of the opening plus session_minutes, the gateway expiry and the cart expires_at. A payment with a later instant is late and does not close the sale: it stays under review (review.reason LATE) until the merchant accepts or rejects it. If the provider only gives the date, a payment dated on the pay_by day (account time zone) counts as on time.","example":"2026-11-06T15:00:00Z"}
        report_until: {"type":["string","null"],"format":"date-time","description":"Sólo en REPORTED_PAYMENT: hasta cuándo puede reportar su referencia el comprador.","x-description-en":"Only for REPORTED_PAYMENT: until when the buyer can report their reference.","example":"2026-11-06T15:00:00Z"}
        payment_link_uuid: {"type":["string","null"],"format":"uuid","description":"Link de pago","x-description-en":"Payment link","example":"5a1f0e2d-3c4b-4a59-8e7d-6c5b4a3f2e1d"}
        payment_uuid: {"type":["string","null"],"format":"uuid","description":"Pago","x-description-en":"Payment","example":"5a1f0e2d-3c4b-4a59-8e7d-6c5b4a3f2e1d"}
        max_installments: {"type":["integer","null"],"minimum":2,"maximum":36,"description":"Cuotas máximas ofrecidas en esta sesión; null si no hay cuotas.","x-description-en":"Maximum installments offered in this session; null when there are none.","example":6}
        review: {"oneOf":[{"$ref":"#/components/schemas/ReviewView"},{"type":"null"}],"description":"Presente cuando un pago llegó pero no cerró la venta y espera decisión: LATE (después de pay_by), BEFORE_OFFER (anterior a la apertura) o AMOUNT_MISMATCH (en plazo por otro monto). Se resuelve con POST /v1/checkout-sessions/{uuid}/review.","x-description-en":"Present when a payment arrived but did not close the sale and awaits a decision: LATE (after pay_by), BEFORE_OFFER (before the opening) or AMOUNT_MISMATCH (on time for a different amount). Resolved with POST /v1/checkout-sessions/{uuid}/review."}
        second_payment_uuids: {"type":"array","maxItems":20,"items":{"type":"string","format":"uuid"},"description":"Pagos registrados que no se ligaron a la sesión porque ya tenía otro pago ligado o en revisión; el comercio los atiende aparte.","x-description-en":"Payments recorded but not linked to the session because it already had another linked or under-review payment; the merchant handles them separately."}
        paid_after_cart_closed: {"type":"boolean","description":"true si la sesión se pagó cuando el cart ya estaba desactivado, cancelado o borrado. La venta se registra igual y se avisa; vencer o agotarse no cuentan como cierre.","x-description-en":"true if the session was paid when the cart was already inactive, canceled or deleted. The sale is recorded and notified anyway; expiring or being exhausted does not count as closing.","example":false}
        items: {"type":"array","maxItems":20,"items":{"$ref":"#/components/schemas/SessionLineView"},"description":"Foto de las líneas al abrir la sesión. Una línea voluntaria sin monto no aparece. Sólo viene en el detalle.","x-description-en":"Snapshot of the lines when the session was opened. A voluntary line without an amount does not appear. Only present in the detail."}
        created_at: {"type":"string","format":"date-time","description":"Creada el","x-description-en":"Created at","example":"2026-11-06T14:00:00Z"}
    SplitAccountBody:
      type: object
      required: ["name","identification","contact_email","contact_phone","bank_code","payment_phone_or_cnta"]
      properties:
        name: {"type":"string","minLength":2,"maxLength":120,"description":"Nombre o razón social","x-description-en":"Name","example":"MARKET DESH 777, C.A."}
        identification: {"type":"string","minLength":6,"maxLength":24,"description":"RIF o cédula","x-description-en":"Tax ID","example":"J502889701"}
        contact_email: {"type":"string","format":"email","maxLength":191,"description":"Correo de contacto","x-description-en":"Contact email","example":"ventas@aliado.example"}
        contact_phone: {"type":"string","pattern":"^[0-9]+$","maxLength":20,"description":"Teléfono de contacto","x-description-en":"Contact phone","example":"04144741641"}
        bank_code: {"type":"string","pattern":"^[0-9]+$","minLength":4,"maxLength":4,"description":"Código del banco","x-description-en":"Bank code","example":"0191"}
        payment_phone_or_cnta: {"type":"string","pattern":"^[0-9]+$","minLength":10,"maxLength":32,"description":"Cuenta o teléfono de pago","x-description-en":"Account or payment phone","example":"01910181912100090353"}
    SplitAccountView:
      type: object
      required: ["name","identification","contact_email","contact_phone","bank_code","payment_phone_or_cnta"]
      properties:
        name: {"type":"string","maxLength":120,"description":"Nombre o razón social","x-description-en":"Name","example":"MARKET DESH 777, C.A."}
        identification: {"type":"string","maxLength":20,"description":"RIF o cédula","x-description-en":"Tax ID","example":"J502889701"}
        contact_email: {"type":"string","maxLength":191,"description":"Correo de contacto","x-description-en":"Contact email","example":"ventas@aliado.example"}
        contact_phone: {"type":"string","maxLength":20,"description":"Teléfono de contacto","x-description-en":"Contact phone","example":"04144741641"}
        bank_code: {"type":"string","minLength":4,"maxLength":4,"description":"Código del banco","x-description-en":"Bank code","example":"0191"}
        payment_phone_or_cnta: {"type":"string","maxLength":32,"description":"Cuenta o teléfono de pago","x-description-en":"Account or payment phone","example":"01910181912100090353"}
    SplitBody:
      type: object
      required: ["partners"]
      properties:
        owner: {"oneOf":[{"$ref":"#/components/schemas/SplitShareBody"},{"type":"null"}],"description":"Parte del comercio. Omitida: recibe el resto.","x-description-en":"Merchant share. Omitted: it receives the remainder."}
        partners: {"type":"array","minItems":1,"maxItems":10,"items":{"$ref":"#/components/schemas/SplitPartnerBody"},"description":"Partners","x-description-en":"Partners"}
    SplitPartnerAmountView:
      type: object
      required: ["partner_uuid","amount"]
      properties:
        partner_uuid: {"type":"string","format":"uuid","description":"Partner","x-description-en":"Partner","example":"9d1c2b0a-5e3f-4a7b-8c6d-1e2f3a4b5c6d"}
        amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Parte del partner","x-description-en":"Partner share","example":"250.0000"}
    SplitPartnerBody:
      type: object
      required: ["account","type"]
      properties:
        account: {"allOf":[{"$ref":"#/components/schemas/SplitAccountBody"}],"description":"Cuenta del partner","x-description-en":"Partner account"}
        type: {"type":"string","enum":["PERCENT","AMOUNT"],"description":"Tipo de parte","x-description-en":"Share type","example":"AMOUNT"}
        value: {"type":"string","maxLength":16,"description":"Valor","x-description-en":"Value","example":"25.00"}
        observations: {"type":"string","maxLength":120,"description":"Observaciones","x-description-en":"Observations","example":"Liquidación aliado"}
    SplitPartnerView:
      type: object
      required: ["account","type","value","observations"]
      properties:
        partner_uuid: {"type":"string","format":"uuid","description":"Partner","x-description-en":"Partner","example":"9d1c2b0a-5e3f-4a7b-8c6d-1e2f3a4b5c6d"}
        account: {"allOf":[{"$ref":"#/components/schemas/SplitAccountView"}],"description":"Cuenta del partner","x-description-en":"Partner account"}
        type: {"type":"string","enum":["PERCENT","AMOUNT"],"description":"Tipo de parte","x-description-en":"Share type","example":"AMOUNT"}
        value: {"type":"string","maxLength":16,"description":"Valor","x-description-en":"Value","example":"25.00"}
        observations: {"type":"string","maxLength":120,"description":"Observaciones","x-description-en":"Observations","example":"Liquidación aliado"}
    SplitReceiverView:
      type: object
      required: ["receiver","partner_uuid","status","amount","amount_credited","bank_commissions","spidi_credit_id","bank_reference_id","credited_at"]
      properties:
        receiver: {"type":"string","enum":["OWNER","PARTNER"],"description":"Receptor","x-description-en":"Receiver","example":"PARTNER"}
        partner_uuid: {"type":["string","null"],"format":"uuid","description":"Partner","x-description-en":"Partner","example":"9d1c2b0a-5e3f-4a7b-8c6d-1e2f3a4b5c6d"}
        status: {"type":"string","enum":["PENDING","CREDITED"],"description":"Estado de la acreditación","x-description-en":"Credit status","example":"CREDITED"}
        amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Parte calculada","x-description-en":"Calculated share","example":"250.0000"}
        amount_credited: {"oneOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}],"description":"Monto acreditado","x-description-en":"Credited amount","example":"249.8700"}
        bank_commissions: {"oneOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}],"description":"Comisiones bancarias","x-description-en":"Bank commissions","example":"0.1300"}
        spidi_credit_id: {"type":["string","null"],"maxLength":64,"description":"Acreditación en la pasarela","x-description-en":"Gateway credit","example":"36246"}
        bank_reference_id: {"type":["string","null"],"maxLength":128,"description":"Referencia bancaria de la acreditación","x-description-en":"Credit bank reference","example":"00007905|0,04"}
        credited_at: {"type":["string","null"],"format":"date-time","description":"Acreditado el","x-description-en":"Credited at","example":"2026-10-20T18:23:28Z"}
    SplitResolutionView:
      type: object
      required: ["currency","total","owner_amount","partners"]
      properties:
        currency: {"type":"string","enum":["ARS","BOB","BRL","CLP","COP","CRC","CUP","DOP","EUR","GTQ","HNL","MXN","NIO","PAB","PEN","PYG","USD","UYU","VES"],"description":"Moneda de cobro","x-description-en":"Charge currency","example":"VES"}
        total: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Total repartido","x-description-en":"Split total","example":"914.5700"}
        owner_amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Parte del comercio","x-description-en":"Merchant share","example":"664.5700"}
        partners: {"type":"array","maxItems":10,"items":{"$ref":"#/components/schemas/SplitPartnerAmountView"},"description":"Partes de los partners","x-description-en":"Partner shares"}
    SplitShareBody:
      type: object
      required: ["type"]
      properties:
        type: {"type":"string","enum":["PERCENT","AMOUNT"],"description":"PERCENT es un porcentaje del total y AMOUNT un monto en la moneda de cobro de la conexión.","x-description-en":"PERCENT is a percentage of the total and AMOUNT an amount in the charge currency of the connection.","example":"PERCENT"}
        value: {"type":"string","maxLength":16,"description":"Número decimal con hasta dos decimales. Omitido o vacío: recibe lo que reste. A lo sumo un participante lo deja vacío.","x-description-en":"Decimal number with up to two decimals. Omitted or empty: receives the remainder. At most one participant leaves it empty.","example":"10.00"}
    SplitShareView:
      type: object
      required: ["type","value"]
      properties:
        type: {"type":"string","enum":["PERCENT","AMOUNT"],"description":"Tipo de parte","x-description-en":"Share type","example":"PERCENT"}
        value: {"type":"string","maxLength":16,"description":"Valor","x-description-en":"Value","example":"10.00"}
    SplitView:
      type: object
      required: ["owner","partners"]
      properties:
        owner: {"allOf":[{"$ref":"#/components/schemas/SplitShareView"}],"description":"Parte del comercio","x-description-en":"Merchant share"}
        partners: {"type":"array","maxItems":10,"items":{"$ref":"#/components/schemas/SplitPartnerView"},"description":"Partners","x-description-en":"Partners"}
    SubscriptionAmountBody:
      type: object
      required: ["amount"]
      properties:
        amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Monto","x-description-en":"Amount","example":"24.9000"}
    SubscriptionCreateBody:
      type: object
      required: ["customer_uuid","connection_uuid","title","amount","currency","interval"]
      properties:
        customer_uuid: {"type":"string","format":"uuid","description":"Cliente","x-description-en":"Customer","example":"6f1c2a9e-3b7d-4e8a-9c21-5d4e3f2a1b0c"}
        connection_uuid: {"type":"string","format":"uuid","description":"Conexión","x-description-en":"Connection","example":"6f1c2a9e-3b7d-4e8a-9c21-5d4e3f2a1b0c"}
        saved_method_uuid: {"type":"string","format":"uuid","description":"Método guardado","x-description-en":"Saved method","example":"6f1c2a9e-3b7d-4e8a-9c21-5d4e3f2a1b0c"}
        title: {"type":"string","minLength":1,"maxLength":120,"description":"Título","x-description-en":"Title","example":"Plan mensual"}
        amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Monto","x-description-en":"Amount","example":"19.9000"}
        currency: {"type":"string","minLength":3,"maxLength":3,"description":"Moneda","x-description-en":"Currency","example":"USD"}
        interval: {"allOf":[{"$ref":"#/components/schemas/IntervalBody"}],"description":"Periodicidad","x-description-en":"Interval"}
        repetitions: {"type":["integer","null"],"minimum":1,"maximum":1000,"description":"Cobros que dura","x-description-en":"Number of charges","example":12}
        trial_days: {"type":"integer","minimum":0,"maximum":365,"description":"Días de prueba","x-description-en":"Trial days","example":0}
        setup_amount: {"allOf":[{"$ref":"#/components/schemas/Money"}],"description":"Cobro inicial","x-description-en":"Setup amount","example":"0.0000"}
        external_reference: {"type":"string","maxLength":120,"description":"Referencia externa","x-description-en":"External reference","example":"sub-77"}
    SubscriptionEventData:
      type: object
      required: ["merchant_subscription"]
      properties:
        merchant_subscription: {"allOf":[{"$ref":"#/components/schemas/MerchantSubscriptionView"}],"description":"Suscripción","x-description-en":"Subscription"}
    TodayRatesView:
      type: object
      required: ["value_date","usd","eur"]
      properties:
        value_date: {"type":"string","format":"date","description":"Día al que rige la tasa","x-description-en":"Day the rate applies to","example":"2026-10-20"}
        usd: {"allOf":[{"$ref":"#/components/schemas/Rate"}],"description":"Bolívares por dólar","x-description-en":"Bolivars per US dollar","example":"36.58290000"}
        eur: {"allOf":[{"$ref":"#/components/schemas/Rate"}],"description":"Bolívares por euro","x-description-en":"Bolivars per euro","example":"42.12340000"}
    TraceSubjectView:
      type: object
      required: ["type","uuid"]
      properties:
        type: {"type":"string","enum":["PAYMENT","PAYMENT_CHECK","INBOUND_NOTIFICATION","IMMEDIATE_DEBIT","C2P_CHARGE","PAYMENT_LINK","SPIDI_ONBOARDING","CONNECTION","BILLING_PAYMENT","FISCAL_INVOICE","SUBSCRIPTION","WEBHOOK_MESSAGE","PLATFORM"],"description":"Tipo de objeto","x-description-en":"Object type","example":"PAYMENT"}
        uuid: {"type":"string","format":"uuid","description":"Objeto","x-description-en":"Object","example":"6f1c2b3a-9d4e-4f50-8a61-7b8c9d0e1f23"}
    TraceSummaryView:
      type: object
      required: ["uuid","connection_uuid","provider","operation","direction","subject","attempt","request_method","request_url","response_status","outcome","error_code","request_sent_at","response_received_at","duration_ms","request_body_bytes","response_body_bytes","encrypted","request_id","created_at"]
      properties:
        uuid: {"type":"string","format":"uuid","description":"Registro","x-description-en":"Record","example":"5c0a5b0e-0000-4000-8000-000000000401"}
        connection_uuid: {"type":["string","null"],"format":"uuid","description":"Conexión","x-description-en":"Connection","example":"0b6f3c1e-9a2d-4c5b-8e7f-1a2b3c4d5e6f"}
        provider: {"type":"string","maxLength":24,"description":"Proveedor","x-description-en":"Provider","example":"BANCARIBE_P2P"}
        operation: {"type":"string","maxLength":40,"description":"Operación","x-description-en":"Operation","example":"DEBIT_CONFIRM"}
        direction: {"type":"string","enum":["OUTBOUND","INBOUND"],"description":"Sentido","x-description-en":"Direction","example":"OUTBOUND"}
        subject: {"allOf":[{"$ref":"#/components/schemas/TraceSubjectView"}],"description":"Objeto","x-description-en":"Object"}
        attempt: {"type":"integer","minimum":1,"description":"Intento","x-description-en":"Attempt","example":1}
        request_method: {"type":"string","maxLength":8,"description":"Método","x-description-en":"Method","example":"POST"}
        request_url: {"type":"string","maxLength":4096,"description":"Dirección","x-description-en":"URL","example":"https://example.com/v1/debito"}
        response_status: {"type":["integer","null"],"minimum":100,"maximum":599,"description":"Código de respuesta","x-description-en":"Response status","example":200}
        outcome: {"type":"string","enum":["OK","PROVIDER_ERROR","TIMEOUT","NETWORK_ERROR","REJECTED"],"description":"Resultado","x-description-en":"Outcome","example":"OK"}
        error_code: {"type":["string","null"],"maxLength":64,"description":"Código de error","x-description-en":"Error code","example":"timeout"}
        request_sent_at: {"type":"string","format":"date-time","description":"Enviado el","x-description-en":"Sent at","example":"2026-10-20T10:09:00.118234-04:00"}
        response_received_at: {"type":["string","null"],"format":"date-time","description":"Respuesta recibida el","x-description-en":"Response received at","example":"2026-10-20T10:09:00.671402-04:00"}
        duration_ms: {"type":"string","maxLength":16,"description":"Duración en milisegundos","x-description-en":"Duration in milliseconds","example":"553.168"}
        request_body_bytes: {"type":"integer","minimum":0,"description":"Bytes enviados","x-description-en":"Bytes sent","example":412}
        response_body_bytes: {"type":"integer","minimum":0,"description":"Bytes recibidos","x-description-en":"Bytes received","example":1280}
        encrypted: {"type":"boolean","description":"Cuerpo cifrado","x-description-en":"Encrypted body","example":false}
        request_id: {"type":["string","null"],"maxLength":36,"description":"Petición","x-description-en":"Request","example":"9c8b7a6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d"}
        created_at: {"type":"string","format":"date-time","description":"Creado el","x-description-en":"Created at","example":"2026-10-20T10:09:00.671402-04:00"}
    TraceView:
      type: object
      required: ["uuid","connection_uuid","provider","operation","direction","subject","attempt","request_method","request_url","response_status","outcome","error_code","request_sent_at","response_received_at","duration_ms","request_body_bytes","response_body_bytes","encrypted","request_id","created_at","request_headers","request_body_wire","request_body_plain","request_body_encoding","request_body_truncated","response_headers","response_body_wire","response_body_plain","response_body_encoding","response_body_truncated","error_detail"]
      properties:
        uuid: {"type":"string","format":"uuid","description":"Registro","x-description-en":"Record","example":"5c0a5b0e-0000-4000-8000-000000000401"}
        connection_uuid: {"type":["string","null"],"format":"uuid","description":"Conexión","x-description-en":"Connection","example":"0b6f3c1e-9a2d-4c5b-8e7f-1a2b3c4d5e6f"}
        provider: {"type":"string","maxLength":24,"description":"Proveedor","x-description-en":"Provider","example":"BANCARIBE_P2P"}
        operation: {"type":"string","maxLength":40,"description":"Operación","x-description-en":"Operation","example":"DEBIT_CONFIRM"}
        direction: {"type":"string","enum":["OUTBOUND","INBOUND"],"description":"Sentido","x-description-en":"Direction","example":"OUTBOUND"}
        subject: {"allOf":[{"$ref":"#/components/schemas/TraceSubjectView"}],"description":"Objeto","x-description-en":"Object"}
        attempt: {"type":"integer","minimum":1,"description":"Intento","x-description-en":"Attempt","example":1}
        request_method: {"type":"string","maxLength":8,"description":"Método","x-description-en":"Method","example":"POST"}
        request_url: {"type":"string","maxLength":4096,"description":"Dirección","x-description-en":"URL","example":"https://example.com/v1/debito"}
        response_status: {"type":["integer","null"],"minimum":100,"maximum":599,"description":"Código de respuesta","x-description-en":"Response status","example":200}
        outcome: {"type":"string","enum":["OK","PROVIDER_ERROR","TIMEOUT","NETWORK_ERROR","REJECTED"],"description":"Resultado","x-description-en":"Outcome","example":"OK"}
        error_code: {"type":["string","null"],"maxLength":64,"description":"Código de error","x-description-en":"Error code","example":"timeout"}
        request_sent_at: {"type":"string","format":"date-time","description":"Enviado el","x-description-en":"Sent at","example":"2026-10-20T10:09:00.118234-04:00"}
        response_received_at: {"type":["string","null"],"format":"date-time","description":"Respuesta recibida el","x-description-en":"Response received at","example":"2026-10-20T10:09:00.671402-04:00"}
        duration_ms: {"type":"string","maxLength":16,"description":"Duración en milisegundos","x-description-en":"Duration in milliseconds","example":"553.168"}
        request_body_bytes: {"type":"integer","minimum":0,"description":"Bytes enviados","x-description-en":"Bytes sent","example":412}
        response_body_bytes: {"type":"integer","minimum":0,"description":"Bytes recibidos","x-description-en":"Bytes received","example":1280}
        encrypted: {"type":"boolean","description":"Cuerpo cifrado","x-description-en":"Encrypted body","example":false}
        request_id: {"type":["string","null"],"maxLength":36,"description":"Petición","x-description-en":"Request","example":"9c8b7a6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d"}
        created_at: {"type":"string","format":"date-time","description":"Creado el","x-description-en":"Created at","example":"2026-10-20T10:09:00.671402-04:00"}
        request_headers: {"type":["object","null"],"additionalProperties":true,"description":"Cabeceras enviadas","x-description-en":"Request headers"}
        request_body_wire: {"type":["string","null"],"maxLength":2000000,"description":"Cuerpo enviado tal como viajó","x-description-en":"Request body as sent","example":"{\"amount\":\"100.00\"}"}
        request_body_plain: {"type":["string","null"],"maxLength":2000000,"description":"Cuerpo enviado en claro","x-description-en":"Request body in clear","example":"{\"amount\":\"100.00\"}"}
        request_body_encoding: {"type":"string","enum":["TEXT","BASE64"],"description":"Codificación del cuerpo enviado","x-description-en":"Request body encoding","example":"TEXT"}
        request_body_truncated: {"type":"boolean","description":"Cuerpo enviado truncado","x-description-en":"Request body truncated","example":false}
        response_headers: {"type":["object","null"],"additionalProperties":true,"description":"Cabeceras recibidas","x-description-en":"Response headers"}
        response_body_wire: {"type":["string","null"],"maxLength":2000000,"description":"Cuerpo recibido tal como llegó","x-description-en":"Response body as received","example":"{\"status\":\"ACCP\"}"}
        response_body_plain: {"type":["string","null"],"maxLength":2000000,"description":"Cuerpo recibido en claro","x-description-en":"Response body in clear","example":"{\"status\":\"ACCP\"}"}
        response_body_encoding: {"type":"string","enum":["TEXT","BASE64"],"description":"Codificación del cuerpo recibido","x-description-en":"Response body encoding","example":"TEXT"}
        response_body_truncated: {"type":"boolean","description":"Cuerpo recibido truncado","x-description-en":"Response body truncated","example":false}
        error_detail: {"type":["string","null"],"maxLength":1024,"description":"Detalle del error","x-description-en":"Error detail","example":"context deadline exceeded"}
    UsageCounterView:
      type: object
      required: ["used","limit"]
      properties:
        used: {"type":"integer","minimum":0,"description":"Usado","x-description-en":"Used","example":120}
        limit: {"type":"integer","minimum":0,"description":"Tope","x-description-en":"Limit","example":15000}
    UsageView:
      type: object
      required: ["plan_code","access_state","paid_through","timezone","period_key","period_starts_at","period_ends_at","monthly_accepted_payments","connections"]
      properties:
        plan_code: {"type":"string","maxLength":16,"description":"Plan","x-description-en":"Plan","example":"PRO"}
        access_state: {"type":"string","maxLength":16,"description":"Estado de acceso","x-description-en":"Access state","example":"ACTIVE"}
        paid_through: {"type":["string","null"],"format":"date","description":"Pagado hasta","x-description-en":"Paid through","example":"2026-11-19"}
        timezone: {"type":"string","maxLength":64,"description":"Zona horaria","x-description-en":"Time zone","example":"America/Caracas"}
        period_key: {"type":"string","minLength":7,"maxLength":7,"description":"Mes","x-description-en":"Month","example":"2026-10"}
        period_starts_at: {"type":"string","format":"date-time","description":"Inicio del mes","x-description-en":"Month start","example":"2026-10-01T04:00:00Z"}
        period_ends_at: {"type":"string","format":"date-time","description":"Fin del mes","x-description-en":"Month end","example":"2026-11-01T04:00:00Z"}
        monthly_accepted_payments: {"allOf":[{"$ref":"#/components/schemas/UsageCounterView"}],"description":"Pagos aceptados del mes","x-description-en":"Accepted payments of the month"}
        connections: {"allOf":[{"$ref":"#/components/schemas/UsageCounterView"}],"description":"Conexiones","x-description-en":"Connections"}
    WebhookEventTypeView:
      type: object
      required: ["type","description"]
      properties:
        type: {"type":"string","maxLength":48,"description":"Tipo de evento","x-description-en":"Event type","example":"payment.accepted"}
        description: {"type":"string","maxLength":255,"description":"Descripción","x-description-en":"Description","example":"Un pago fue aceptado"}
    # END GENERATED SCHEMAS
