https://api-sandbox.parcelradar.io/api/partner/v1/instant-quote/quoteGet live rates (sync)
Submit a shipment and receive the live rate from every supported carrier in a single call. Blocks until the carrier fan-out settles (or ~60s → 504).
| Field | Type | Required | Values | Default | Note |
|---|---|---|---|---|---|
| origin | object | Yes | - | - | Ship-from address. |
| country | string | Yes | ISO-2, e.g. "TH" | - | Trimmed to 2 characters, upper-cased. |
| city | string | - | - | - | City name, free text. |
| zipcode | string | - | - | - | Postal code. |
| destination | object | Yes | - | - | Ship-to address. |
| country | string | Yes | ISO-2, e.g. "TH" | - | Trimmed to 2 characters, upper-cased. |
| city | string | - | - | - | City name, free text. |
| zipcode | string | - | - | - | Postal code. |
| parcels | array | Yes | - | - | One entry per parcel. |
| length | number | - | > 0 | 1 | Length in the dunit. |
| width | number | - | > 0 | 1 | Width in the dunit. |
| height | number | - | > 0 | 1 | Height in the dunit. |
| weight | number | - | > 0 | 1 | Weight in the wunit. |
| wunit | string | - | "kg", "lb" | "kg" | Weight unit for the parcels AND the result's `chargeableWeight`. |
| dunit | string | - | "cm", "in" | "cm" | Dimension unit. |
| currency | string | - | "THB", "USD", "EUR", "GBP" | "THB" | Goods/declared-value currency for customs (the match-engine's goods_currency). The cost is always returned in all four currencies. |
| value | number | - | >= 0 | 100 | Declared goods value. |
{
"origin": {
"country": "TH",
"city": "Bangkok",
"zipcode": "10240"
},
"destination": {
"country": "US",
"city": "New York",
"zipcode": "11373"
},
"parcels": [
{
"length": 20,
"width": 15,
"height": 10,
"weight": 2
}
],
"wunit": "kg",
"dunit": "cm",
"currency": "THB",
"value": 1500
}| Field | Type | Required | Values | Default | Note |
|---|---|---|---|---|---|
| status | string | Yes | "ready", "failed" | - | Overall quote status on a 200 response. If the carrier fan-out doesn't finish within the ~60s poll window the call returns 504 with { status: "timeout" } instead (see response codes). |
| results | array | Yes | - | - | One entry per provider. |
| providerCode | string | Yes | - | - | The carrier/provider code. |
| id | uuid | Yes | UUID | - | Provider id — pass to /conditions and /ratecard. |
| name | string | - | - | - | Provider display name. |
| description | string | - | - | - | Short provider description. |
| image | string | - | - | - | Provider logo URL. |
| type | string | - | - | - | Transport type (e.g. "Air Consolidate"). |
| ok | boolean | Yes | true, false | - | false when the provider produced no quotable rate. |
| cost | object | - | - | - | Effective cost in all four currencies — the same money shape as the match-engine, each rounded to 2 decimal places. Omitted when ok=false. |
| thb | number | Yes | - | - | Cost in THB. |
| usd | number | Yes | - | - | Cost in USD. |
| eur | number | Yes | - | - | Cost in EUR. |
| gbp | number | Yes | - | - | Cost in GBP. |
| chargeableWeight | number | - | - | - | Chargeable weight used for the quote, expressed in `weightUnit` (omitted when ok=false). |
| weightUnit | string | - | "kg", "lb" | - | Unit of `chargeableWeight` — echoes the request's `wunit`. |
| error | string | - | - | - | Reason when ok=false. |
| promotion | string | - | "ads", "boost" | - | Present when this provider paid for placement on this route — disclose it to your users (omitted on ordinary rows and on results created before this field existed). |
| nonRateService | boolean | - | true, false | - | true for a service such as customs clearance or packing, whose price is not comparable to a shipping rate. |
| campaign | object | - | - | - | Present when an automatic discount campaign applies to this rate: the price after it. `cost` stays the price before campaigns, so you can show both. Shows campaigns open to everyone and those for your workspace's membership tier; coupons and campaigns aimed at your workspace itself (targeted, first-order or per-workspace limits) apply only at checkout and never appear here. Campaigns are checked again when the order is checked out. |
| listCost | object | Yes | - | - | List price before any discount, in the `cost` shape. |
| discount | object | Yes | - | - | What the campaigns take off, in the `cost` shape. |
| cost | object | Yes | - | - | Price after the campaigns (and your membership discount, unless `tierDropped`), in the `cost` shape. |
| tierDropped | boolean | Yes | true, false | - | true when a campaign replaced your membership discount instead of adding to it. |
| applied | array | Yes | - | - | Each campaign that applies. |
| campaignId | uuid | Yes | UUID | - | Campaign id. |
| name | string | Yes | - | - | Campaign name (English). |
| nameTh | string | - | - | - | Campaign name in Thai, when set. |
| discount | object | Yes | - | - | What this campaign takes off, in the `cost` shape. |
{
"status": "ready",
"results": [
{
"providerCode": "thaipost-ems",
"id": "019e2246-1ec2-75be-b8cd-969d9d61dd31",
"name": "EMS World Package",
"description": "",
"image": "https://cdn.parcelradar.io/logos/thaipost.webp",
"type": "Air",
"ok": true,
"cost": {
"thb": 1240.5,
"usd": 34.2,
"eur": 31.1,
"gbp": 27
},
"chargeableWeight": 2,
"weightUnit": "kg"
},
{
"providerCode": "dhl-express",
"id": "019e7e93-c965-747a-8ee1-c1ee21adabaa",
"name": "DHL Express",
"ok": false,
"error": "no rate matched courier_code + service"
}
]
}| Code | Status | Description |
|---|---|---|
| 200 | OK | Rates returned. status is "ready" (or "failed" if the quote could not be completed); results has one entry per carrier. |
| 400 | Bad Request | The request body failed validation — a missing origin/destination/parcels, an invalid unit or currency, a non-positive dimension/weight, a negative value, or malformed JSON. The error body's fields array lists each offending field. |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, or revoked. |
| 429 | Too Many Requests | Rate limit exceeded. Back off and retry after a short delay. |
| 500 | Internal Server Error | An unexpected error occurred while producing the quote. The response is generic (no internals are leaked); the request is safe to retry. |
| 503 | Service Unavailable | A required upstream (API-key verification or a carrier gateway) was temporarily unavailable. Retry shortly. |
| 504 | Gateway Timeout | The carrier fan-out didn't settle within the ~60s poll window. The body is { status: "timeout" } (no results) — the quote keeps processing server-side, so either retry /quote or switch to the async lane and poll. |
{
"ok": false,
"status": 400,
"error": "request failed validation",
"fields": [
{
"field": "destination",
"message": "is required"
},
{
"field": "parcels",
"message": "at least one parcel is required"
},
{
"field": "currency",
"message": "must be one of THB, USD, EUR, GBP"
}
]
}/api/partner/v1/instant-quote/quote