Comment on page
Assign driver
You can use the endpoint to assign a driver to delivery or route.
If a delivery belongs to a route, you must assign the driver to the route, not the delivery.
POST /v1/routes/:id/assign
Property | Type | Description | Required | Constraints |
---|---|---|---|---|
id | string | Id of the route or delivery created within the system | YES | |
Property | Type | Description | Required | Constraints |
---|---|---|---|---|
courierId | string | Driver id in the system | YES |
Property | Type | Description |
---|---|---|
code | string | Result code. |
Request
200 Success
curl --location --request POST 'https://api.shippify.co/v1/routes/r-shiinc-2216524/assign' \
--header 'Authorization: Basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX=' \
--header 'Content-Type: application/json' \
--header 'Cookie: locale=es' \
--data-raw '{
"courierId": 396930
}'
{
"code": "OK"
}
Last modified 1mo ago