HomeDocumentaciónAPI EndpointsNovedades
Log In
Documentación

Webhook: documents.reception

Esta sección contiene información relacionada con los webhooks de recepción de documentos

Este evento se dispara cuando:

  • Se recibe un documento electrónico
  • Se recibe una aprobación comercial
  • Se envía una aprobación comercial

A continuación se muestra un ejemplo por cada tipo de evento:

Documento electrónico recibido

{
  "type": "receivedDocument",
  "id": "01G021Z3QSRZ58GSTBH7TPGD2J",
  "issuerIdentification": "131880738",
  "buyerIdentification": "132109122",
  "documentType": "33",
  "documentNumber": "E330110000003",
  "documentStampDate": "2021-09-27",
  "signatureDateTime": "2021-12-29 02:17:41",
  "totalAmount": "1180",
  "status": "RECEIVED",
  "errorMsg": null,
  "commercialResponse": "NOT_DECLARED",
  "timestamp": "2022-04-07T13:03:38.747Z",
  "receipt": {
    "id": "01G021Z3J07YYPSM54N4MFA1DY",
    "documentNumber": "E330110000003",
    "status": "RECEIVED",
    "errorMsg": null,
    "timestamp": "2022-04-07T13:03:38.757Z"
  }
}

Aprobación comercial recibida

{
  "type": "receivedCommercialApproval",
  "id": "01G0222KKZYVB71RQ6Y1PTADTP",
  "documentNumber": "E460110000007",
  "buyerIdentification": "123456789",
  "issuerIdentification": "132109122",
  "timestamp": "2022-04-07T13:05:33.512Z"
}

Aprobación comercial enviada

{
  "type": "sentCommercialApproval",
  "id": "01G020PSSQCEQ2J6EG5KQNBXCH",
  "documentNumber": "E310000001751",
  "buyerIdentification": "132109122",
  "issuerIdentification": "131880738",
  "issuerStatus": "SENT",
  "issuerSendAttempts": 0,
  "dgiiStatus": "NOTIFIED",
  "dgiiNotifyAttempts": 0,
  "timestamp": "2022-04-07T12:41:48.000Z"
}