Tapi Logo

Recomendamos ingresar en Desktop

Nuestra documentación y herramientas de integración están optimizadas para brindarte la mejor experiencia en computadora.

Por favor, accede desde una computadora para continuar.

Referencia API

Notificaciones - CICO Emisores

POST/notifications

Configurar y gestionar notificaciones de operaciones CICO

Objetivo

Este endpoint permite configurar webhooks y canales de notificacion para recibir actualizaciones en tiempo real sobre el estado de las operaciones CICO. El emisor puede recibir notificaciones cuando una operacion es completada, cancelada o expira.

Request

Headers

CampoTipoObligatorioDescripción
x-api-key
StringSíClave de API proporcionada por Tapi para autenticar la solicitud.
x-authorization-token
StringSíToken de autenticacion obtenido en el login.

Body Parameters

ParámetroTipoRequeridoDescripción
webhookUrl
StringSíURL del webhook donde se enviaran las notificaciones.
events
String[]SíLista de eventos a notificar: 'completed', 'cancelled', 'expired', 'authorized'.
secret
StringNoSecreto para firmar las notificaciones (HMAC).

Response

Response Body

ParámetroTipoDescripción
webhookId
StringIdentificador unico del webhook configurado.
status
StringEstado de la configuracion: 'active', 'inactive'.

Consideraciones

  • Las notificaciones incluyen una firma HMAC-SHA256 en el header 'X-Tapi-Signature' si se configuro un secreto.
  • Se reintentara el envio de notificaciones hasta 3 veces en caso de fallo.
Ver la librería de errores de esta referencia

CLIENT LIBRARIES

REQUEST EXAMPLE

curl --request POST \
--url https://cash-in.homo.tapila.cloud/notifications \
--header 'x-authorization-token: YOUR_TOKEN_HERE' \
--header 'x-api-key: YOUR_API_KEY_HERE' \
--header 'Content-Type: application/json' \
--data '{
  "webhookUrl": "https://mi-servidor.com/cico/webhook",
  "events": ["completed","cancelled","expired"],
  "secret": "mi-secreto-seguro"
}'