Get quotes
Developers
This page is for Developers, so it isn't in your menu.
A quote is a price for one carrier and service level. Ask for quotes before you book, for example to show delivery options at checkout. POST /v1/quotes needs the deliveries:read scope.
Request quotes
Section titled “Request quotes”Send the pickup location, the destination and the items.
curl https://api.shipr.tech/v1/quotes \ -H "Authorization: Bearer $SHIPR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "origin": { "location_id": "cm3q8x1k20001ab12cd34ef56" }, "destination": { "line1": "88 George St", "city": "Sydney", "state": "NSW", "postal_code": "2000", "country": "AU" }, "items": [ { "name": "Ceramic vase", "quantity": 1, "weight_grams": 1200, "dimensions_mm": { "length": 300, "width": 200, "height": 200 } } ], "cart_total": 8900 }'const res = await fetch('https://api.shipr.tech/v1/quotes', { method: 'POST', headers: { Authorization: `Bearer ${process.env.SHIPR_API_KEY}`, 'Content-Type': 'application/json', }, body: JSON.stringify({ origin: { location_id: 'cm3q8x1k20001ab12cd34ef56' }, destination: { line1: '88 George St', city: 'Sydney', state: 'NSW', postal_code: '2000', country: 'AU', }, items: [ { name: 'Ceramic vase', quantity: 1, weight_grams: 1200, dimensions_mm: { length: 300, width: 200, height: 200 }, }, ], cart_total: 8900, }),});const { quotes } = await res.json();import osimport requests
res = requests.post( "https://api.shipr.tech/v1/quotes", headers={"Authorization": f"Bearer {os.environ['SHIPR_API_KEY']}"}, json={ "origin": {"location_id": "cm3q8x1k20001ab12cd34ef56"}, "destination": { "line1": "88 George St", "city": "Sydney", "state": "NSW", "postal_code": "2000", "country": "AU", }, "items": [ { "name": "Ceramic vase", "quantity": 1, "weight_grams": 1200, "dimensions_mm": {"length": 300, "width": 200, "height": 200}, } ], "cart_total": 8900, },)quotes = res.json()["quotes"]| Field | Required | What it does |
|---|---|---|
origin.location_id |
Yes | The location the parcel leaves from. Shipr uses its address and contact details. List your locations with GET /v1/locations. |
destination |
Yes | line1, city, state, postal_code and country are required; line2 is optional. |
items |
Yes | At least one item with name and quantity. Add weight_grams and dimensions_mm for accurate prices. |
cart_total |
No | The order total in cents. Rate overrides that depend on order value, such as free delivery over a threshold, use it. |
ready_at |
No | When the parcel will be ready, as an ISO 8601 time. |
filters |
No | Narrow the results. See Filter quotes. |
For Australian addresses on an account that uses Australia Post, Shipr checks the suburb, state and postcode belong together. A mismatch gets 400 with a message such as Invalid delivery address: … and, where it can, a list of valid suburbs for that postcode.
The response
Section titled “The response”Shipr asks every carrier your account is set up for at the same time and returns the quotes that come back.
{ "quotes": [ { "id": "self_managed_cm3q8x1k20001ab12cd34ef56", "carrier": "self_managed", "serviceLevel": "standard", "cost": 800, "currency": "AUD", "metadata": { "distance_km": 4.2 } }, { "id": "auspost_quo_standard_1764386100000", "carrier": "auspost", "serviceLevel": "standard", "cost": 1095, "currency": "AUD", "etaMinutes": 2880, "expiresAt": "2026-11-29T03:45:00.000Z", "capabilities": [], "metadata": { "provider": "auspost", "serviceCode": "AUS_PARCEL_REGULAR", "serviceName": "Parcel Post", "deliveryTime": "Delivered in 2-4 business days" } } ]}| Field | Meaning |
|---|---|
carrier |
auspost, startrack, doordash, uber, or self_managed for a store delivery by your own drivers. |
serviceLevel |
standard, express, same_day or on_demand. |
cost |
The price in cents, after your rate overrides. |
etaMinutes |
The carrier’s estimate of how long delivery takes. Not every quote has one. |
expiresAt |
How long the carrier holds the price. Australia Post gives 30 minutes, DoorDash 15. |
metadata |
Carrier details. When a rate override changed the price, carrier_cost holds the carrier’s own price and label holds the override’s label, if it has one. |
Some things to know:
- The list isn’t sorted. Sort by
costoretaMinutesyourself. - A carrier that fails is left out. If a carrier doesn’t answer or refuses the address, its quotes are missing and the others still come back. An empty
quoteslist means no carrier could quote. - A store delivery quote appears when the location delivers with your own drivers and the destination is inside its delivery area. Its price comes from the location’s distance bands. Store deliveries are something Shipr turns on for your account: ask Shipr support.
- Booking doesn’t use the quote ID. To book, send the
carrierandserviceLevelof the quote you chose ascarrierandservice_level. See Create and manage deliveries.
Filter quotes
Section titled “Filter quotes”Add filters to narrow the results. Every filter is optional.
"filters": { "carriers": ["auspost", "startrack"], "service_levels": ["express"], "max_cost": 2500}| Filter | Keeps |
|---|---|
carriers |
Only these carriers. Shipr doesn’t ask the others. |
exclude_carriers |
Every carrier except these. |
service_levels |
Only these service levels. |
exclude_service_levels |
Every service level except these. |
max_cost |
Quotes at or below this price in cents. |
max_eta_minutes |
Quotes with an estimate at or below this. Quotes without an estimate are dropped. |
capabilities |
Quotes that have every listed capability, such as signature_required. |
How rate overrides change prices
Section titled “How rate overrides change prices”Rate overrides are pricing rules you set in the dashboard under rate overrides. Shipr applies them to every quote before it returns it, so cost is what you charge your customer.
For each quote, Shipr finds the highest-priority active rule that matches the carrier, service level, total weight and cart_total. Then:
- If the carrier’s price is above the rule’s maximum quote price, the quote is hidden.
- If
cart_totalis at or above the free delivery threshold, the price is 0. - Otherwise a fixed price replaces the carrier’s price, or the floor and ceiling hold it within a range.
- The price is rounded to the rule’s rounding amount.
Send cart_total and item weights, or rules that depend on them can’t match. GET /v1/rate-overrides (scope rate_overrides:read) lists your rules so you can see which apply.
Parcels and packing
Section titled “Parcels and packing”Quotes price the items you send. When you book an Australia Post delivery, Shipr packs the items into parcels using your box configurations, or you can send your own parcels. See Parcels and packing.
Full request and response fields are in the API reference.