Change the status of a route
You can use this endpoint to change the status of all deliveries within a route.
Update the status of a route, including all its deliveries.
Autorizaciones
AuthorizationstringRequerido
Parámetros de ruta
idstringRequerido
Identifier of the route to change its status.
Cuerpo
statusstring · enumRequeridoExample:
New status of the route
hold_by_courierValores posibles: commentstringRequeridoExample:
Comment of the change
Dangerous areaRespuestas
200
Successful operation
application/json
codestringOpcionalExample:
OKmessagestringOpcionalExample:
Success401
Unauthorized
application/json
patch/v1/routes/{id}/status
PATCH /v1/routes/{id}/status HTTP/1.1
Host: api.shippify.co
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 201
{
"status": "hold_by_courier",
"comment": "Dangerous area",
"reasonByCompany": [
{
"reasonId": 67,
"reason": "DANGEROUS AREA"
}
],
"author": {
"type": "operator",
"id": 1,
"name": "Juan Perez",
"email": "example@email.com"
}
}{
"code": "OK",
"message": "Success"
}Use cases
Última actualización