Skip to main content
PATCH
/
v1
/
fleet
/
deliveries
Bulk Update Deliveries
curl --request PATCH \
  --url https://api.sandbox.usenash.com/v1/fleet/deliveries \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "deliveries": [
    {
      "deliveryId": "<string>",
      "status": "not_assigned_driver",
      "coordinates": {
        "latitude": 0,
        "longitude": 0
      },
      "proofOfDelivery": [
        {
          "podType": "photo_proof_of_delivery",
          "imageUrl": "<string>"
        }
      ],
      "courier": {
        "name": "<string>",
        "phoneNumber": "<string>",
        "pickupPhoneNumber": "<string>",
        "dropoffPhoneNumber": "<string>",
        "profileImageUrl": "<string>",
        "vehicle": {
          "make": "<string>",
          "model": "<string>",
          "color": "<string>",
          "licensePlate": "<string>"
        },
        "externalId": "<string>"
      },
      "failure": {
        "code": "customer_unavailable",
        "reason": "<string>"
      },
      "pickupNote": "<string>",
      "dropoffNote": "<string>",
      "parkingLocation": "<string>",
      "returnParkingLocation": "<string>",
      "pickupEta": "2023-11-07T05:31:56Z",
      "dropoffEta": "2023-11-07T05:31:56Z",
      "externalDeliveryId": "<string>"
    }
  ]
}
'
{
  "results": [
    {
      "deliveryId": "<string>",
      "success": true,
      "errorCode": "<string>",
      "errorMessage": "<string>",
      "delivery": {}
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.usenash.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Top-level body for PATCH /v1/deliveries (bulk update).

deliveries
BulkDeliveryUpdateItem · object[]
required

Delivery updates to apply (max 100).

Required array length: 1 - 100 elements

Response

OK

Top-level response for PATCH /v1/deliveries.

results
BulkDeliveryUpdateResultItem · object[]
required

One result per request item, in order.