Create and manage deliveries
Developers
This page is for Developers, so it isn't in your menu.
A delivery is one booking with one carrier, from one of your locations to one address. Reading deliveries needs the deliveries:read scope; booking and changing them needs deliveries:write.
Create a delivery
Section titled “Create a delivery”POST /v1/deliveries books the delivery with the carrier and returns it with 201.
curl https://api.shipr.tech/v1/deliveries \ -H "Authorization: Bearer $SHIPR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "external_id": "ORDER-10234", "origin": { "location_id": "cm3q8x1k20001ab12cd34ef56" }, "destination": { "line1": "88 George St", "city": "Sydney", "state": "NSW", "postal_code": "2000", "country": "AU", "contact_name": "Jane Citizen", "contact_phone": "+61400000000", "email": "jane@example.com" }, "items": [ { "name": "Ceramic vase", "quantity": 1, "weight_grams": 1200, "dimensions_mm": { "length": 300, "width": 200, "height": 200 } } ], "carrier": "auspost", "service_level": "standard", "cart_total": 8900, "dropoff_notes": "Leave at the side door" }'const res = await fetch('https://api.shipr.tech/v1/deliveries', { method: 'POST', headers: { Authorization: `Bearer ${process.env.SHIPR_API_KEY}`, 'Content-Type': 'application/json', }, body: JSON.stringify({ external_id: 'ORDER-10234', origin: { location_id: 'cm3q8x1k20001ab12cd34ef56' }, destination: { line1: '88 George St', city: 'Sydney', state: 'NSW', postal_code: '2000', country: 'AU', contact_name: 'Jane Citizen', contact_phone: '+61400000000', email: 'jane@example.com', }, items: [ { name: 'Ceramic vase', quantity: 1, weight_grams: 1200, dimensions_mm: { length: 300, width: 200, height: 200 }, }, ], carrier: 'auspost', service_level: 'standard', cart_total: 8900, dropoff_notes: 'Leave at the side door', }),});const delivery = await res.json();import osimport requests
res = requests.post( "https://api.shipr.tech/v1/deliveries", headers={"Authorization": f"Bearer {os.environ['SHIPR_API_KEY']}"}, json={ "external_id": "ORDER-10234", "origin": {"location_id": "cm3q8x1k20001ab12cd34ef56"}, "destination": { "line1": "88 George St", "city": "Sydney", "state": "NSW", "postal_code": "2000", "country": "AU", "contact_name": "Jane Citizen", "contact_phone": "+61400000000", "email": "jane@example.com", }, "items": [ { "name": "Ceramic vase", "quantity": 1, "weight_grams": 1200, "dimensions_mm": {"length": 300, "width": 200, "height": 200}, } ], "carrier": "auspost", "service_level": "standard", "cart_total": 8900, "dropoff_notes": "Leave at the side door", },)delivery = res.json()| Field | Required | What it does |
|---|---|---|
carrier |
Yes | auspost, startrack, doordash, uber, or self_managed for a store delivery by your own drivers. Usually the carrier of the quote you chose. |
service_level |
Yes | standard, express, same_day or on_demand. Usually the quote’s serviceLevel. |
origin.location_id |
Yes, in practice | The location it leaves from. Australia Post, StarTrack and store deliveries need it, and so does every key limited to some locations. |
destination |
Yes | The address, plus the recipient’s contact_name, contact_phone and email. |
items |
Yes, unless you send parcels |
What’s in the delivery. Each item needs name and a whole-number quantity of at least 1. |
parcels |
No | Pre-packed parcels. See Parcels and packing. |
external_id |
No, but recommended | Your order number. Makes retries safe. See Retry safely. |
cart_total |
No | Order total in cents, so value-based rate overrides match. |
pickup_notes, dropoff_notes |
No | Notes for the driver. |
signature_required |
No | Ask for a signature on delivery. |
metadata |
No | Your own key-value data. Shipr stores it and returns it on the delivery. |
label_preferences |
No | Australia Post and StarTrack only: format (PDF or ZPL), layout (for example THERMAL-LABEL-A6-1PP or A4-1pp) and branded. |
A delivery starts as pending_pickup. For Australia Post and StarTrack, Shipr creates the shipment and its label while it books, so a carrier problem comes back straight away as 400 with a message such as AusPost booking failed: ….
Store deliveries
Section titled “Store deliveries”Store deliveries ("carrier": "self_managed") go out with your own drivers. Shipr turns them on for your account: ask Shipr support. Until then, booking one gets 403 with Store deliveries are turned off for this merchant. The price comes from the location’s distance bands, and the address must be inside its delivery area.
They take three extra fields:
| Field | What it does |
|---|---|
schedule |
The day to deliver, and an optional window that day, in the location’s time zone: "schedule": { "date": "2026-12-03", "window": { "start": "09:00", "end": "12:00" } }. Without it the delivery is ready for drivers straight away. Other carriers refuse schedule with 400. |
id_check_required |
The driver must check the recipient’s photo ID and hand the parcel over in person. |
signature_required |
The recipient signs on the driver’s phone. |
A store delivery gets a Shipr tracking number and a PDF label, and its tracking_url is the recipient’s live tracking link. See Tracking and statuses.
Retry safely with external_id
Section titled “Retry safely with external_id”Networks fail. If you don’t get a response, you can send the same create again, as long as it has the same external_id.
external_id is unique across your account. When you create a delivery with an external_id you’ve already used:
- if that delivery is active, Shipr returns it with
201and doesn’t book the carrier again - if that delivery is
cancelledorfailed, Shipr refuses with409. Book the replacement under a newexternal_id - if the delivery belongs to a location your key can’t see, Shipr refuses with
409
A create without external_id is never deduplicated. Each one books a new delivery.
Get a delivery
Section titled “Get a delivery”GET /v1/deliveries/{delivery_id} returns the delivery in full. This example is shortened.
{ "id": "cm3qa7d2k0004ab12cd34ef56", "external_id": "ORDER-10234", "status": "pending_pickup", "carrier": "auspost", "service_level": "standard", "currency": "AUD", "eta": "2026-12-01T03:15:00.000Z", "schedule": null, "tracking_url": "https://auspost.com.au/mypost/track/#/details/33ABC0012345", "tracking_number": "33ABC0012345", "location_id": "cm3q8x1k20001ab12cd34ef56", "destination": { "address_line1": "88 George St", "address_line2": null, "city": "Sydney", "state": "NSW", "postal_code": "2000", "country": "AU", "contact_name": "Jane Citizen", "contact_phone": "+61400000000" }, "status_timeline": [ { "status": "pending_pickup", "occurred_at": "2026-11-29T03:15:02.000Z" } ], "labels": [ { "id": "cm3qa7d9x0005ab12cd34ef56", "type": "shipping", "filename": "label-33ABC0012345.pdf", "mime_type": "application/pdf", "size_bytes": 45678, "carrier": "auspost", "created_at": "2026-11-29T03:15:03.000Z" } ], "parcels": [], "metadata": {}, "signature_required": false, "failed_attempt": null, "created_at": "2026-11-29T03:15:02.000Z", "updated_at": "2026-11-29T03:15:03.000Z"}status_timeline and failed_attempt are explained in Tracking and statuses. The full field list is in the API reference.
List deliveries
Section titled “List deliveries”GET /v1/deliveries returns your deliveries, newest first.
curl "https://api.shipr.tech/v1/deliveries?status=pending_pickup,picked_up&limit=50" \ -H "Authorization: Bearer $SHIPR_API_KEY"| Parameter | What it does |
|---|---|
limit |
How many to return, up to 100. The default is 25. |
starting_after |
The next_cursor from the previous page. |
status, carrier, service_level |
Only these values. Separate several with commas: status=delivered,failed. |
location_id |
Only deliveries from this location. |
date_from, date_to |
Only deliveries created on or between these dates (YYYY-MM-DD). |
scheduled_from, scheduled_to |
Only store deliveries scheduled on or between these dates. |
unscheduled |
true for only deliveries with no scheduled day. |
search |
Deliveries whose external_id or tracking number contains this text. |
Each page looks like this:
{ "data": [ { "id": "cm3qa7d2k0004ab12cd34ef56", "external_id": "ORDER-10234", "status": "pending_pickup", "carrier": "auspost", "service_level": "standard", "tracking_number": "33ABC0012345", "eta": "2026-12-01T03:15:00.000Z", "schedule": null, "recipient": { "name": "Jane Citizen", "suburb": "Sydney", "postcode": "2000" }, "parcel_count": 1, "driver": null, "location": { "id": "cm3q8x1k20001ab12cd34ef56", "name": "Surry Hills", "latitude": -33.886, "longitude": 151.211 }, "created_at": "2026-11-29T03:15:02.000Z" } ], "has_more": true, "next_cursor": "cm3qa7d2k0004ab12cd34ef56"}List entries are a summary. Get a single delivery for its timeline, labels and parcels.
To read every page, keep asking while has_more is true, passing next_cursor as starting_after:
let cursor = null;do { const url = new URL('https://api.shipr.tech/v1/deliveries'); url.searchParams.set('limit', '100'); if (cursor) url.searchParams.set('starting_after', cursor); const res = await fetch(url, { headers: { Authorization: `Bearer ${process.env.SHIPR_API_KEY}` } }); const page = await res.json(); for (const delivery of page.data) handle(delivery); cursor = page.has_more ? page.next_cursor : null;} while (cursor);Other lists (locations, manifests, returns, webhooks) page the same way, with a default of 50.
Change a delivery
Section titled “Change a delivery”PATCH /v1/deliveries/{delivery_id} changes a delivery while it’s pending_pickup. After that it gets 409 with Only pending_pickup deliveries can be updated. Send only the fields you want to change.
{ "dropoff_notes": "Leave with reception", "metadata": { "gift": true }}| Field | Notes |
|---|---|
pickup_notes, dropoff_notes, metadata |
Any carrier. null clears a note. |
items, parcels |
Re-packs the delivery. Australia Post: only before it’s on a manifest. |
preserve_customer_price |
Keeps the price your customer paid when the carrier’s price changes. On unless you send false. |
schedule, destination, signature_required, id_check_required |
Store deliveries only, and only before a driver has it on a trip. A new address is priced again and must be inside the delivery area, and the labels are remade. "schedule": null sends it straight away. |
You can’t change the carrier. To send it with another carrier, cancel it and book a new one.
Parcels and packing
Section titled “Parcels and packing”When you send only items, Shipr packs them into parcels for Australia Post using your box configurations. Items without dimensions_mm get a default size, which can split an order into more parcels than it needs.
If you already know how the order is boxed, send parcels. Shipr then skips packing and books exactly one carrier parcel per entry. Any items you also send are only a list of contents.
"parcels": [ { "weight_grams": 1500, "dimensions_mm": { "length": 300, "width": 200, "height": 150 }, "packaging_type": "CTN", "item_reference": "BOX-1", "contents": "1x ceramic vase" }]| Field | Notes |
|---|---|
weight_grams |
Required, more than 0. Australia Post: at most 22,000 g. |
dimensions_mm |
Required: length, width and height, each more than 0. Australia Post: at most 1,050 mm on any side. |
packaging_type |
Australia Post: CTN (box, the default) or SAT (satchel). |
item_reference |
Your reference. Defaults to PKG-1, PKG-2 and so on. |
contents |
A description for the label and manifest. |
To re-pack a pending_pickup delivery, send PATCH /v1/deliveries/{delivery_id}/parcels with a parcels list. Australia Post deliveries can be re-packed only before they’re on a manifest.
Cancel a delivery
Section titled “Cancel a delivery”POST /v1/deliveries/{delivery_id}/cancel cancels the delivery and sends a delivery.cancelled webhook. For Australia Post and StarTrack, Shipr also removes the shipment from the carrier if it isn’t on a manifest yet.
Cancel only while the delivery is pending_pickup. Once the carrier has the parcel, contact the carrier as well. Carriers may charge a cancellation fee.
The cancel response isn’t in the usual delivery format. Get the delivery again if you need its details.
Book a store delivery again
Section titled “Book a store delivery again”POST /v1/deliveries/{delivery_id}/rebook books a failed or cancelled store delivery again with the same recipient, parcels and options. Send an optional schedule for a new day, and an optional external_id. Without one, the new delivery gets the original’s external_id with a -R suffix. It returns the new delivery with 201, with a new tracking number and labels. The two deliveries are linked by rebooked_from and rebooked_to.
Labels
Section titled “Labels”Australia Post, StarTrack and store deliveries have PDF labels. DoorDash and Uber deliveries don’t need one.
| Request | Returns |
|---|---|
GET /v1/deliveries/{delivery_id}/labels |
{ "data": [ … ] }, the delivery’s labels |
GET /v1/deliveries/{delivery_id}/labels/{label_id} |
One label’s details |
GET /v1/deliveries/{delivery_id}/labels/{label_id}/download |
The file itself, usually application/pdf |
curl -o label.pdf \ "https://api.shipr.tech/v1/deliveries/cm3qa7d2k0004ab12cd34ef56/labels/cm3qa7d9x0005ab12cd34ef56/download" \ -H "Authorization: Bearer $SHIPR_API_KEY"For store deliveries, POST /v1/labels/print returns one PDF with a page per parcel, in run order. Choose deliveries by delivery_ids, by import_id, or by location_id and date. layout is THERMAL-LABEL-A6-1PP (100 × 150 mm, the default), A4-1pp or A4-4pp. It prints at most 1,000 labels, and the X-Label-Count and X-Delivery-Count headers give the totals.
Manifests
Section titled “Manifests”A manifest hands a batch of deliveries to the carrier for pickup, for example Australia Post at the end of the day. Creating one needs manifests:write.
POST /v1/manifests{ "carrier": "auspost", "location_id": "cm3q8x1k20001ab12cd34ef56", "delivery_ids": ["cm3qa7d2k0004ab12cd34ef56", "cm3qa9f1m0007ab12cd34ef56"]}Every delivery must be from that location and carrier, be pending_pickup, and not be on another manifest. Shipr then sends the manifest to the carrier in the background and sends a manifest.created webhook. Once the carrier has processed it, GET /v1/manifests/{manifest_id}/summary downloads the carrier’s summary PDF, if the carrier provides one.
Returns
Section titled “Returns”POST /v1/returns (scope returns:write) starts a return for a delivered delivery whose carrier supports returns. Each delivery can have one return.
{ "delivery_id": "cm3qa7d2k0004ab12cd34ef56", "reason": "damaged", "notes": "Box crushed in transit"}reason is one of customer_changed_mind, wrong_item, damaged, not_as_described, late_delivery or other. A new return is requested and sends a return.created webhook.
See the API reference for every field and response.