1. Medios de Notificacion
Payday Public API
  • Proceso de Venta
  • Autenticacion y Firma HMAC
  • Proceso de Venta
    • Cotizacion - crear
      POST
    • Referencias - solicitar
      POST
    • Ofertas - previsualizar
      POST
    • Ofertas - seleccionar
      POST
    • Contrato - renderizar
      POST
    • Contrato - firma
      POST
    • Validar ICCID + IMEI
      POST
    • Finalizar venta
      POST
  • Productos
    • Marcas
      GET
    • Modelos y Prefijos por marca
      GET
  • Medios de Notificacion
    • Registrar Webhook para cotizacion
      POST
    • Polling Cotizacion
      GET
    • Historial de Eventos
      GET
  • Eventos Webhook
    • Evento quote.updated
    • reference.requested
    • reference.accepted
    • imei.validated
    • contract.signed
    • offer.selected
    • offer.previewed
  1. Medios de Notificacion

Registrar Webhook para cotizacion

POST
https://integrations.paydaymx.com/public-api/v1/sales-process/cotizaciones/{COTIZACION_ID}/notificaciones/webhooks
Registra o actualiza un webhook para recibir notificaciones del proceso de una cotizacion.
Esta ruta permite que la integracion reciba cambios del flujo sin hacer polling constante. Los webhooks se registran por cotizacion y pueden limitarse a eventos especificos o escuchar todos los eventos disponibles.
Que recibe
Parametro de ruta:
1.
id: ObjectId de la cotizacion.
No recibe query params.
Body:
1.
url: string requerida, debe ser URL valida.
2.
secret: string opcional. Si se envia, debe tener longitud minima valida.
3.
events: arreglo opcional de eventos. Si no se envia, el backend puede usar ['*'].
4.
active: boolean opcional. Default true.
Que devuelve
1.
cotizacion.id
2.
cotizacion.process
3.
webhook: objeto con id, url, events, active, created_at y updated_at.
Cuando usarla
Usala justo despues de crear la cotizacion si tu integracion quiere enterarse de los cambios por callback en vez de depender solo de polling.
Reglas y consideraciones
1.
Si ya existe un webhook con la misma URL o id, el backend lo actualiza.
2.
El webhook queda asociado a la cotizacion, no a toda la empresa.
3.
secret vacio se trata como omitido.
Errores frecuentes
1.
422 si la URL no es valida.
2.
404 si la cotizacion no existe.

Solicitud

Autorización
Agregar parámetro en header
X-Api-Key
Ejemplo:
X-Api-Key: ********************
Parámetros de ruta

Parámetros de Header

Parámetros del Body application/jsonRequerido

Ejemplos

Respuestas

🟢201Éxito
application/json
Bodyapplication/json

Solicitud Ejemplo de Solicitud
Shell
JavaScript
Java
Swift
curl --location 'https://integrations.paydaymx.com/public-api/v1/sales-process/cotizaciones/69fa7b48e65c5ec021a8aeb0/notificaciones/webhooks' \
--header 'X-Timestamp;' \
--header 'X-Nonce;' \
--header 'X-Signature;' \
--header 'X-Api-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
    "url": "https://01kqx7hkx5ad6d3y4wr7bcvddg.hooks.webhookrelay.com",
    "events": [
        "quote.created",
        "quote.updated",
        "reference.requested",
        "reference.accepted",
        "reference.rejected",
        "offer.previewed",
        "offer.selected",
        "contract.signed",
        "imei.validated"
    ],
    "active": true
}'
Respuesta Ejemplo de Respuesta
{
    "cotizacion": {
        "id": "69fa7b48e65c5ec021a8aeb0",
        "process": {
            "state": "waiting",
            "next_action": "wait_identity_validation",
            "pause_reason": "identity_validation_pending",
            "can_continue": false,
            "checkpoints": {
                "referencias_validadas": false,
                "oferta_seleccionada": false,
                "contrato_firmado": false,
                "imei_validado": false
            }
        }
    },
    "webhook": {
        "id": "5b144e25-ac1f-4309-8c84-26c5ee423772",
        "url": "https://01kqx7hkx5ad6d3y4wr7bcvddg.hooks.webhookrelay.com",
        "events": [
            "quote.created",
            "quote.updated",
            "reference.requested",
            "reference.accepted",
            "reference.rejected",
            "offer.previewed",
            "offer.selected",
            "contract.signed",
            "imei.validated"
        ],
        "active": true,
        "created_at": "2026-05-05T23:29:31.958Z",
        "updated_at": "2026-05-05T23:29:31.958Z"
    }
}
Modificado en 2026-05-08 17:56:36
Anterior
Modelos y Prefijos por marca
Siguiente
Polling Cotizacion
Built with