Lastmile API

Create and manage delivery bookings.

The Lastmile API allows partners to create and manage delivery bookings. You can place bookings, track their progress through the delivery lifecycle, and retrieve booking details.

Authentication

Include your API key in the X-DELIVEREASY-API-KEY header with every request.

curl -H "X-DELIVEREASY-API-KEY: your_api_key_here" \
  https://api.delivereasy.co.nz/api/2025-04-01/lastmile/bookings

Base URLs

EnvironmentURL
Staginghttps://api.staging.delivereasy.co.nz/api/2025-04-01/lastmile
Productionhttps://api.delivereasy.co.nz/api/2025-04-01/lastmile

Booking lifecycle

A booking moves through these statuses during delivery:

not_assignedassignedpickup_enroutepickup_nearbypickup_arrivingpickup_arrivedpickup_completedropoff_enroutedropoff_arriveddropoff_complete

A booking can also be cancelled, or enter return_in_progress and returned states if the delivery cannot be completed.