Change delivery statuses

You can use this endpoint to change the status of a delivery. Here you can add comments or include reasons for issues previously created in the system. To learn more about Shippify's statuses click here.

Update the status of a delivery

patch

Update the status of a delivery by its ID or reference.

Autorizaciones
Parámetros de ruta
idstringRequerido

Identifier or reference ID of the delivery to change status.

Cuerpo
statusstring · enumRequerido

New status of the route

Example: hold_by_courierValores posibles:
commentstringRequerido

Comment of the change

Example: Dangerous area
Respuestas
200
Successful operation
application/json
patch
PATCH /v1/deliveries/{id}/status HTTP/1.1
Host: api.shippify.co
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 209

{
  "status": "hold_by_courier",
  "comment": "Dangerous area",
  "reasonByCompany": [
    {
      "reasonId": 67,
      "reason": "DANGEROUS AREA"
    }
  ],
  "author": {
    "type": "operator",
    "id": 1149,
    "name": "Developers",
    "email": "[email protected]"
  }
}
{
  "code": "OK",
  "message": "Success"
}

Use cases

Update status by referenceId

You can use the delivery's reference ID in the URL of the request to change its status.

Cancel delivery
{
    "status": "canceled",
    "comment": "TEST",
    "author": {
        "email": "[email protected]",
        "id": 999,
        "name": "Test operator",
        "type": "operator"
    }
}
Change the status to "hold by courier" with a reason for the problem
{
    "status": "hold_by_courier",
    "comment": "South of the city",
    "reasonByCompany": [
        {
            "companyId": "9065",
            "reasonId": 67,
            "reason": "Risky area"
        }
    ],
    "author": {
        "type": "operator",
        "id": 1149,
        "name": "Developers",
        "email": "[email protected]"
    }
}
Complete a delivery
{
    "status": "completed",
    "comment": "",
    "author": {
        "type": "operator",
        "id": 1149,
        "name": "Developers",
        "email": "[email protected]"
    }
}

Última actualización