Skip to main content
Parcel Events Sandbox Docs

Search documentation

Type to search this documentation.

Schedule a carrier pickup

POST/v1/pickupsSchedule a carrier pickup

Parameters

Idempotency-Keystring · uuidheaderrequired

Request body

required
application/json
objectCreatePickupRequest
addressobjectrequired
Show child attributes
citystringrequired
companynull | string
countrystringrequired

pattern ^[A-Z]{2}$

line1stringrequired
line2null | string
namestringrequired

minLength 1

phonenull | string
postal_codestringrequired
regionnull | string
notesnull | string

maxLength 500

shipment_idsarray of stringrequired

maxItems 100 · minItems 1

Show child attributes

maxItems 100 · minItems 1

windowobjectrequired
Show child attributes
ends_atstring · date-timerequired
starts_atstring · date-timerequired
Example request
{
  "address": {
    "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"
  },
  "notes": "string",
  "shipment_ids": [
    "string"
  ],
  "window": {
    "ends_at": "2026-09-06T12:00:00Z",
    "starts_at": "2026-09-06T09:00:00Z"
  }
}

Responses

201Pickup scheduledapplication/json
objectPickup
addressobjectrequiredAddress ↑
created_atstring · date-timerequired
idstringrequired
objectvaluerequired

const "pickup"

shipment_idsarray of stringrequired
Show child attributes
statusstringrequired

one of "scheduled", "completed", "canceled", "missed"

windowobjectrequiredPickupWindow ↑
Example response
{
  "address": {
    "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"
  },
  "created_at": "2026-06-09T00:00:00Z",
  "id": "pku_00000000000000000001",
  "object": "pickup",
  "shipment_ids": [
    "string"
  ],
  "status": "canceled",
  "window": {
    "ends_at": "2026-09-06T12:00:00Z",
    "starts_at": "2026-09-06T09:00:00Z"
  }
}
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