Webhooks
-Estatus ivoy-
5 = Paquete en proceso de entrega (CUANDO TOCA EL PRIMER PUNTO - YA RECOLECTÓ)
6 = Paquete entregado (CUANDO SE ENTREGÓ)
7 = Paquete para resguardo (CUANDO NO SE ENTREGÓ)
14 = Visitas suspendidas (CUANDO NO SE TOCÓ EL PUNTO)
Tipo de Envío SD/ND
{
"updates": [
{
"idRuta": "4186127",
"email": "[email protected]",
"ivoyGuide": "NM1303XTX9T144QPC10",
"status": "Paquete entregado",
"idPackageStatus": 6,
"date": "2023-05-09 09:54:16.076",
"receiveBy": "Producto ivoy",
"evidence": "https://storage.googleapis.com/download/storage/v1/b/ivoy-messengers.appspot.com/o/CAP5235245876388931132.jpg?generation=1682814069429796&alt=media"
}
]
}
{
"data": [
{
"guideIvoy": "NM1303XTX9T144QPC10",
"idPackageStatus": 6
}
]
}
La persona encargada de determinar el modelo de negocio acorde a sus necesidades es su Key Account Manager.
Ejemplificación Happy Path
mutation sendWebhookIvoy($input: UpdatePackagesStatusInputDTO!) {
sendWebhookIvoy(input: $input) {
data {
guideIvoy
idPackageStatus
}
}
}
{
"input": {
"updates": [{
"idRuta": "4186127",
"email": "[email protected]",
"ivoyGuide": "NM1303XTX9T144QPC10",
"status": "Paquete recolectado",
"idPackageStatus": 3,
"date": "2023-05-09 09:52:16.076",
"receiveBy": "Producto ivoy"
}, {
"idRuta": "4186127",
"email": "[email protected]",
"ivoyGuide": "NM1303XCBATE1UYCC10",
"status": "Paquete en proceso de entrega",
"idPackageStatus": 5,
"date": "2023-05-09 09:53:16.076",
"receiveBy": "Producto ivoy"
}, {
"idRuta": "4186127",
"email": "[email protected]",
"ivoyGuide": "NM13034ARBMU5RCYC10",
"status": "Paquete recolectado",
"idPackageStatus": 3,
"date": "2023-05-09 09:52:16.076",
"receiveBy": "Producto ivoy"
}, {
"idRuta": "4186127",
"email": "[email protected]",
"ivoyGuide": "NM13034ARBMU5RCYC10",
"status": "Paquete entregado",
"idPackageStatus": 6,
"date": "2023-05-09 09:54:16.076",
"receiveBy": "Producto ivoy",
"evidence": "https://storage.googleapis.com/download/storage/v1/b/ivoy-messengers.appspot.com/o/CAP5235245876388931132.jpg?generation=1682814069429796&alt=media"
}, {
"idRuta": "4186127",
"email": "[email protected]",
"ivoyGuide": "NM1303XTX9T144QPC10",
"status": "Paquete en proceso de entrega",
"idPackageStatus": 5,
"date": "2023-05-09 09:53:16.076",
"receiveBy": "Producto ivoy"
}, {
"idRuta": "4186127",
"email": "[email protected]",
"ivoyGuide": "NM1303XCBATE1UYCC10",
"status": "Paquete recolectado",
"idPackageStatus": 3,
"date": "2023-05-09 09:52:16.076",
"receiveBy": "Producto ivoy"
}, {
"idRuta": "4186127",
"email": "[email protected]",
"ivoyGuide": "NM13034ARBMU5RCYC10",
"status": "Paquete en proceso de entrega",
"idPackageStatus": 5,
"date": "2023-05-09 09:53:16.076",
"receiveBy": "Producto ivoy"
}, {
"idRuta": "4186127",
"email": "[email protected]",
"ivoyGuide": "NM1303XTX9T144QPC10",
"status": "Paquete entregado",
"idPackageStatus": 6,
"date": "2023-05-09 09:54:16.076",
"receiveBy": "Producto ivoy",
"evidence": "https://storage.googleapis.com/download/storage/v1/b/ivoy-messengers.appspot.com/o/CAP5235245876388931132.jpg?generation=1682814069429796&alt=media"
}, {
"idRuta": "4186127",
"email": "[email protected]",
"ivoyGuide": "NM1303XCBATE1UYCC10",
"status": "Paquete entregado",
"idPackageStatus": 6,
"date": "2023-05-09 09:54:16.076",
"receiveBy": "Producto ivoy",
"evidence": "https://storage.googleapis.com/download/storage/v1/b/ivoy-messengers.appspot.com/o/CAP5235245876388931132.jpg?generation=1682814069429796&alt=media"
}
]
}
}
{
"data": {
"sendWebhookIvoy": {
"data": [
{
"guideIvoy": "NM1303XTX9T144QPC10",
"idPackageStatus": 3
},
{
"guideIvoy": "NM13034ARBMU5RCYC10",
"idPackageStatus": 3
},
{
"guideIvoy": "NM1303XCBATE1UYCC10",
"idPackageStatus": 3
},
{
"guideIvoy": "NM1303XCBATE1UYCC10",
"idPackageStatus": 5
},
{
"guideIvoy": "NM1303XTX9T144QPC10",
"idPackageStatus": 5
},
{
"guideIvoy": "NM13034ARBMU5RCYC10",
"idPackageStatus": 5
},
{
"guideIvoy": "NM13034ARBMU5RCYC10",
"idPackageStatus": 6
},
{
"guideIvoy": "NM1303XTX9T144QPC10",
"idPackageStatus": 6
},
{
"guideIvoy": "NM1303XCBATE1UYCC10",
"idPackageStatus": 6
}
]
}
}
}
Updated over 1 year ago