Ir para conteúdo principal
Todas as coleçõesAPI
Webhook Checkout SimpliRoute
Webhook Checkout SimpliRoute
Silmary Guedez avatar
Escrito por Silmary Guedez
Atualizado há mais de um ano

SimpliRoute pode enviar informações da visita no momento de fazer checkout através de uma chamada por método POST para um webservice fornecido pelos clientes.

As informações disponíveis são descritas na seguinte tabela (não necessariamente nessa ordem).


Exemplo de Payload

{

"id": 18843965,

"load": 0.0,

"load_2": 0.0,

"load_3": 0.0,

"window_start": "09:00:00",

"window_end": "19:00:00",

"window_start_2": "23:59:00",

"window_end_2": "23:59:00",

"reference": "",

"planned_date": "2019-09-09",

"order": 4,

"checkout_comment": "Test",

"duration": "0:20:00",

"calculated_service_time": "0:00:00",

"title": "INDUSTRIAS RIC\u00d3N",

"contact_name": "Victor Gonzalez",

"contact_email": "",

"contact_phone": "978567812",

"notes": "",

"latitude": "-33.439046",

"longitude": "-70.648752",

"status": "completed",

"address": "HUERFANOS 835 OF. 202, SANTIAGO, Santiago",

"account": "[email protected]",

"route": "2019-09-09 - Test",

"status_changed": "2019-09-09 21:23:01.251595+00:00",

"priority_level": 0,

"created": "2019-08-29 22:33:44.015108+00:00",

"modified": "2019-09-09 21:23:01.251582+00:00",

"estimated_time_arrival": "10:12:00",

"estimated_time_departure": "10:32:00",

"tracking_id": "SR67118024023080",

"signature": "visit-signatures/2019/09/09/ac6bf49a-35b.png",

"checkin_time": null,

"checkin_latitude": null,

"checkin_longitude": null,

"checkout_observation": null,

"checkout_latitude": "-33.420471",

"checkout_longitude": "-70.603384",

"checkout_time": "2019-09-09 21:22:56.068000+00:00",

"on_its_way": null,

"geocode_alert": null,

"has_alert": false,

"priority": false

}

Isto respondeu à sua pergunta?