{"openapi":"3.1.0","info":{"title":"Alibanca API","version":"0.42.2","description":"Dispersión de remesas con money-safety. Todo endpoint de dinero es signature-gated: se firma el sobre canónico method\\0path\\0apiKey\\0idempotency-key\\0body\\0nonce con la privada RSA del remesador. La autoridad de conciliación es GET /v2/payments/:id (el webhook es solo notificación)."},"components":{"securitySchemes":{"SignedRequest":{"type":"apiKey","in":"header","name":"x-signature","description":"Requiere x-api-key + x-nonce + x-signature (RSA-SHA256 sobre el sobre canónico). Ver la descripción del API."}},"schemas":{}},"paths":{"/v2/payments":{"post":{"summary":"Create a payment intent","tags":["Payments"],"description":"Reserve funds and dispatch a payout. Signed request; the idempotency-key header is part of the signed envelope and makes retries safe (a repeat returns the original intent, 200).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["amountMinor","currency"],"properties":{"amountMinor":{"type":"string","pattern":"^[1-9][0-9]{0,37}$","description":"NUMERIC(38,0) minor units, as a string (never a float). Positive integer, no sign, no decimal point, no leading zero, max 38 digits."},"quoteId":{"type":"string","pattern":"^[1-9][0-9]{0,18}$","description":"The id of a quote from POST /v2/quotes. Send it when your wallet currency differs from the currency your beneficiary receives — that payment is REJECTED without it. When present, amountMinor MUST equal the quote sourceAmountMinor (the source leg; your wallet is debited it PLUS the payment's comisionMinor); a mismatch is a 400 naming both numbers, never a silent reprice. A quote that expired, drifted against us, or was already spent by another payment is a 409; one that is not yours is a 404, indistinguishable from one that does not exist. Example: \"9134\"."},"currency":{"type":"string","description":"MUST equal the currency of your wallet: the `currency` that GET /v2/balance returns (today a wallet is in USD or in VES). A mismatch is rejected with 400 naming the expected currency — it is NOT a 500. An enum alone would not catch it: both are valid ledger currencies; the defect is the mismatch with YOUR wallet. Example: \"USD\"."},"beneficiaryId":{"type":"string","description":"A saved beneficiary id (Lane E4). Mutually exclusive with rail+beneficiary."},"rail":{"type":"string","enum":["PM","CCE"],"description":"Which rail moves the money, and therefore what `beneficiary` must contain. \"PM\" = Pago Móvil: the destination is a MOBILE PHONE. \"CCE\" = interbank transfer: the destination is a BANK ACCOUNT."},"beneficiary":{"type":"string","description":"Inline destination, whose FORMAT depends on `rail`. With rail \"PM\": the beneficiary mobile number, 11 digits including the leading 0 (example: \"04141234567\"). With rail \"CCE\": the beneficiary bank account, 20 digits. Not format-checked here: a malformed destination is rejected by the rail and surfaces as the reason code `invalid_phone_number`. Mutually exclusive with `beneficiaryId`."},"bankCode":{"type":"string","pattern":"^[0-9]{4}$","description":"The beneficiary's BANK, as the 4-digit BCV code (for example \"0102\"). REQUIRED with rail \"PM\": the rail rejects a Pago Móvil without it, and we cannot derive it — a mobile prefix like 0414 identifies the CARRIER, not the bank. ALSO REQUIRED with rail \"CCE\": it is the CREDITOR bank of the interbank message, and the rail cannot be addressed without it. It must also match the first 4 digits of the destination account — a mismatch is a 400 and the payment is never created. IMMUTABLE after creation, like the rest of the destination."},"docType":{"type":"string","enum":["V","E","J","P","G"],"description":"The beneficiary's ID document TYPE. REQUIRED for rails \"PM\" AND \"CCE\": Venezuelan mobile payments identify the recipient, and the CCE interbank message carries the document too. PAIRED with `docNumber`."},"docNumber":{"type":"string","pattern":"^[0-9]{1,15}$","description":"The beneficiary's ID document NUMBER, digits only, no prefix (the prefix is `docType`). REQUIRED for rails \"PM\" AND \"CCE\". PAIRED with `docType`."},"beneficiaryName":{"type":"string","minLength":1,"maxLength":35,"description":"The beneficiary's NAME as it must appear in the interbank message, max 35 characters. REQUIRED with rail \"CCE\"; not used by rail \"PM\", which identifies the recipient by document instead. This is NOT `alias` — `alias` is your own editable label. IMMUTABLE after creation, like the rest of the destination."}},"allOf":[{"if":{"properties":{"rail":{"enum":["PM"]}},"required":["rail"],"not":{"required":["beneficiaryId"]}},"then":{"required":["bankCode","docType","docNumber"]}},{"if":{"properties":{"rail":{"enum":["CCE"]}},"required":["rail"],"not":{"required":["beneficiaryId"]}},"then":{"required":["bankCode","beneficiaryName","docType","docNumber"]}}]}}}},"parameters":[{"schema":{"type":"string"},"in":"header","name":"x-api-key","required":true,"description":"REQUIRED. sk_test_… (sandbox) or sk_live_… (production)."},{"schema":{"type":"string"},"in":"header","name":"x-nonce","required":true,"description":"REQUIRED. Strictly increasing per api-key (anti-replay). Plain decimal only: ^[1-9][0-9]{0,37}$ — no leading zeros, no sign, no decimal point, no scientific notation, max 38 digits. A malformed nonce is rejected with the same 401 {\"error\":\"nonce replay\"} as a genuine replay."},{"schema":{"type":"string"},"in":"header","name":"idempotency-key","required":true,"description":"REQUIRED; part of the signed envelope."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["status","traceId","payload"],"properties":{"status":{"type":"string","example":"success"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`). Cítalo al reportar una incidencia."},"payload":{"type":"object","additionalProperties":true,"required":["intentId","state","amountMinor","currency","sourceAmountMinor","sourceCurrency","targetAmountMinor","targetCurrency","rail","beneficiary","comisionMinor","createdAt"],"properties":{"intentId":{"type":"string","description":"Decimal integer as a string. NOT prefixed — there is no `pay_` form.","example":"84021"},"state":{"type":"string","enum":["pending","processing","completed","failed","unknown"],"description":"`failed` GUARANTEES no debit occurred (safe to retry with a NEW idempotency-key). `unknown` means do NOT retry — reconciliation is resolving it.","example":"completed"},"subStatus":{"type":["null","string"],"x-valores-conocidos":["reserved","declined","rejected_by_us","wrong_beneficiary","reconciling","at_rail","under_review","funds_returned_unproven","reversed"],"description":"Detalle del `state`. Valores conocidos: reserved, declined, rejected_by_us, wrong_beneficiary, reconciling, at_rail, under_review, funds_returned_unproven, reversed. `at_rail` significa que el riel confirmó tener el pago en vuelo — sigue siendo `unknown`, así que la regla NO cambia: no reemitas.","example":"reconciling"},"amountMinor":{"type":"string","description":"NUMERIC(38,0) minor units, as a string (never a float). This is the SOURCE leg — what the payout moves out of your wallet; the wallet is debited this PLUS `comisionMinor`. For a same-currency payout it equals the target leg; for a cross-currency payout it does NOT, so read `targetAmountMinor` for what the beneficiary receives. The four `source*`/`target*` fields are always present.","example":"150000"},"currency":{"type":"string","description":"The SOURCE currency — the one debited from your wallet. See `amountMinor`.","example":"VES"},"sourceAmountMinor":{"type":"string","description":"The payout amount on the source leg, in minor units of `sourceCurrency`. Your wallet is debited this PLUS `comisionMinor`.","example":"1000"},"sourceCurrency":{"type":"string","description":"The currency debited.","example":"USD"},"targetAmountMinor":{"type":"string","description":"What the BENEFICIARY receives, in minor units of `targetCurrency`. For a same-currency payout this equals `sourceAmountMinor`.","example":"760000"},"targetCurrency":{"type":"string","description":"The currency dispatched.","example":"VES"},"rail":{"type":"string","enum":["PM","CCE"],"example":"PM"},"beneficiary":{"type":"string","description":"The destination this payout was dispatched to.","example":"04141234567"},"comisionMinor":{"type":"string","description":"What WE charged you for this payout, frozen at creation, in minor units of `sourceCurrency` — the same leg the fee is computed on — and debited from your wallet ON TOP of `sourceAmountMinor`. **It is NOT proportional to the amount on small payouts, so you cannot derive it from your tariff — read it here.** A string for the same reason as every amount: a NUMERIC(38,0) does not fit in a JSON number.","example":"12"},"createdAt":{"type":"string","format":"date-time","example":"2026-08-17T14:03:11.000Z"}}}}}}}},"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["status","traceId","payload"],"properties":{"status":{"type":"string","example":"success"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`). Cítalo al reportar una incidencia."},"payload":{"type":"object","additionalProperties":true,"required":["intentId","state","amountMinor","currency","sourceAmountMinor","sourceCurrency","targetAmountMinor","targetCurrency","rail","beneficiary","comisionMinor","createdAt"],"properties":{"intentId":{"type":"string","description":"Decimal integer as a string. NOT prefixed — there is no `pay_` form.","example":"84021"},"state":{"type":"string","enum":["pending","processing","completed","failed","unknown"],"description":"`failed` GUARANTEES no debit occurred (safe to retry with a NEW idempotency-key). `unknown` means do NOT retry — reconciliation is resolving it.","example":"completed"},"subStatus":{"type":["null","string"],"x-valores-conocidos":["reserved","declined","rejected_by_us","wrong_beneficiary","reconciling","at_rail","under_review","funds_returned_unproven","reversed"],"description":"Detalle del `state`. Valores conocidos: reserved, declined, rejected_by_us, wrong_beneficiary, reconciling, at_rail, under_review, funds_returned_unproven, reversed. `at_rail` significa que el riel confirmó tener el pago en vuelo — sigue siendo `unknown`, así que la regla NO cambia: no reemitas.","example":"reconciling"},"amountMinor":{"type":"string","description":"NUMERIC(38,0) minor units, as a string (never a float). This is the SOURCE leg — what the payout moves out of your wallet; the wallet is debited this PLUS `comisionMinor`. For a same-currency payout it equals the target leg; for a cross-currency payout it does NOT, so read `targetAmountMinor` for what the beneficiary receives. The four `source*`/`target*` fields are always present.","example":"150000"},"currency":{"type":"string","description":"The SOURCE currency — the one debited from your wallet. See `amountMinor`.","example":"VES"},"sourceAmountMinor":{"type":"string","description":"The payout amount on the source leg, in minor units of `sourceCurrency`. Your wallet is debited this PLUS `comisionMinor`.","example":"1000"},"sourceCurrency":{"type":"string","description":"The currency debited.","example":"USD"},"targetAmountMinor":{"type":"string","description":"What the BENEFICIARY receives, in minor units of `targetCurrency`. For a same-currency payout this equals `sourceAmountMinor`.","example":"760000"},"targetCurrency":{"type":"string","description":"The currency dispatched.","example":"VES"},"rail":{"type":"string","enum":["PM","CCE"],"example":"PM"},"beneficiary":{"type":"string","description":"The destination this payout was dispatched to.","example":"04141234567"},"comisionMinor":{"type":"string","description":"What WE charged you for this payout, frozen at creation, in minor units of `sourceCurrency` — the same leg the fee is computed on — and debited from your wallet ON TOP of `sourceAmountMinor`. **It is NOT proportional to the amount on small payouts, so you cannot derive it from your tariff — read it here.** A string for the same reason as every amount: a NUMERIC(38,0) does not fit in a JSON number.","example":"12"},"createdAt":{"type":"string","format":"date-time","example":"2026-08-17T14:03:11.000Z"}}}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}},"409":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}},"422":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}},"503":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}}}},"get":{"summary":"List payment intents","tags":["Payments"],"description":"The remesador’s own payouts, keyset-paginated on a descending id. Pass back nextCursor. Signed request.","parameters":[{"schema":{"type":"string"},"in":"query","name":"limit","required":false,"description":"Positive integer (default server-side)."},{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"nextCursor from the previous page."},{"schema":{"type":"string","enum":["pending","processing","completed","failed","unknown"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","enum":["PM","CCE"]},"in":"query","name":"rail","required":false},{"schema":{"type":"string"},"in":"query","name":"createdAfter","required":false,"description":"ISO-8601 (inclusive)."},{"schema":{"type":"string"},"in":"query","name":"createdBefore","required":false,"description":"ISO-8601 (exclusive)."},{"schema":{"type":"string"},"in":"header","name":"x-api-key","required":true,"description":"REQUIRED. sk_test_… (sandbox) or sk_live_… (production)."},{"schema":{"type":"string"},"in":"header","name":"x-nonce","required":true,"description":"REQUIRED. Strictly increasing per api-key (anti-replay). Plain decimal only: ^[1-9][0-9]{0,37}$ — no leading zeros, no sign, no decimal point, no scientific notation, max 38 digits. A malformed nonce is rejected with the same 401 {\"error\":\"nonce replay\"} as a genuine replay."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"status":{"type":"string"},"traceId":{"type":"string"},"payload":{"type":"object","additionalProperties":true,"properties":{"data":{"type":"array","items":{"type":"object","additionalProperties":true,"required":["intentId","state","amountMinor","currency","sourceAmountMinor","sourceCurrency","targetAmountMinor","targetCurrency","rail","beneficiary","comisionMinor","createdAt"],"properties":{"intentId":{"type":"string","description":"Decimal integer as a string. NOT prefixed — there is no `pay_` form.","example":"84021"},"state":{"type":"string","enum":["pending","processing","completed","failed","unknown"],"description":"`failed` GUARANTEES no debit occurred (safe to retry with a NEW idempotency-key). `unknown` means do NOT retry — reconciliation is resolving it.","example":"completed"},"subStatus":{"type":["null","string"],"x-valores-conocidos":["reserved","declined","rejected_by_us","wrong_beneficiary","reconciling","at_rail","under_review","funds_returned_unproven","reversed"],"description":"Detalle del `state`. Valores conocidos: reserved, declined, rejected_by_us, wrong_beneficiary, reconciling, at_rail, under_review, funds_returned_unproven, reversed. `at_rail` significa que el riel confirmó tener el pago en vuelo — sigue siendo `unknown`, así que la regla NO cambia: no reemitas.","example":"reconciling"},"amountMinor":{"type":"string","description":"NUMERIC(38,0) minor units, as a string (never a float). This is the SOURCE leg — what the payout moves out of your wallet; the wallet is debited this PLUS `comisionMinor`. For a same-currency payout it equals the target leg; for a cross-currency payout it does NOT, so read `targetAmountMinor` for what the beneficiary receives. The four `source*`/`target*` fields are always present.","example":"150000"},"currency":{"type":"string","description":"The SOURCE currency — the one debited from your wallet. See `amountMinor`.","example":"VES"},"sourceAmountMinor":{"type":"string","description":"The payout amount on the source leg, in minor units of `sourceCurrency`. Your wallet is debited this PLUS `comisionMinor`.","example":"1000"},"sourceCurrency":{"type":"string","description":"The currency debited.","example":"USD"},"targetAmountMinor":{"type":"string","description":"What the BENEFICIARY receives, in minor units of `targetCurrency`. For a same-currency payout this equals `sourceAmountMinor`.","example":"760000"},"targetCurrency":{"type":"string","description":"The currency dispatched.","example":"VES"},"rail":{"type":"string","enum":["PM","CCE"],"example":"PM"},"beneficiary":{"type":"string","description":"The destination this payout was dispatched to.","example":"04141234567"},"comisionMinor":{"type":"string","description":"What WE charged you for this payout, frozen at creation, in minor units of `sourceCurrency` — the same leg the fee is computed on — and debited from your wallet ON TOP of `sourceAmountMinor`. **It is NOT proportional to the amount on small payouts, so you cannot derive it from your tariff — read it here.** A string for the same reason as every amount: a NUMERIC(38,0) does not fit in a JSON number.","example":"12"},"createdAt":{"type":"string","format":"date-time","example":"2026-08-17T14:03:11.000Z"}}}},"hasMore":{"type":"boolean"},"nextCursor":{"type":["null","string"]}}}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}}}}},"/v2/payments/{id}":{"get":{"summary":"Get a payment intent","tags":["Payments"],"description":"The reconciliation AUTHORITY for one payout: returns state AND amount, currency, rail, destination and createdAt, so you can tie out against your own record. Tenant-scoped (a foreign id is 404). Signed request.","parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true},{"schema":{"type":"string"},"in":"header","name":"x-api-key","required":true,"description":"REQUIRED. sk_test_… (sandbox) or sk_live_… (production)."},{"schema":{"type":"string"},"in":"header","name":"x-nonce","required":true,"description":"REQUIRED. Strictly increasing per api-key (anti-replay). Plain decimal only: ^[1-9][0-9]{0,37}$ — no leading zeros, no sign, no decimal point, no scientific notation, max 38 digits. A malformed nonce is rejected with the same 401 {\"error\":\"nonce replay\"} as a genuine replay."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["status","traceId","payload"],"properties":{"status":{"type":"string","example":"success"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`). Cítalo al reportar una incidencia."},"payload":{"type":"object","additionalProperties":true,"required":["intentId","state","amountMinor","currency","sourceAmountMinor","sourceCurrency","targetAmountMinor","targetCurrency","rail","beneficiary","comisionMinor","createdAt"],"properties":{"intentId":{"type":"string","description":"Decimal integer as a string. NOT prefixed — there is no `pay_` form.","example":"84021"},"state":{"type":"string","enum":["pending","processing","completed","failed","unknown"],"description":"`failed` GUARANTEES no debit occurred (safe to retry with a NEW idempotency-key). `unknown` means do NOT retry — reconciliation is resolving it.","example":"completed"},"subStatus":{"type":["null","string"],"x-valores-conocidos":["reserved","declined","rejected_by_us","wrong_beneficiary","reconciling","at_rail","under_review","funds_returned_unproven","reversed"],"description":"Detalle del `state`. Valores conocidos: reserved, declined, rejected_by_us, wrong_beneficiary, reconciling, at_rail, under_review, funds_returned_unproven, reversed. `at_rail` significa que el riel confirmó tener el pago en vuelo — sigue siendo `unknown`, así que la regla NO cambia: no reemitas.","example":"reconciling"},"amountMinor":{"type":"string","description":"NUMERIC(38,0) minor units, as a string (never a float). This is the SOURCE leg — what the payout moves out of your wallet; the wallet is debited this PLUS `comisionMinor`. For a same-currency payout it equals the target leg; for a cross-currency payout it does NOT, so read `targetAmountMinor` for what the beneficiary receives. The four `source*`/`target*` fields are always present.","example":"150000"},"currency":{"type":"string","description":"The SOURCE currency — the one debited from your wallet. See `amountMinor`.","example":"VES"},"sourceAmountMinor":{"type":"string","description":"The payout amount on the source leg, in minor units of `sourceCurrency`. Your wallet is debited this PLUS `comisionMinor`.","example":"1000"},"sourceCurrency":{"type":"string","description":"The currency debited.","example":"USD"},"targetAmountMinor":{"type":"string","description":"What the BENEFICIARY receives, in minor units of `targetCurrency`. For a same-currency payout this equals `sourceAmountMinor`.","example":"760000"},"targetCurrency":{"type":"string","description":"The currency dispatched.","example":"VES"},"rail":{"type":"string","enum":["PM","CCE"],"example":"PM"},"beneficiary":{"type":"string","description":"The destination this payout was dispatched to.","example":"04141234567"},"comisionMinor":{"type":"string","description":"What WE charged you for this payout, frozen at creation, in minor units of `sourceCurrency` — the same leg the fee is computed on — and debited from your wallet ON TOP of `sourceAmountMinor`. **It is NOT proportional to the amount on small payouts, so you cannot derive it from your tariff — read it here.** A string for the same reason as every amount: a NUMERIC(38,0) does not fit in a JSON number.","example":"12"},"createdAt":{"type":"string","format":"date-time","example":"2026-08-17T14:03:11.000Z"}}}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}}}}},"/v2/balance":{"get":{"summary":"Get funding balance","tags":["Balance"],"description":"The remesador’s own wallet balance. available = booked − held (held = in-flight reservations). Signed request.","parameters":[{"schema":{"type":"string"},"in":"header","name":"x-api-key","required":true,"description":"REQUIRED. sk_test_… (sandbox) or sk_live_… (production)."},{"schema":{"type":"string"},"in":"header","name":"x-nonce","required":true,"description":"REQUIRED. Strictly increasing per api-key (anti-replay). Plain decimal only: ^[1-9][0-9]{0,37}$ — no leading zeros, no sign, no decimal point, no scientific notation, max 38 digits. A malformed nonce is rejected with the same 401 {\"error\":\"nonce replay\"} as a genuine replay."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"status":{"type":"string"},"traceId":{"type":"string"},"payload":{"type":"object","additionalProperties":true,"properties":{"currency":{"type":"string"},"bookedMinor":{"type":"string","pattern":"^[1-9][0-9]{0,37}$","description":"NUMERIC(38,0) minor units, as a string (never a float). Positive integer, no sign, no decimal point, no leading zero, max 38 digits."},"heldMinor":{"type":"string","pattern":"^[1-9][0-9]{0,37}$","description":"NUMERIC(38,0) minor units, as a string (never a float). Positive integer, no sign, no decimal point, no leading zero, max 38 digits."},"availableMinor":{"type":"string","pattern":"^[1-9][0-9]{0,37}$","description":"NUMERIC(38,0) minor units, as a string (never a float). Positive integer, no sign, no decimal point, no leading zero, max 38 digits."}}}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}}}}},"/v2/quotes":{"post":{"summary":"Lock an FX rate into a quote","tags":["Rate"],"description":"Freezes a price so the rate cannot move between reading it and sending the payment. Returns BOTH amounts as integer minor units — never a rate to re-multiply, because the side that rounds must be decided once, by us, and persisted. You fix ONE side with amountType; the other is computed and rounded in Alibanca’s favour (SOURCE rounds the payout DOWN, TARGET rounds the debit UP), so the amount you fixed is always the one you get exactly. SINGLE USE: a quote backs at most one payment, enforced by the database, not by a check. It EXPIRES — expiresAt is in the response, and after it the quote is dead. Signed request; the idempotency-key header is part of the signed envelope and a repeat returns the SAME quote (a retry must not freeze a second price). Fails closed: no rate in force (or one that expires before a full quote would) is 503, not a stale rate.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["amountType","amountMinor"],"properties":{"amountType":{"type":"string","enum":["SOURCE","TARGET"],"description":"Which side you are fixing. SOURCE = the amount the payment takes from your wallet, before the fee (your wallet currency). TARGET = the amount that reaches the beneficiary (VES). The side you fix is authoritative and comes back untouched."},"amountMinor":{"type":"string","pattern":"^[1-9][0-9]{0,37}$","description":"NUMERIC(38,0) minor units, as a string (never a float). Positive integer, no sign, no decimal point, no leading zero, max 38 digits."},"clientRequestId":{"type":"string","description":"Your own correlation id. Echoed back; never interpreted."}}}}}},"parameters":[{"schema":{"type":"string"},"in":"header","name":"x-api-key","required":true,"description":"REQUIRED. sk_test_… (sandbox) or sk_live_… (production)."},{"schema":{"type":"string"},"in":"header","name":"x-nonce","required":true,"description":"REQUIRED. Strictly increasing per api-key (anti-replay). Plain decimal only: ^[1-9][0-9]{0,37}$ — no leading zeros, no sign, no decimal point, no scientific notation, max 38 digits. A malformed nonce is rejected with the same 401 {\"error\":\"nonce replay\"} as a genuine replay."},{"schema":{"type":"string"},"in":"header","name":"idempotency-key","required":true,"description":"REQUIRED; part of the signed envelope. A repeat returns the same quote."}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"status":{"type":"string"},"traceId":{"type":"string"},"payload":{"type":"object","additionalProperties":true,"properties":{"quoteId":{"type":"string"},"amountType":{"type":"string","enum":["SOURCE","TARGET"]},"sourceCurrency":{"type":"string"},"sourceAmountMinor":{"type":"string"},"targetCurrency":{"type":"string"},"targetAmountMinor":{"type":"string"},"rateId":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"}}}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}},"409":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}},"503":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}}}}},"/v2/rate":{"get":{"summary":"Get your FX rate","tags":["Rate"],"description":"YOUR rate: the one that applies to your credential, from your wallet currency to the payout currency (VES). It is the rate Alibanca stands behind for you, not an indication, and the same one POST /v2/quotes uses. Two clients can see different rates. FAILS CLOSED by design: if your rate is not in force you get 503, never a stale rate and never an implicit 1.0 — quoting against a rate nobody published is how a conversion goes wrong silently. A 503 that says no price is assigned is a configuration on our side: contact Alibanca. A wallet whose currency IS the payout currency gets 404: there is no conversion to quote. Signed request.","parameters":[{"schema":{"type":"string"},"in":"header","name":"x-api-key","required":true,"description":"REQUIRED. sk_test_… (sandbox) or sk_live_… (production)."},{"schema":{"type":"string"},"in":"header","name":"x-nonce","required":true,"description":"REQUIRED. Strictly increasing per api-key (anti-replay). Plain decimal only: ^[1-9][0-9]{0,37}$ — no leading zeros, no sign, no decimal point, no scientific notation, max 38 digits. A malformed nonce is rejected with the same 401 {\"error\":\"nonce replay\"} as a genuine replay."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"status":{"type":"string"},"traceId":{"type":"string"},"payload":{"type":"object","additionalProperties":true,"properties":{"rateId":{"type":"string"},"priceId":{"type":"string"},"base":{"type":"string"},"quote":{"type":"string"},"rate":{"type":"string"},"validFrom":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"}}}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}},"503":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}}}}},"/v2/me":{"get":{"summary":"Who am I (identity + config)","tags":["Account"],"description":"The authenticated remesador’s own identity, the SHA-256 fingerprint of the registered public key, webhook status, and effective limits (own + Alibanca floors). Returns NO secret (never the api-key or private key). Signed request.","parameters":[{"schema":{"type":"string"},"in":"header","name":"x-api-key","required":true,"description":"REQUIRED. sk_test_… (sandbox) or sk_live_… (production)."},{"schema":{"type":"string"},"in":"header","name":"x-nonce","required":true,"description":"REQUIRED. Strictly increasing per api-key (anti-replay). Plain decimal only: ^[1-9][0-9]{0,37}$ — no leading zeros, no sign, no decimal point, no scientific notation, max 38 digits. A malformed nonce is rejected with the same 401 {\"error\":\"nonce replay\"} as a genuine replay."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"status":{"type":"string"},"traceId":{"type":"string"},"payload":{"type":"object","additionalProperties":true,"properties":{"remitterId":{"type":"string","description":"Stable entity id (survives key rotation)."},"name":{"type":["null","string"]},"environment":{"type":["null","string"]},"keyType":{"type":"string","enum":["test","live","legacy"]},"publicKeyFingerprint":{"type":"string"},"webhook":{"type":"object","additionalProperties":true},"limitsConfigured":{"type":"boolean","description":"`false` significa que **al menos un riel** no tiene configurada la política de límites del lado de Alibanca; los pagos por ese riel responden 422. No es «no tienes topes»: es que no podemos dispersar por ahí. Es un problema NUESTRO, no tuyo — no hay monto que ajustes para que pase. Ramifica sobre este campo antes de operar, no sobre si el arreglo `limits` viene vacío, que en `[]` parece «sin restricciones» y significa lo contrario."},"limits":{"type":"array","description":"Topes vigentes para esta llave: los propios del remesador MÁS los pisos no-negociables de Alibanca (`isFloor: true`), que el remesador puede apretar pero nunca aflojar.","items":{"type":"object","additionalProperties":true,"properties":{"payoutType":{"type":"string","description":"El riel al que aplica, o `*` para todos."},"window":{"type":"string","description":"La ventana sobre la que se mide: `TX` es por operación; el resto acumula."},"maxAmountMinor":{"type":["null","string"],"description":"Tope de monto en unidades menores, o `null` si no acota monto."},"maxCount":{"type":["null","integer"],"description":"Tope de cantidad de operaciones, o `null` si no acota cantidad."},"isFloor":{"type":"boolean","description":"Si lo impone Alibanca (`true`) o lo configuró el remesador (`false`)."}}}}}}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}}}}},"/v2/beneficiaries":{"post":{"summary":"Save a beneficiary","tags":["Beneficiaries"],"description":"Save a reusable payment destination. The destination (rail/account/doc) is IMMUTABLE — to change it you create a new one. A duplicate ACTIVE (rail, account) is a 409. Signed request.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["rail","account","alias"],"properties":{"rail":{"type":"string","enum":["PM","CCE"],"description":"Which rail this beneficiary is for, and therefore what `account` must contain. \"PM\" = Pago Móvil (mobile phone). \"CCE\" = interbank transfer (bank account)."},"account":{"type":"string","description":"The OUTBOUND destination — IMMUTABLE after creation (changing it means creating a new beneficiary). Its FORMAT depends on `rail`: with \"PM\", the mobile number, 11 digits including the leading 0 (example: \"04141234567\"); with \"CCE\", the bank account, 20 digits. Not format-checked here — a malformed destination is rejected by the rail."},"alias":{"type":"string","description":"Your label for it."},"bankCode":{"type":"string","pattern":"^[0-9]{4}$","description":"The beneficiary's BANK, as the 4-digit BCV code (for example \"0102\"). REQUIRED with rail \"PM\": the rail rejects a Pago Móvil without it, and we cannot derive it — a mobile prefix like 0414 identifies the CARRIER, not the bank. ALSO REQUIRED with rail \"CCE\": it is the CREDITOR bank of the interbank message, and the rail cannot be addressed without it. It must also match the first 4 digits of the destination account — a mismatch is a 400 and the payment is never created. IMMUTABLE after creation, like the rest of the destination."},"docType":{"type":"string","enum":["V","E","J","P","G"],"description":"The beneficiary's ID document TYPE. REQUIRED for rails \"PM\" AND \"CCE\": Venezuelan mobile payments identify the recipient, and the CCE interbank message carries the document too. PAIRED with `docNumber`."},"docNumber":{"type":"string","pattern":"^[0-9]{1,15}$","description":"The beneficiary's ID document NUMBER, digits only, no prefix (the prefix is `docType`). REQUIRED for rails \"PM\" AND \"CCE\". PAIRED with `docType`."},"beneficiaryName":{"type":"string","minLength":1,"maxLength":35,"description":"The beneficiary's NAME as it must appear in the interbank message, max 35 characters. REQUIRED with rail \"CCE\"; not used by rail \"PM\", which identifies the recipient by document instead. This is NOT `alias` — `alias` is your own editable label. IMMUTABLE after creation, like the rest of the destination."}},"allOf":[{"if":{"properties":{"rail":{"enum":["PM"]}},"required":["rail"]},"then":{"required":["bankCode","docType","docNumber"]}},{"if":{"properties":{"rail":{"enum":["CCE"]}},"required":["rail"]},"then":{"required":["bankCode","beneficiaryName","docType","docNumber"]}}]}}}},"parameters":[{"schema":{"type":"string"},"in":"header","name":"x-api-key","required":true,"description":"REQUIRED. sk_test_… (sandbox) or sk_live_… (production)."},{"schema":{"type":"string"},"in":"header","name":"x-nonce","required":true,"description":"REQUIRED. Strictly increasing per api-key (anti-replay). Plain decimal only: ^[1-9][0-9]{0,37}$ — no leading zeros, no sign, no decimal point, no scientific notation, max 38 digits. A malformed nonce is rejected with the same 401 {\"error\":\"nonce replay\"} as a genuine replay."}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["status","traceId","payload"],"properties":{"status":{"type":"string","example":"success"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`). Cítalo al reportar una incidencia."},"payload":{"type":"object","additionalProperties":true,"required":["id","rail","account","bankCode","docType","docNumber","beneficiaryName","alias","status","createdAt"],"properties":{"id":{"type":"string"},"rail":{"type":"string","enum":["PM","CCE"]},"account":{"type":"string","description":"The OUTBOUND destination — IMMUTABLE after creation."},"bankCode":{"type":["null","string"],"description":"The 4-digit BCV bank code. `null` on beneficiaries created before this field existed — those cannot pay and must be recreated."},"docType":{"type":["null","string"]},"docNumber":{"type":["null","string"]},"beneficiaryName":{"type":["null","string"],"description":"The beneficiary's name for the CCE interbank message. `null` on rail \"PM\" beneficiaries, which identify by document, and on CCE beneficiaries created before this field existed — those cannot pay by CCE and must be recreated. NOT `alias`: this one is IMMUTABLE, `alias` is yours to edit."},"alias":{"type":"string","description":"The remesador’s editable label."},"status":{"type":"string","enum":["ACTIVE","INACTIVE"]},"createdAt":{"type":"string"}}}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}},"409":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}}}},"get":{"summary":"List beneficiaries","tags":["Beneficiaries"],"description":"The remesador’s own saved beneficiaries, keyset-paginated on a descending id. `status` defaults to ACTIVE; pass INACTIVE or all. Signed request.","parameters":[{"schema":{"type":"string"},"in":"query","name":"limit","required":false,"description":"Positive integer, clamped to [1,100] (default 20)."},{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"nextCursor from the previous page."},{"schema":{"type":"string","enum":["ACTIVE","INACTIVE","all"]},"in":"query","name":"status","required":false},{"schema":{"type":"string"},"in":"header","name":"x-api-key","required":true,"description":"REQUIRED. sk_test_… (sandbox) or sk_live_… (production)."},{"schema":{"type":"string"},"in":"header","name":"x-nonce","required":true,"description":"REQUIRED. Strictly increasing per api-key (anti-replay). Plain decimal only: ^[1-9][0-9]{0,37}$ — no leading zeros, no sign, no decimal point, no scientific notation, max 38 digits. A malformed nonce is rejected with the same 401 {\"error\":\"nonce replay\"} as a genuine replay."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"status":{"type":"string"},"traceId":{"type":"string"},"payload":{"type":"object","additionalProperties":true,"properties":{"data":{"type":"array","items":{"type":"object","additionalProperties":true,"required":["id","rail","account","bankCode","docType","docNumber","beneficiaryName","alias","status","createdAt"],"properties":{"id":{"type":"string"},"rail":{"type":"string","enum":["PM","CCE"]},"account":{"type":"string","description":"The OUTBOUND destination — IMMUTABLE after creation."},"bankCode":{"type":["null","string"],"description":"The 4-digit BCV bank code. `null` on beneficiaries created before this field existed — those cannot pay and must be recreated."},"docType":{"type":["null","string"]},"docNumber":{"type":["null","string"]},"beneficiaryName":{"type":["null","string"],"description":"The beneficiary's name for the CCE interbank message. `null` on rail \"PM\" beneficiaries, which identify by document, and on CCE beneficiaries created before this field existed — those cannot pay by CCE and must be recreated. NOT `alias`: this one is IMMUTABLE, `alias` is yours to edit."},"alias":{"type":"string","description":"The remesador’s editable label."},"status":{"type":"string","enum":["ACTIVE","INACTIVE"]},"createdAt":{"type":"string"}}}},"hasMore":{"type":"boolean"},"nextCursor":{"type":["null","string"]}}}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}}}}},"/v2/beneficiaries/{id}":{"get":{"summary":"Get a beneficiary","tags":["Beneficiaries"],"description":"Read one saved beneficiary (tenant-scoped; a foreign id is 404). Signed request.","parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true},{"schema":{"type":"string"},"in":"header","name":"x-api-key","required":true,"description":"REQUIRED. sk_test_… (sandbox) or sk_live_… (production)."},{"schema":{"type":"string"},"in":"header","name":"x-nonce","required":true,"description":"REQUIRED. Strictly increasing per api-key (anti-replay). Plain decimal only: ^[1-9][0-9]{0,37}$ — no leading zeros, no sign, no decimal point, no scientific notation, max 38 digits. A malformed nonce is rejected with the same 401 {\"error\":\"nonce replay\"} as a genuine replay."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["status","traceId","payload"],"properties":{"status":{"type":"string","example":"success"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`). Cítalo al reportar una incidencia."},"payload":{"type":"object","additionalProperties":true,"required":["id","rail","account","bankCode","docType","docNumber","beneficiaryName","alias","status","createdAt"],"properties":{"id":{"type":"string"},"rail":{"type":"string","enum":["PM","CCE"]},"account":{"type":"string","description":"The OUTBOUND destination — IMMUTABLE after creation."},"bankCode":{"type":["null","string"],"description":"The 4-digit BCV bank code. `null` on beneficiaries created before this field existed — those cannot pay and must be recreated."},"docType":{"type":["null","string"]},"docNumber":{"type":["null","string"]},"beneficiaryName":{"type":["null","string"],"description":"The beneficiary's name for the CCE interbank message. `null` on rail \"PM\" beneficiaries, which identify by document, and on CCE beneficiaries created before this field existed — those cannot pay by CCE and must be recreated. NOT `alias`: this one is IMMUTABLE, `alias` is yours to edit."},"alias":{"type":"string","description":"The remesador’s editable label."},"status":{"type":"string","enum":["ACTIVE","INACTIVE"]},"createdAt":{"type":"string"}}}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}}}},"patch":{"summary":"Rename a beneficiary","tags":["Beneficiaries"],"description":"Edit ONLY the alias (the destination is immutable). Only an ACTIVE beneficiary can be edited. Signed request.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["alias"],"properties":{"alias":{"type":"string"}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true},{"schema":{"type":"string"},"in":"header","name":"x-api-key","required":true,"description":"REQUIRED. sk_test_… (sandbox) or sk_live_… (production)."},{"schema":{"type":"string"},"in":"header","name":"x-nonce","required":true,"description":"REQUIRED. Strictly increasing per api-key (anti-replay). Plain decimal only: ^[1-9][0-9]{0,37}$ — no leading zeros, no sign, no decimal point, no scientific notation, max 38 digits. A malformed nonce is rejected with the same 401 {\"error\":\"nonce replay\"} as a genuine replay."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["status","traceId","payload"],"properties":{"status":{"type":"string","example":"success"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`). Cítalo al reportar una incidencia."},"payload":{"type":"object","additionalProperties":true,"required":["id","rail","account","bankCode","docType","docNumber","beneficiaryName","alias","status","createdAt"],"properties":{"id":{"type":"string"},"rail":{"type":"string","enum":["PM","CCE"]},"account":{"type":"string","description":"The OUTBOUND destination — IMMUTABLE after creation."},"bankCode":{"type":["null","string"],"description":"The 4-digit BCV bank code. `null` on beneficiaries created before this field existed — those cannot pay and must be recreated."},"docType":{"type":["null","string"]},"docNumber":{"type":["null","string"]},"beneficiaryName":{"type":["null","string"],"description":"The beneficiary's name for the CCE interbank message. `null` on rail \"PM\" beneficiaries, which identify by document, and on CCE beneficiaries created before this field existed — those cannot pay by CCE and must be recreated. NOT `alias`: this one is IMMUTABLE, `alias` is yours to edit."},"alias":{"type":"string","description":"The remesador’s editable label."},"status":{"type":"string","enum":["ACTIVE","INACTIVE"]},"createdAt":{"type":"string"}}}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}}}},"delete":{"summary":"Retire a beneficiary","tags":["Beneficiaries"],"description":"Soft-delete (status → INACTIVE; a hard DELETE is blocked at the DB to preserve the audit trail). Idempotent. Signed request.","parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true},{"schema":{"type":"string"},"in":"header","name":"x-api-key","required":true,"description":"REQUIRED. sk_test_… (sandbox) or sk_live_… (production)."},{"schema":{"type":"string"},"in":"header","name":"x-nonce","required":true,"description":"REQUIRED. Strictly increasing per api-key (anti-replay). Plain decimal only: ^[1-9][0-9]{0,37}$ — no leading zeros, no sign, no decimal point, no scientific notation, max 38 digits. A malformed nonce is rejected with the same 401 {\"error\":\"nonce replay\"} as a genuine replay."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["status","traceId","payload"],"properties":{"status":{"type":"string","example":"success"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`). Cítalo al reportar una incidencia."},"payload":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"status":{"type":"string","enum":["INACTIVE"]}}}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}}}}},"/v2/webhook":{"get":{"summary":"Get the current webhook","tags":["Webhooks"],"description":"The configured webhook URL + any pending proof-of-control change. Signed request.","parameters":[{"schema":{"type":"string"},"in":"header","name":"x-api-key","required":true,"description":"REQUIRED. sk_test_… (sandbox) or sk_live_… (production)."},{"schema":{"type":"string"},"in":"header","name":"x-nonce","required":true,"description":"REQUIRED. Strictly increasing per api-key (anti-replay). Plain decimal only: ^[1-9][0-9]{0,37}$ — no leading zeros, no sign, no decimal point, no scientific notation, max 38 digits. A malformed nonce is rejected with the same 401 {\"error\":\"nonce replay\"} as a genuine replay."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["status","traceId","payload"],"properties":{"status":{"type":"string","example":"success"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`). Cítalo al reportar una incidencia."},"payload":{"type":"object","additionalProperties":true,"properties":{"webhookUrl":{"type":["null","string"]},"changed":{"type":"boolean"}}}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}}}},"put":{"summary":"Change the webhook (proof-of-control)","tags":["Webhooks"],"description":"Propose a new https webhook URL. The candidate must echo a signed challenge before it goes live; the current webhook stays intact until then. Signed request.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["webhookUrl"],"properties":{"webhookUrl":{"type":"string","format":"uri","description":"https only."}}}}}},"parameters":[{"schema":{"type":"string"},"in":"header","name":"x-api-key","required":true,"description":"REQUIRED. sk_test_… (sandbox) or sk_live_… (production)."},{"schema":{"type":"string"},"in":"header","name":"x-nonce","required":true,"description":"REQUIRED. Strictly increasing per api-key (anti-replay). Plain decimal only: ^[1-9][0-9]{0,37}$ — no leading zeros, no sign, no decimal point, no scientific notation, max 38 digits. A malformed nonce is rejected with the same 401 {\"error\":\"nonce replay\"} as a genuine replay."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["status","traceId","payload"],"properties":{"status":{"type":"string","example":"success"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`). Cítalo al reportar una incidencia."},"payload":{"type":"object","additionalProperties":true,"properties":{"webhookUrl":{"type":"string"},"changed":{"type":"boolean","description":"false mientras el candidato no haya probado control del endpoint."}}}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}},"409":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}},"422":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}},"503":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}}}}},"/v2/webhook/test":{"post":{"summary":"Send a test webhook","tags":["Webhooks"],"description":"Best-effort signed test event to the currently configured webhook. Signed request.","parameters":[{"schema":{"type":"string"},"in":"header","name":"x-api-key","required":true,"description":"REQUIRED. sk_test_… (sandbox) or sk_live_… (production)."},{"schema":{"type":"string"},"in":"header","name":"x-nonce","required":true,"description":"REQUIRED. Strictly increasing per api-key (anti-replay). Plain decimal only: ^[1-9][0-9]{0,37}$ — no leading zeros, no sign, no decimal point, no scientific notation, max 38 digits. A malformed nonce is rejected with the same 401 {\"error\":\"nonce replay\"} as a genuine replay."}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["status","traceId","payload"],"properties":{"status":{"type":"string","example":"success"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`). Cítalo al reportar una incidencia."},"payload":{"type":"object","additionalProperties":true,"properties":{"webhookUrl":{"type":"string"},"sent":{"type":"boolean"},"status":{"type":"integer","description":"Código HTTP que devolvió tu endpoint, si respondió."},"failureKind":{"type":"string","enum":["status","transport"],"description":"Presente solo si sent=false. `status`: tu endpoint respondió con un código no-2xx. `transport`: no se pudo llegar (red, DNS, TLS, timeout de 5 s, una redirección, que no seguimos, o una URL que resuelve a una dirección interna o privada)."}}}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}}}}},"/v2/webhook/keys":{"get":{"summary":"Webhook signing keys (JWKS)","tags":["Webhooks"],"description":"Public RS256 keys to verify OUTBOUND webhook signatures. Unauthenticated (public key material only).","security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"keys":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["error","traceId"],"properties":{"error":{"type":"string"},"traceId":{"type":"string","description":"Identificador de esta petición (`trc_…`), el mismo que trae el sobre de éxito. Inclúyelo cuando contactes a soporte. Los errores del servidor (5xx) quedan registrados bajo este mismo identificador. Lo llevan todos los errores que produce la API; NO lo llevan las respuestas generadas fuera de ella: 502/503/504 del borde o del proxy, 408 (request timeout) y 431 (headers demasiado grandes), ni la respuesta de respaldo del framework si el propio manejador de errores falla. Un error sin `traceId` no lo produjo la API."},"code":{"type":"string","enum":["IDEMPOTENCY_OPERATION_CONFLICT","IDEMPOTENCY_LEGACY_UNCERTAIN","ALIBANCA_CONCURRENCIA"],"description":"Stable discriminator for the errors where the correct client action differs. `IDEMPOTENCY_OPERATION_CONFLICT`: this key already identifies a DIFFERENT operation — retry with a new key, the original payment is untouched. `IDEMPOTENCY_LEGACY_UNCERTAIN`: the key matches a payment created before the API recorded which credential made it, and its fee no longer matches what you would be charged now — so we CANNOT tell a different operation from a fee change. **Do NOT retry with a new key**: check the original with GET /v2/payments first, or you may pay twice. `ALIBANCA_CONCURRENCIA` (503 on POST /v2/payments only): the system was saturated and the payment was created as failed / rejected_by_us WITHOUT reaching the bank — wait for Retry-After and retry with a NEW key. A 503 WITHOUT this code (e.g. from the network edge) says nothing about the payment: follow the general 5xx rule (same key, or GET the payment). Absent on every other error today."}}}}}}}}},"/v2/version":{"get":{"summary":"Version + discovery","tags":["System"],"description":"Unauthenticated: the running release version (tracks the deploy), the API version, the environment, the supported rails, and links to the OpenAPI contract + webhook JWKS. Hit this before signing anything.","security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"status":{"type":"string"},"traceId":{"type":"string"},"payload":{"type":"object","additionalProperties":true,"properties":{"version":{"type":"string"},"buildId":{"type":["null","string"]},"apiVersion":{"type":"string"},"environment":{"type":["null","string"]},"rails":{"type":"array","items":{"type":"string"},"description":"The dispersal rails THIS deployment can actually dispatch. Read it — do not hardcode it: a rail can be disabled per deployment, and the sandbox may advertise rails a production deployment has turned off."},"simulado":{"type":"boolean","description":"TRUE when this deployment fabricates payout outcomes instead of talking to a real bank — a payment will read `completed` and NOT one cent moves. FALSE when the rails are live and a payment moves real money. Check it before you believe a test settled: it is the only field that tells them apart."},"links":{"type":"object","additionalProperties":true}}}}}}}}}}},"/health":{"get":{"summary":"Liveness/readiness","tags":["System"],"description":"Unauthenticated DB round-trip probe.","security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"status":{"type":"string","example":"ok"},"environment":{"type":"string"}}}}}},"503":{"description":"Dos causas DISTINTAS, con `status` distinto: `db_unavailable` (la base no contesta) y `dispersal_blocked_no_limits_floor` (la base contesta, pero hay al menos un RIEL por el que ningún remesador puede dispersar: le falta un piso de límites, así que todo pago por ese riel responde 422 hasta que lo configuremos). El segundo es un problema NUESTRO y no se arregla reintentando.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"Dos causas DISTINTAS, con `status` distinto: `db_unavailable` (la base no contesta) y `dispersal_blocked_no_limits_floor` (la base contesta, pero hay al menos un RIEL por el que ningún remesador puede dispersar: le falta un piso de límites, así que todo pago por ese riel responde 422 hasta que lo configuremos). El segundo es un problema NUESTRO y no se arregla reintentando.","properties":{"status":{"type":"string","enum":["db_unavailable","dispersal_blocked_no_limits_floor"],"example":"db_unavailable"}}}}}}}}}},"security":[{"SignedRequest":[]}],"tags":[{"name":"Payments","description":"Crear y consultar payment intents."},{"name":"Balance","description":"Saldo de fondeo del remesador."},{"name":"Account","description":"Identidad y configuración del remesador (whoami)."},{"name":"Beneficiaries","description":"Destinos de pago reutilizables (destino inmutable)."},{"name":"Webhooks","description":"Gestión self-service del webhook + JWKS."},{"name":"System","description":"Salud del servicio."}]}