Skip to main content
Parcel Events Sandbox Docs

Search documentation

Type to search this documentation.

Update delivery instructions

PATCH/v1/shipments/{shipment_id}Update delivery instructions

Parameters

shipment_idstringpathrequired

pattern ^shp_[a-z0-9]{20}$

Request body

required
application/merge-patch+json
objectUpdateShipmentRequest

minProperties 1

delivery_instructionsnull | string

maxLength 500

metadataobject
Example request
{
  "delivery_instructions": "string",
  "metadata": {
    "additionalProp1": "string"
  }
}

Responses

200Updated shipmentapplication/json
objectShipment
created_atstring · date-timerequired
delivery_instructionsnull | string
idstringrequired
metadataobject
objectvaluerequired

const "shipment"

parcelsarray of objectrequired
Show child attributes
Show array items
contentsarray of object

maxItems 50

Show child attributes

maxItems 50

Show array items
customs_codenull | string
descriptionstringrequired
quantityintegerrequired

minimum 1

unit_valueobjectrequired
Show child attributes
amountstringrequired

pattern ^[0-9]+(\.[0-9]{2})$

currencystringrequired

pattern ^[A-Z]{3}$

height_cmnumberrequired

exclusiveMinimum 0

length_cmnumberrequired

exclusiveMinimum 0

weight_gramsintegerrequired

minimum 1

width_cmnumberrequired

exclusiveMinimum 0

recipientobjectrequired
Show child attributes
citystringrequired
companynull | string
countrystringrequired

pattern ^[A-Z]{2}$

line1stringrequired
line2null | string
namestringrequired

minLength 1

phonenull | string
postal_codestringrequired
regionnull | string
referencestringrequired
senderobjectrequiredAddress ↑
servicestringrequired

one of "economy", "express", "same_day"

statusstringrequired

one of "draft", "label_purchased", "in_transit", "out_for_delivery", "delivered", "exception", "canceled"

tracking_numberstringrequired
updated_atstring · date-timerequired
Example response
{
  "created_at": "2026-09-04T08:15:30Z",
  "delivery_instructions": "string",
  "id": "shp_00000000000000000001",
  "metadata": {
    "additionalProp1": "string"
  },
  "object": "shipment",
  "parcels": [
    {
      "contents": [
        {
          "customs_code": "610910",
          "description": "Synthetic cotton shirt",
          "quantity": 2,
          "unit_value": {
            "amount": "12.50",
            "currency": "XTS"
          }
        }
      ],
      "height_cm": 12,
      "length_cm": 30.5,
      "weight_grams": 1750,
      "width_cm": 20
    }
  ],
  "recipient": {
    "city": "Exampleton",
    "company": "Northstar Supplies",
    "country": "ZZ",
    "line1": "14 Fictional Quay",
    "line2": "Unit 7",
    "name": "Rowan Example",
    "phone": "+00000000000",
    "postal_code": "EX4 2PL",
    "region": "Test Province"
  },
  "reference": "synthetic-order-1042",
  "sender": {
    "city": "Exampleton",
    "company": "Northstar Supplies",
    "country": "ZZ",
    "line1": "14 Fictional Quay",
    "line2": "Unit 7",
    "name": "Rowan Example",
    "phone": "+00000000000",
    "postal_code": "EX4 2PL",
    "region": "Test Province"
  },
  "service": "economy",
  "status": "canceled",
  "tracking_number": "PE-000000000001",
  "updated_at": "2026-09-04T08:16:12Z"
}
404The requested synthetic resource does not existapplication/problem+json
objectProblem
detailstring
errorsarray of object
Show child attributes
Show array items
messagestringrequired
pathstringrequired
request_idstringrequired
statusintegerrequired

maximum 599 · minimum 400

titlestringrequired
typestring · urirequired
Example response
{
  "request_id": "req_00000000000000000004",
  "status": 404,
  "title": "Synthetic resource was not found",
  "type": "https://parcel-events.example/problems/not-found"
}
422One or more fields failed semantic validationapplication/problem+json
objectProblem
detailstring
errorsarray of object
Show child attributes
Show array items
messagestringrequired
pathstringrequired
request_idstringrequired
statusintegerrequired

maximum 599 · minimum 400

titlestringrequired
typestring · urirequired
Example response
{
  "errors": [
    {
      "message": "must be a synthetic postal code",
      "path": "recipient.postal_code"
    }
  ],
  "request_id": "req_00000000000000000006",
  "status": 422,
  "title": "Synthetic request validation failed",
  "type": "https://parcel-events.example/problems/validation"
}

Documentation menu