Comment on page
Change route status
You can use the endpoint to change the status of all deliveries on a route.
To cancel the route you can use this endpoint with canceled status.
PATCH /v1/routes/:id/status
Property | Type | Description | Required | Constraints |
---|---|---|---|---|
id | string | Id of the route created within the system | YES | |
Property | Type | Description | Required | Constraints |
---|---|---|---|---|
status | string | Status code you want to change to. | YES | |
comment | string | Short description of the change. | YES | |
author | object | Information of the operator who makes the change. | YES | |
Property | Type | Description |
---|---|---|
code | string | Result code. |
message | string | Result description. |
Request
200 Success
curl --location --request PATCH 'https://api.shippify.co/v1/deliveries/t-pruaas-4973/status' \
--header 'Authorization: Basic XXXXXXXXXXXXXXXXXXXXXXXXXXX' \
--header 'Content-Type: application/json' \
--header 'Cookie: locale=es' \
--data-raw '{
"author": {
"type": "operator",
"id": 1149,
"name": "Developers",
"email": "[email protected]"
},
"status": "assigned",
"comment": "e"
}'
{
"code": "OK",
"message": "Success"
}
Last modified 1mo ago