Pickup (Booking) API

Create a Pickup

Endpoint: POST /v1/pickups
Description: Books a new courier pickup for one or more consignments.

Request Example

 
{
  "accountNumber": "123456",
  "pickupDate": "2025-10-21",
  "readyTime": "09:00",
  "closeTime": "17:00",
  "contact": {
    "name": "John Doe",
    "phone": "0211234567"
  },
  "address": {
    "name": "ABC Distribution",
    "addressLine1": "12 Warehouse Road",
    "suburb": "Penrose",
    "city": "Auckland",
    "postcode": "1061"
  },
  "consignmentIds": ["FW123456789", "FW123456790"],
  "specialInstructions": "Call on arrival" } 

Response Example (201 Created)

 
{
  "pickupId": "PU123456789",
  "accountNumber": "123456",
  "status": "Scheduled",
  "pickupDate": "2025-10-21",
  "readyTime": "09:00",
  "closeTime": "17:00",
  "consignments": ["FW123456789", "FW123456790"],
  "carrier": "NZ Couriers" } 

Field Notes

Field Description
accountNumber Freightways account number for pickup billing
pickupDate Date the pickup should occur
readyTime / closeTime Time window for courier arrival
contact On-site contact details
address Pickup address
consignmentIds One or more consignments associated with this pickup
specialInstructions Optional field for courier guidance

Error Responses

Code Example Description
400 Invalid time window Validation error
404 Account not found Missing or invalid account
500 Internal error Unable to schedule pickup

🔎 Retrieve a Pickup

Endpoint: GET /v1/pickups/{pickupId}
Description: Retrieves details and current status for a previously scheduled pickup.

Example Request

 
GET /v1/pickups/PU123456789 HTTP/1.1
Host: api.freightways.co.nz
x-api-key: your_api_key_here
Accept: application/json

Response Example (200 OK)

 
{
  "pickupId": "PU123456789",
  "accountNumber": "123456",
  "status": "Completed",
  "pickupDate": "2025-10-21",
  "readyTime": "09:00",
  "closeTime": "17:00",
  "collectedTime": "2025-10-21T10:15:00Z",
  "carrier": "NZ Couriers",
  "consignments": ["FW123456789", "FW123456790"] } 

Common Status Values

Status Meaning
Scheduled Pickup booked and awaiting collection
In Progress Courier en route
Completed Consignments collected successfully
Cancelled Pickup cancelled before completion

Did this article answer your question?

Can't find the answer to your question?

Suggest an article