Skip to content

Get quotes

Developers

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.

Send the pickup location, the destination and the items.

Terminal window
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
}'
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.

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 cost or etaMinutes yourself.
  • 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 quotes list 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 carrier and serviceLevel of the quote you chose as carrier and service_level. See Create and manage deliveries.

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.

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:

  1. If the carrier’s price is above the rule’s maximum quote price, the quote is hidden.
  2. If cart_total is at or above the free delivery threshold, the price is 0.
  3. Otherwise a fixed price replaces the carrier’s price, or the floor and ceiling hold it within a range.
  4. 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.

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.