Endpoint URLs
PROD: https://tongomort.instaleap.io/delivery-layer/status
STAGING: https://tongomort.xandar.instaleap.io/delivery-layer/status
The 3PL must update the current status of the task as it is updated through the Status interaction provided by Instaleap. This is of type POST and the fields it receives are the following
Parameter | Description |
|---|---|
task_id | Id of the task within Instaleap |
status | Task states. They must be sent in the correct order (see chart):
|
delivery_info (state wise) | Information about the driver. This information will be updated in the Control Tower. If the 3PL is able to send the name, phone number and photo, it can do so from the first status update (ASSIGNED). You can also update the resource info by sending the status CONTACT_INFO_UPDATED |
delivery_code | The code that the customer must provide to the driver to be able to make the delivery, this is optional and can be sent in the DELIVERY_CODE_UPDATED state |
status_reason(optional) | This field must have the reason why an order was canceled by the 3PL. This is optional and can be sent in the CANCELLED state. |
The sending of the states must follow the following order, starting with the ASSIGNED state, since the PROCESSING state visible in the graph is the state with which the task starts in Instaleap. This order ensures the correct flow of task completion
In the special case of the ASSIGNED status, this depends on additional information required from the assigned delivery resource ("delivery_info") such as the name, contact phone number and a url of a photo, this information is only required (mandatory) when receiving this status.
{
"task_id": "b4e23f2b-3eeb-4b6c-b196-aa6be921769d",
"status": "ASSIGNED",
"delivery_info": {
"name": "Test Delivery",
"phone": "+573201234567",
"photo_url": "www.some-url.com"
}
}Example response:
{
"message": "STATUS_UPDATED",
}CANCELLED payload example:
{
"task_id": "b4e23f2b-3eeb-4b6c-b196-aa6be921769d",
"status": "CANCELLED",
"status_reason": "En conductor no la pudo realizar"
}DELIVERY_CODE_UPDATED payload example:
{
"task_id": "b4e23f2b-3eeb-4b6c-b196-aa6be921769d",
"status": "DELIVERY_CODE_UPDATED",
"delivery_code": "123ABC"
}