Webhooks del API Bancario

API 1.0.0

El grupo Webhooks permite registrar el destino HTTPS donde recibís los eventos, ver qué features podés suscribir por método de pago y consultar el contrato de payload de cada evento antes de escribir el receptor.

POST /api/public/v1/webhook/destination
GET  /api/public/v1/webhook/features
GET  /api/public/v1/webhook/event-contracts/{event_type}

Eventos#

El spec declara cuatro tipos de evento:

EventoCuándo llega
payin.postedSe acreditó un movimiento de entrada.
payment.succeededEl pago terminó de forma exitosa.
payment.failedEl pago terminó con falla.
payment.reversedEl pago fue revertido.

Un pago revertido conserva el estado posted y se distingue por result: reversed y has_reversal: true; ver estados del pago.

Buenas prácticas del receptor#

Respondé 2xx en cuanto recibís el evento y procesá aparte: un receptor lento provoca reenvíos. Tratá los eventos como potencialmente repetidos y deduplicá por el identificador del pago. Y no confíes el estado final sólo al webhook: confirmalo con la consulta del pago.

Operaciones#

Create webhook destination

POST /api/public/v1/webhook/destination

Host: https://api-baas-sandbox.tilopay.com requiere Authorization: Bearer <access_token>.

Valid fields depend on destination_kind and scope_kind. Send only the fields that apply to your combination; other scope fields must be omitted (not null placeholders).

Event payloads Inspect outbound contracts with GET /api/public/v1/webhook/event-contracts/{event_type} (payin.posted, payment.succeeded, payment.failed, payment.reversed).

destination_kind

  • EXTERNAL_WEBHOOK (only kind available on the public API): requires webhook_url (must start with https://) and secret_ref. Optional delivery tuning (timeout_ms, max_attempts). Payloads are always encrypted with AES_GCM using secret_ref; the HTTP body is {"data":"<ciphertext>"}.
  • INTERNAL is reserved for platform administration and cannot be created through this endpoint.

scope_kind

  • TENANT: omit scope_account_id, scope_owner_type, and scope_owner_id.
  • ACCOUNT: require scope_account_id; omit owner fields.
  • OWNER: require scope_owner_type and scope_owner_id; omit scope_account_id. scope_owner_type is one of tenant, partner, user, platform, customer (lowercase in payload).

Webhook encryption (EXTERNAL_WEBHOOK)

Deliveries always send Content-Type: application/json and Accept: application/json.

The HTTP body is always {"data": "<base64>"}. The base64-decoded bytes are:

nonce (12 bytes, random) || AES-256-GCM ciphertext || 16-byte auth tag
key                   = SHA256(secret_ref)              # 32 bytes → AES-256
wire                  = base64_decode(data)
nonce, sealed         = wire[:12], wire[12:]             # sealed = ciphertext || tag
plaintext             = AES-GCM-Open(key, nonce, sealed, additional_data = none)

No additional authenticated data (AAD) is used. plaintext is the same JSON envelope documented per event type in GET /webhook/event-contracts/{event_type} — decrypt first, then apply that contract. Authenticity is provided by the GCM auth tag (decryption fails if the body was tampered with).

Deduplicate retries using event.event_id in the payload envelope — delivery retries can redeliver the same event with the same event_id.

Parámetros

ParámetroEnTipoObligatorioDescripción
X-Correlation-IdheaderstringOptional client-supplied correlation id for end-to-end tracing. Echoed back as correlation_id in the response envelope. If omitted, the API generates one and still returns it.

Cuerpo del request

CampoTipoObligatorioDescripción
feature_idstring (uuid)Feature to subscribe (from GET /api/public/v1/webhook/features). Must exist or create fails.
is_enabledbooleanDefaults to true if omitted.
destination_kindstringPublic API accepts only EXTERNAL_WEBHOOK (HTTPS callback with shared secret). INTERNAL destinations are managed administratively.Valores: EXTERNAL_WEBHOOK
destination_refstringNot used on the public API. Reserved for internal destinations.
webhook_urlstring (uri)Required (must use https://).
secret_refstringRequired shared secret used to decrypt AES_GCM payloads (key = SHA256(secret_ref)). See "Webhook encryption" in this operation's description.
signature_algostringFixed to AES_GCM for EXTERNAL_WEBHOOK. Omitted on create; stored as AES_GCM. HMAC_SHA256 is no longer supported.Valores: AES_GCM
replay_window_secintegerReserved for legacy destinations. Not used for EXTERNAL_WEBHOOK AES_GCM deliveries.
timeout_msintegerHTTP timeout for delivery attempts (EXTERNAL_WEBHOOK).
max_attemptsintegerMax delivery attempts (EXTERNAL_WEBHOOK).
backoff_policyobjectOptional free-form JSON retry/backoff override, stored as-is and not currently validated or documented by the platform. Omit to use the platform's default backoff policy.
scope_kindstring- TENANT: no scope id fields. - ACCOUNT: set scope_account_id only. - OWNER: set scope_owner_type and scope_owner_id only.Valores: TENANT, ACCOUNT, OWNER
scope_account_idstring (uuid)Required when scope_kind is ACCOUNT. Must be omitted for TENANT and OWNER.
scope_owner_typestringRequired when scope_kind is OWNER. Allowed values (lowercase) tenant, partner, user, platform, customer. Omit for TENANT and ACCOUNT.
scope_owner_idstring (uuid)Required when scope_kind is OWNER. Omit for TENANT and ACCOUNT.

Ejemplo de request

external_webhook_tenant

{
  "feature_id": "11111111-1111-1111-1111-111111111111",
  "destination_kind": "EXTERNAL_WEBHOOK",
  "scope_kind": "TENANT"
}

Respuesta 201

The resource was created successfully.

response_code: CREATED

CampoTipoObligatorioDescripción
created_atstring
destination_kindstring
destination_refstring
feature_idstring
idstring
is_enabledboolean
max_attemptsinteger
replay_window_secinteger
scope_account_idstring
scope_kindstring
scope_owner_idstring
scope_owner_typestring
secret_refstring
signature_algostring
timeout_msinteger
updated_atstring
webhook_urlstring

Respuestas de error

HTTPresponse_codeDescripción
400INVALID_REQUESTInvalid request. Check the required fields and try again.
401UNAUTHORIZEDUnauthorized. Verify your session or credentials.
403FORBIDDENYou do not have permission to perform this action.
429TOO_MANY_REQUESTSToo many requests. Please retry after a short delay.
500INTERNAL_ERRORAn unexpected error occurred. Please try again later.
503SERVICE_UNAVAILABLEA required service is temporarily unavailable. Please try again later.

List webhook features by payment method

GET /api/public/v1/webhook/features

Host: https://api-baas-sandbox.tilopay.com requiere Authorization: Bearer <access_token>.

Returns feature IDs and the event_types each feature can emit. Tenant scope is taken from the access token; clients must not send tenant_id.

Naming: event_types use payment.* for resource-level outcomes (payment.succeeded, payment.failed, payment.reversed) and payin.posted for the inbound direction only (funds received). There is no payout.posted and no transaction.* events. The delivered JSON object is always payment.

Inspect payload shapes with GET /api/public/v1/webhook/event-contracts/{event_type} (payin.posted, payment.succeeded, payment.failed, payment.reversed).

Parámetros

ParámetroEnTipoObligatorioDescripción
X-Correlation-IdheaderstringOptional client-supplied correlation id for end-to-end tracing. Echoed back as correlation_id in the response envelope. If omitted, the API generates one and still returns it.
country_codequerystring
payment_method_codequerystring
webhook_enabledqueryboolean

Respuesta 200

The request was processed successfully.

response_code: OK

CampoTipoObligatorioDescripción
itemsarray<object>
items[].event_typesarray<string>
items[].idstring

Respuestas de error

HTTPresponse_codeDescripción
401UNAUTHORIZEDUnauthorized. Verify your session or credentials.
403FORBIDDENYou do not have permission to perform this action.
429TOO_MANY_REQUESTSToo many requests. Please retry after a short delay.
500INTERNAL_ERRORAn unexpected error occurred. Please try again later.
503SERVICE_UNAVAILABLEA required service is temporarily unavailable. Please try again later.

Webhook event contract

GET /api/public/v1/webhook/event-contracts/{event_type}

Host: https://api-baas-sandbox.tilopay.com requiere Authorization: Bearer <access_token>.

Returns the outbound webhook payload contract for one public event type (schema_version 1.0.0). The envelope object is always payment (never payin, payout, or transaction).

When to use each name

  • payment — resource and envelope. Outcome events: payment.succeeded, payment.failed, payment.reversed (both PAYIN and PAYOUT). Correlate with REST /transactions/payments.
  • payin / payout — direction (PAYIN inbound, PAYOUT outbound). payin.posted is inbound-only (ledger posted / funds received). There is no public payout.posted.
  • transaction — REST path prefix only. Not used in webhook event_type or payload objects.

Supported event_type values:

  • payin.posted — inbound (PAYIN) payment reached public status posted. Envelope field is payment. payment.local_payment is a JSON boolean (true/false), not a string.
  • payment.succeeded — the provider confirmed success for a payment (PAYIN or PAYOUT; PIN or SINPE Móvil). Resource-level outcome, not direction-specific.
  • payment.failed — processing ended in a definitive failure (public status=failed), with structured payment.error (domain / platform). When the provider rejected the payment, the envelope also includes rejection. Not used for later reversals.
  • payment.reversed — subsequent reversal of a payment that already progressed (typically status=posted or confirmed). REST result=reversed and has_reversal=true. Processing status is unchanged. Not a payment.failed.

Unknown event_type values (including internal-only payment.status_changed) return 404.

SINPE rejection codes (rejection, only on payment.failed)

When event_type = payment.failed and the provider rejected the payment, the envelope includes rejection (same object and catalog as data.rejection on POST /accounts/validate). rejection.code is one of a fixed set of normalized semantics (see the WebhookRejection.code schema enum). Most rows in the table below do NOT get a distinct `code` — only a subset of reason_code values has a dedicated semantic; every other reason_code, even one listed below with a specific message, returns code = SINPE_REJECTED (e.g. reason_code = 21 "fondos insuficientes" still returns SINPE_REJECTED). A reason_code not listed here at all still produces a response — message falls back to a generic text and code falls back to SINPE_REJECTED.

Cuenta / perfil / límites

CodeMessage
21Cuenta Cliente con fondos insuficientes
22Cuenta Cliente no admite créditos
23Cuenta Cliente cerrada
24Cuenta Cliente inactiva
25Cuenta Cliente no admite débitos
26Cuenta Cliente no es de fondos
27Moneda de la Cuenta Cliente no corresponde
28Cuenta cliente no existe
29Cuenta Cliente no registrada en el SINPE
30Cuenta Cliente no habilitada para el servicio
31Cuenta Cliente bloqueada
32Id cliente destino no coincide con registrado en la entidad
33Nombre del cliente destino no coincide con el registrado en la entidad
34Cuenta Cliente en proceso de cierre
35Cuenta Cliente embargada
36Cuenta Cliente con retención judicial
37Cuenta de expediente simplificado no permite el monto indicado
38Límite transaccional de la Cuenta Cliente excedido
39Cuenta Cliente incorrecta
40IBAN de la cuenta destino inválido
41IBAN de la cuenta origen inválido
42Tipo de cuenta no permite la transacción
43Cuenta Cliente no pertenece a la entidad indicada
44Producto de la cuenta no admite el servicio
45Cuenta Cliente en estado de cancelación
46Cuenta Cliente restringida por política de la entidad
47Cuenta Cliente no permite pagos inmediatos
48Cuenta Cliente no permite SINPE Móvil
49Titular de la cuenta destino fallecido
50Cuenta Cliente consolidada o migrada
51Identificación del cliente origen no coincide
52Identificación del cliente destino inválida
53Cliente destino no autorizado para recibir el pago
54Cliente origen no autorizado para enviar el pago
55Perfil del cliente origen no permite la transacción
56Monto inferior al mínimo permitido
57Monto superior al máximo permitido
58Cantidad de transacciones diarias excedida
59Cantidad de transacciones mensuales excedida
60Límite acumulado diario excedido
61Límite acumulado mensual excedido
62Comisión no pudo ser aplicada
63Tipo de cambio no disponible
64Transacción rechazada por control de lavado de dinero
65Transacción rechazada por listas de control
66Transacción en revisión de cumplimiento
67Documento de respaldo requerido no presente
68Firma o autenticación inválida
69Token o segundo factor inválido
70Sesión de usuario expirada
71Usuario no autorizado para el canal
72Dispositivo no registrado
73Geolocalización no permitida
74Operación no soportada en la moneda indicada
75Operación no soportada para el tipo de cliente
76Problemas de comunicación
77Tiempo de espera agotado en la entidad origen
78Tiempo de espera agotado en el SINPE
79Error interno de la entidad origen
80Error interno de la entidad destino
81Entidad origen no disponible
82Entidad destino no encontrada
83Problemas en la respuesta del destino
84Respuesta de la entidad origen incorrecta
85Mensaje con formato electrónico inválido
86Versión del estándar electrónico no soportada
87Campo obligatorio no informado
88Campo con valor fuera de catálogo
89Checksum o integridad del mensaje inválida
90Referencia SINPE duplicada
91Moneda no corresponde
92Transacción no autorizada por entidad destino
93Transacción no autorizada por cliente destino
94Transacción no autorizada por entidad origen
95Transacción no autorizada por cliente origen
96Reverso no permitido para el estado de la transacción
97Reverso ya aplicado
98Confirmación no permitida para el estado de la transacción
99Liquidación no permitida para el estado de la transacción
100Entidad Destino no disponible para procesar en tiempo real
101Entidad origen no disponible para procesar en tiempo real
102Servicio PIN no habilitado para la entidad destino
103Servicio PIN no habilitado para la entidad origen
104Código de entidad destino inválido
105Código de entidad origen inválido
106Código de país de la entidad destino inválido
107Código de país de la entidad origen inválido
108Número de referencia interna inválido
109Número de referencia SINPE inválido
110Transacción no se encuentra en un estado que permita la consulta

Compensación con entidad destino

CodeMessage
201Tiempo respuesta excedido por la entidad destino
202Respuesta de la entidad destino incorrecta según el estándar electrónico
203Se recibió una excepción de la entidad destino
204Error de comunicación con la entidad destino
205Falló procesamiento en el SINPE
206Transacción no autorizada por cliente destino
207Perfil transaccional del cliente destino no permite recibir el pago
208Falló la acreditación en la cuenta destino
209Falló el débito en la cuenta origen
210Conciliación de la transacción no fue posible

Identificación

CodeMessage
801Identificación inválida
802Identificación del cliente origen no encontrada
803Identificación del cliente destino no encontrada
804Identificación no vigente
805Identificación vencida
806Identificación no corresponde al tipo indicado
807Tipo de identificación inválido
808País de la identificación no soportado
809Identificación de menor de edad no permitida
810Identificación de persona jurídica no permitida para el servicio

Validación de formato / Core Bancario

CodeMessage
1001Cuenta cliente activa
1002El Id de cliente destino no cumple con el formato esperado por el SINPE
1003El Id de cliente origen no fue informado
1004El Id de cliente origen no cumple con el formato esperado por el SINPE
1005Monto con formato inválido
1006Moneda con formato inválido
1007Problemas de comunicación con el Core Bancario
1008Core Bancario no disponible
1009El valor para el campo no puede ser nulo o infringir su longitud mínima o máxima
1010El valor para el campo no corresponde al tipo de dato esperado
1011El valor para el campo no corresponde al catálogo permitido
1012Fecha con formato inválido
1013Hora con formato inválido
1014Número de referencia con formato inválido
1015IBAN con formato inválido

Canal / tipo de identificación

CodeMessage
1040Canal no informado
1041Canal inválido
1042Canal no corresponde
1043Canal no habilitado para la entidad
1044Canal no habilitado para el servicio
1045El formato de la identificación es inválido
1046Tipo de identificación no informado
1080Tipo de identificación no corresponde al cliente origen
1081Tipo de identificación no corresponde al cliente destino
1082Tipo de identificación no vigente
1083Tipo de identificación no soportado por el servicio
1084Tipo de identificación inválido
1085Tipo de identificación no soportado por la entidad

SINPE Móvil (monedero)

CodeMessage
15300El número de teléfono origen indicado es inválido
15301El número de teléfono origen no tiene activo el Servicio Monedero
15302El número de teléfono destino indicado es inválido
15303El número de teléfono destino no está registrado en el padrón móvil del BCCR
15304No es posible inactivar el monedero indicado pues no existe
15305El número de teléfono indicado ya se encuentra activo como monedero en el padrón local

⚠️ This catalog is under review — some entries (notably 208 and 209) are known to be pending verification against the official SINPE source and may be corrected in a future revision without notice.

Delivery body is JSON. EXTERNAL_WEBHOOK HTTP body is always {"data":"<ciphertext>"} (AES-256-GCM, key = SHA256(secret_ref)). Decrypt to obtain the event envelope documented per GET /webhook/event-contracts/{event_type}. and the decrypted plaintext matches this contract.

Parámetros

ParámetroEnTipoObligatorioDescripción
X-Correlation-IdheaderstringOptional client-supplied correlation id for end-to-end tracing. Echoed back as correlation_id in the response envelope. If omitted, the API generates one and still returns it.
event_typepathstringValores: payin.posted, payment.succeeded, payment.failed, payment.reversed

Respuesta 200

The request was processed successfully.

response_code: OK

CampoTipoObligatorioDescripción
descriptionstring
event_typestring
exampleobject
schema_versionstring

Respuestas de error

HTTPresponse_codeDescripción
401UNAUTHORIZEDUnauthorized. Verify your session or credentials.
403FORBIDDENYou do not have permission to perform this action.
404NOT_FOUNDThe requested resource was not found.
429TOO_MANY_REQUESTSToo many requests. Please retry after a short delay.
500INTERNAL_ERRORAn unexpected error occurred. Please try again later.
503SERVICE_UNAVAILABLEA required service is temporarily unavailable. Please try again later.

Contratos de payload#

Cada evento declara su propio contrato de campos. Estos son los que el spec publica:

payin.posted

CampoTipoObligatorioDescripción
schema_versionstring
eventobject
event.event_idstring (uuid)
event.event_typestringValores: payin.posted
event.occurred_atstring (date-time)RFC 3339 timestamp in UTC with second precision and a Z suffix. Fractional seconds are never emitted. Example: 2026-01-15T12:00:00Z.
event.correlation_idstring
contextobject
context.country_codestring
context.payment_method_codestringPublic payment method catalog. Same values as REST (PIN, SINPE_MOVIL). Internal codes such as PM_PIN are never exposed.Valores: PIN, SINPE_MOVIL
paymentobject
payment.payment_idstring (uuid)
payment.public_idinteger (int64)
payment.statusstringPublic payment status catalog. Always lowercase. Same values on REST (create, list, get) and webhooks (payment.status). Internal lifecycle states are collapsed: - pending: initiated, validated, accepted - processing: processing, pending_processing, posting - confirmed: confirmed by the rail, not yet ledger-posted - posted: ledger posted (stays posted after a later reversal) - failed: failed, rejected, posting_failed, cancelled, expired A reversal is not a status. Use REST result=reversed / has_reversal=true and webhook payment.reversed. Operational detail remains in status_detail (uppercase internal name) on REST create/list/get. Webhook payment.failed uses error.platform.code to distinguish posting failures from provider rejections.Valores: pending, processing, confirmed, posted, failed
payment.amountobject
payment.amount.amountstring
payment.amount.currencystring
payment.posted_atstring (date-time)RFC 3339 timestamp in UTC with second precision and a Z suffix. Fractional seconds are never emitted. Example: 2026-01-15T12:00:00Z.
payment.accountobject
payment.account.typestring
payment.account.valuestring
payment.referenceobject
payment.reference.client_referencestringPartner reference sent at payment creation (client_reference), not detail_reference.
payment.reference.external_referencestring
payment.destination_phone_numberstring
payment.local_paymentbooleanJSON boolean (true/false), not the strings "true"/"false".
payment.origin_client_namestring
providerobjectShared provider snapshot on REST payment reads and webhook envelopes. Rail reference is only on payment.external_reference, not duplicated here. provider_status_* match webhook rejection.reason_code / message / code when the provider rejected the operation. null when there is no rejection.
provider.correlation_idstringTransaction correlation UUID (execution.correlation_id / metadata.tx.correlationId). Sent to GX/SINPE as correlationId. Not channel_reference (e.g. MOBILE_APP). Distinct from webhook event.correlation_id (HTTP request id for this delivery). null when unknown.
provider.occurred_atstring (date-time)RFC 3339 timestamp in UTC with second precision and a Z suffix. Fractional seconds are never emitted. Example: 2026-01-15T12:00:00Z.
provider.provider_status_codestringRaw provider Motivo/code (e.g. 31). Same meaning as webhook rejection.reason_code. null when there is no provider rejection.
provider.provider_status_descstringProvider Motivo text (prefers Detalle). Same meaning as webhook rejection.message. null when there is no provider rejection.
provider.provider_status_semanticstringNormalized platform semantic (e.g. ACCOUNT_BLOCKED). Same meaning as webhook rejection.code. null when there is no provider rejection.

payment.succeeded

CampoTipoObligatorioDescripción
schema_versionstring
eventobject
event.event_idstring (uuid)
event.event_typestringValores: payment.succeeded
event.occurred_atstring (date-time)RFC 3339 timestamp in UTC with second precision and a Z suffix. Fractional seconds are never emitted. Example: 2026-01-15T12:00:00Z.
event.correlation_idstring
contextobject
context.country_codestring
context.payment_method_codestringPublic payment method catalog. Same values as REST (PIN, SINPE_MOVIL). Internal codes such as PM_PIN are never exposed.Valores: PIN, SINPE_MOVIL
paymentobject
payment.payment_idstring (uuid)
payment.public_idinteger (int64)
payment.statusstringPublic payment status catalog. Always lowercase. Same values on REST (create, list, get) and webhooks (payment.status). Internal lifecycle states are collapsed: - pending: initiated, validated, accepted - processing: processing, pending_processing, posting - confirmed: confirmed by the rail, not yet ledger-posted - posted: ledger posted (stays posted after a later reversal) - failed: failed, rejected, posting_failed, cancelled, expired A reversal is not a status. Use REST result=reversed / has_reversal=true and webhook payment.reversed. Operational detail remains in status_detail (uppercase internal name) on REST create/list/get. Webhook payment.failed uses error.platform.code to distinguish posting failures from provider rejections.Valores: pending, processing, confirmed, posted, failed
payment.amountobject
payment.amount.amountstring
payment.amount.currencystring
payment.client_referencestringPartner reference sent at payment creation (client_reference), not detail_reference.
payment.external_referencestring
payment.fee_totalstringFee total as decimal string (same currency as amount.currency)
payment.tax_totalstringTax total as decimal string (same currency as amount.currency)
payment.net_amountstringNet cash impact on the merchant account. PAYIN: amount - fee_total - tax_total (what the merchant receives). PAYOUT: amount + fee_total + tax_total (total debit; fee is charged separately and is not deducted from the transferred amount).
payment.succeeded_atstringTimestamp when the provider confirmed the payment succeeded.
providerobjectShared provider snapshot on REST payment reads and webhook envelopes. Rail reference is only on payment.external_reference, not duplicated here. provider_status_* match webhook rejection.reason_code / message / code when the provider rejected the operation. null when there is no rejection.
provider.correlation_idstringTransaction correlation UUID (execution.correlation_id / metadata.tx.correlationId). Sent to GX/SINPE as correlationId. Not channel_reference (e.g. MOBILE_APP). Distinct from webhook event.correlation_id (HTTP request id for this delivery). null when unknown.
provider.occurred_atstring (date-time)RFC 3339 timestamp in UTC with second precision and a Z suffix. Fractional seconds are never emitted. Example: 2026-01-15T12:00:00Z.
provider.provider_status_codestringRaw provider Motivo/code (e.g. 31). Same meaning as webhook rejection.reason_code. null when there is no provider rejection.
provider.provider_status_descstringProvider Motivo text (prefers Detalle). Same meaning as webhook rejection.message. null when there is no provider rejection.
provider.provider_status_semanticstringNormalized platform semantic (e.g. ACCOUNT_BLOCKED). Same meaning as webhook rejection.code. null when there is no provider rejection.

payment.failed

CampoTipoObligatorioDescripción
schema_versionstring
eventobject
event.event_idstring (uuid)
event.event_typestringValores: payment.failed
event.occurred_atstring (date-time)RFC 3339 timestamp in UTC with second precision and a Z suffix. Fractional seconds are never emitted. Example: 2026-01-15T12:00:00Z.
event.correlation_idstring
contextobject
context.country_codestring
context.payment_method_codestringPublic payment method catalog. Same values as REST (PIN, SINPE_MOVIL). Internal codes such as PM_PIN are never exposed.Valores: PIN, SINPE_MOVIL
paymentobject
payment.payment_idstring (uuid)
payment.public_idinteger (int64)
payment.statusstringPublic payment status catalog. Always lowercase. Same values on REST (create, list, get) and webhooks (payment.status). Internal lifecycle states are collapsed: - pending: initiated, validated, accepted - processing: processing, pending_processing, posting - confirmed: confirmed by the rail, not yet ledger-posted - posted: ledger posted (stays posted after a later reversal) - failed: failed, rejected, posting_failed, cancelled, expired A reversal is not a status. Use REST result=reversed / has_reversal=true and webhook payment.reversed. Operational detail remains in status_detail (uppercase internal name) on REST create/list/get. Webhook payment.failed uses error.platform.code to distinguish posting failures from provider rejections.Valores: pending, processing, confirmed, posted, failed
payment.amountobject
payment.amount.amountstring
payment.amount.currencystring
payment.client_referencestringPartner reference sent at payment creation (client_reference), not detail_reference.
payment.external_referencestring
payment.errorobject
payment.error.domainstringValores: provider_rejection, platform_validation, platform_posting, platform_infra, platform_reversal, sinpe_rejection
payment.error.platformobject
providerobjectShared provider snapshot on REST payment reads and webhook envelopes. Rail reference is only on payment.external_reference, not duplicated here. provider_status_* match webhook rejection.reason_code / message / code when the provider rejected the operation. null when there is no rejection.
provider.correlation_idstringTransaction correlation UUID (execution.correlation_id / metadata.tx.correlationId). Sent to GX/SINPE as correlationId. Not channel_reference (e.g. MOBILE_APP). Distinct from webhook event.correlation_id (HTTP request id for this delivery). null when unknown.
provider.occurred_atstring (date-time)RFC 3339 timestamp in UTC with second precision and a Z suffix. Fractional seconds are never emitted. Example: 2026-01-15T12:00:00Z.
provider.provider_status_codestringRaw provider Motivo/code (e.g. 31). Same meaning as webhook rejection.reason_code. null when there is no provider rejection.
provider.provider_status_descstringProvider Motivo text (prefers Detalle). Same meaning as webhook rejection.message. null when there is no provider rejection.
provider.provider_status_semanticstringNormalized platform semantic (e.g. ACCOUNT_BLOCKED). Same meaning as webhook rejection.code. null when there is no provider rejection.
rejectionobjectRail-agnostic provider rejection. Shared by POST /accounts/validate (data.rejection) and the payment.failed webhook (rejection). Object only when the provider rejected the operation; omitted/null otherwise.
rejection.codestringNormalized platform semantic derived from reason_code. Only a subset of reason_code values (see the catalog in the description of POST /accounts/validate and of the payment.failed webhook contract endpoint) has a distinct entry here — for any other numeric reason_code, code is SINPE_REJECTED even when message is specific (e.g. reason_code = 21 "fondos insuficientes" still returns code = SINPE_REJECTED, it has no dedicated semantic). PHONE_NOT_REGISTERED is the fallback when reason_code is non-numeric (SINPE_MOVIL wallet flow).Valores: ACCOUNT_CLOSED, ACCOUNT_NOT_FOUND, ACCOUNT_BLOCKED, INVALID_ACCOUNT, IDENT_MISMATCH, IDENT_TYPE_INVALID, INVALID_ID_FORMAT, VALIDATION_ERROR, CURRENCY_MISMATCH, NOT_AUTHORIZED_BY_RECIPIENT, PROFILE_NOT_ALLOWED, CHANNEL_NOT_RECOGNIZED, COMMUNICATION_ERROR, RETRY_LATER, WALLET_PHONE_ORIGIN_INVALID, WALLET_PHONE_ORIGIN_NOT_ENABLED, WALLET_PHONE_DEST_INVALID, WALLET_PHONE_NOT_REGISTERED_BCCR, WALLET_NOT_FOUND, WALLET_PHONE_ALREADY_ACTIVE, PHONE_NOT_REGISTERED, SINPE_REJECTED
rejection.reason_codestringRaw Motivo/code returned by SINPE. See the endpoint description of POST /accounts/validate for the full code catalog (shared by this object wherever it appears, including the payment.failed webhook). A code not listed there still produces a response — message falls back to a generic text and code falls back to SINPE_REJECTED.
rejection.messagestringDescriptive Motivo text; prefers provider Detalle when present.

payment.reversed

CampoTipoObligatorioDescripción
schema_versionstring
eventobject
event.event_idstring (uuid)
event.event_typestringValores: payment.reversed
event.occurred_atstring (date-time)RFC 3339 timestamp in UTC with second precision and a Z suffix. Fractional seconds are never emitted. Example: 2026-01-15T12:00:00Z.
event.correlation_idstring
contextobject
context.country_codestring
context.payment_method_codestringPublic payment method catalog. Same values as REST (PIN, SINPE_MOVIL). Internal codes such as PM_PIN are never exposed.Valores: PIN, SINPE_MOVIL
paymentobject
payment.payment_idstring (uuid)
payment.public_idinteger (int64)
payment.statusstringPublic payment status catalog. Always lowercase. Same values on REST (create, list, get) and webhooks (payment.status). Internal lifecycle states are collapsed: - pending: initiated, validated, accepted - processing: processing, pending_processing, posting - confirmed: confirmed by the rail, not yet ledger-posted - posted: ledger posted (stays posted after a later reversal) - failed: failed, rejected, posting_failed, cancelled, expired A reversal is not a status. Use REST result=reversed / has_reversal=true and webhook payment.reversed. Operational detail remains in status_detail (uppercase internal name) on REST create/list/get. Webhook payment.failed uses error.platform.code to distinguish posting failures from provider rejections.Valores: pending, processing, confirmed, posted, failed
payment.resultstringValores: reversed
payment.has_reversalbooleanValores: true
payment.amountobject
payment.amount.amountstring
payment.amount.currencystring
payment.client_referencestring
payment.external_referencestring
payment.reversed_atstring (date-time)RFC 3339 timestamp in UTC with second precision and a Z suffix. Fractional seconds are never emitted. Example: 2026-01-15T12:00:00Z.
payment.reasonobject
payment.reason.codestring
payment.reason.messagestring
providerobjectShared provider snapshot on REST payment reads and webhook envelopes. Rail reference is only on payment.external_reference, not duplicated here. provider_status_* match webhook rejection.reason_code / message / code when the provider rejected the operation. null when there is no rejection.
provider.correlation_idstringTransaction correlation UUID (execution.correlation_id / metadata.tx.correlationId). Sent to GX/SINPE as correlationId. Not channel_reference (e.g. MOBILE_APP). Distinct from webhook event.correlation_id (HTTP request id for this delivery). null when unknown.
provider.occurred_atstring (date-time)RFC 3339 timestamp in UTC with second precision and a Z suffix. Fractional seconds are never emitted. Example: 2026-01-15T12:00:00Z.
provider.provider_status_codestringRaw provider Motivo/code (e.g. 31). Same meaning as webhook rejection.reason_code. null when there is no provider rejection.
provider.provider_status_descstringProvider Motivo text (prefers Detalle). Same meaning as webhook rejection.message. null when there is no provider rejection.
provider.provider_status_semanticstringNormalized platform semantic (e.g. ACCOUNT_BLOCKED). Same meaning as webhook rejection.code. null when there is no provider rejection.

Última verificación: 2026-09-02 · Responsable: equipo-integraciones

Ver como Markdown crudo