Parcel Radar Developer Portal
อ่านเอกสารอ้างอิง ทดลองเรียก API และดาวน์โหลดสเปคได้ทันที
การยืนยันตัวตน
ส่ง API key ของ sandbox ผ่าน header X-API-Key ในทุกคำขอ key ของ sandbox ใช้ได้เฉพาะที่นี่ และ key สำหรับใช้งานจริงใช้ที่นี่ไม่ได้
https://api-sandbox.parcelradar.ioAPI ของ sandbox: Parcel Radar อีกชุดหนึ่งที่มีบัญชีและข้อมูลแยกของตัวเอง ออเดอร์ คูเรียร์ และการชำระเงินเป็นการทดสอบ QR เป็น test QR ที่ชำระได้ด้วยการสแกน ทุกพาธอยู่ภายใต้ /api/partner/v1
รับ API key ของ sandbox
API key ของ sandbox ออกให้ผ่าน Member Portal ของ sandbox สมัครที่นั่น (แยกจากระบบใช้งานจริง) แล้วสร้างและจัดการ key ได้ที่ API › API keys
เข้าสู่ระบบ Member Portal ของ sandboxพร้อมใช้งานจริงแล้ว?
ระบบใช้งานจริงมีเว็บไซต์ Member Portal บัญชี และ key แยกของตัวเอง บัญชีและ key ของ sandbox ใช้ต่อไม่ได้ ให้สร้าง key สำหรับใช้งานจริงแล้วเรียก api.parcelradar.io
การจำกัดอัตราการเรียกใช้และการควบคุมปริมาณ
การเรียกใช้ Instant Quote API จะถูกจำกัดอัตราตาม IP ของผู้เรียกแต่ละราย เพื่อให้บริการรวดเร็วและเป็นธรรมกับทุกคน โดยขีดจำกัดปัจจุบันมีดังนี้:
- 10req/s
- ต่อเนื่อง ต่อ IP
- 50req
- โควตาช่วงพีค (burst)
- 429HTTP
- Too Many Requests
หากเรียกใช้เกินขีดจำกัด API จะตอบกลับด้วย HTTP 429 Too Many Requests โปรดกระจายการเรียกใช้ให้ห่างขึ้นและลองใหม่แบบ exponential backoff โดยเว้นช่วงสั้น ๆ ก็มักจะกลับมาเรียกได้ตามปกติ เนื่องจากขีดจำกัดถูกบังคับที่ edge ตาม IP การรวมทราฟฟิกทั้งหมดผ่านเซิร์ฟเวอร์เดียวจึงเท่ากับใช้โควตาร่วมกัน
ต้องการอัตราที่สูงขึ้นหรือกำหนดเองสำหรับการเชื่อมต่อของคุณ? ติดต่อทีมงานพร้อมแจ้งปริมาณการใช้งานที่คาดไว้ แล้วเราจะจัดเตรียมให้เหมาะกับคุณได้ที่ contact@parcelradar.io
# Parcel Radar - Live Rates API (v1)
Real-time shipping rates from every supported carrier in a single request.
> **For AI agents / assistants.** This is the complete, authoritative reference for the Parcel
> Radar **Live Rates API** — real-time international shipping rates from every supported carrier.
> Use it to help a developer integrate the API: follow the endpoints below exactly (methods, full
> URLs, and field names) and do not invent parameters, paths, or response fields. Key facts:
>
> - **Environment: SANDBOX.** Base URL `https://api-sandbox.parcelradar.io`, every path under `/api/partner/v1/…`, with a SANDBOX
> `X-API-Key` (from https://member-sandbox.parcelradar.io). Test data, test couriers and test QR payments — no real money.
> Production is a separate site with its own keys: https://developer.parcelradar.io.
> - **Two ways to get rates:** the synchronous `POST /quote` returns every carrier's rate in one
> call (it blocks up to ~60s); the asynchronous lane (`/inquiry` → poll → `/results`) is
> non-blocking — follow the **Get live rates (async)** flow under *Instant Quote — Asynchronous*.
> - Rate results are ordered **promoted first, then cheapest first**; providers that produced no rate are listed last. A promoted row carries `promotion` (`ads` or `boost`) — a paid placement, which you should disclose.
> - A rate an automatic discount campaign applies to also carries `campaign` with the price after it; `cost` stays the price before campaigns. Only campaigns open to everyone or to your workspace's membership tier appear; coupons and workspace-specific campaigns apply at checkout only, where campaigns are checked again.
## Base URL
All requests go to `https://api-sandbox.parcelradar.io/api/partner/v1/…` and need your `X-API-Key`.
This is the **sandbox**: a separate copy of Parcel Radar with its own accounts, keys and data (sign up at https://member-sandbox.parcelradar.io). Orders, couriers and payments are tests; QR payments are test QRs. Production: https://developer.parcelradar.io (`https://api.parcelradar.io`).
**Authentication:** Send your sandbox API key in the X-API-Key header on every request. Sandbox keys come from the sandbox Member Portal and work only on the sandbox.
## Instant Quote — Synchronous
One request, one response: POST your shipment to /quote and the call blocks until every carrier's rate is in (or a ~60s timeout, which returns 504). The simplest way to integrate — choose this unless you must avoid holding a request open for up to a minute (e.g. serverless/edge functions with short timeouts, or very high concurrency).
### Get live rates (sync)
`POST https://api-sandbox.parcelradar.io/api/partner/v1/instant-quote/quote`
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).
**Request**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `origin` | object | ✓ | | | Ship-from address. |
| `origin.country` | string | ✓ | ISO-2, e.g. "TH" | | Trimmed to 2 characters, upper-cased. |
| `origin.city` | string | | | | City name, free text. |
| `origin.zipcode` | string | | | | Postal code. |
| `destination` | object | ✓ | | | Ship-to address. |
| `destination.country` | string | ✓ | ISO-2, e.g. "TH" | | Trimmed to 2 characters, upper-cased. |
| `destination.city` | string | | | | City name, free text. |
| `destination.zipcode` | string | | | | Postal code. |
| `parcels` | array | ✓ | | | One entry per parcel. |
| `parcels[].length` | number | | > 0 | 1 | Length in the dunit. |
| `parcels[].width` | number | | > 0 | 1 | Width in the dunit. |
| `parcels[].height` | number | | > 0 | 1 | Height in the dunit. |
| `parcels[].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. |
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `status` | string | ✓ | "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 | ✓ | | | One entry per provider. |
| `results[].providerCode` | string | ✓ | | | The carrier/provider code. |
| `results[].id` | uuid | ✓ | UUID | | Provider id — pass to /conditions and /ratecard. |
| `results[].name` | string | | | | Provider display name. |
| `results[].description` | string | | | | Short provider description. |
| `results[].image` | string | | | | Provider logo URL. |
| `results[].type` | string | | | | Transport type (e.g. "Air Consolidate"). |
| `results[].ok` | boolean | ✓ | true, false | | false when the provider produced no quotable rate. |
| `results[].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. |
| `results[].cost.thb` | number | ✓ | | | Cost in THB. |
| `results[].cost.usd` | number | ✓ | | | Cost in USD. |
| `results[].cost.eur` | number | ✓ | | | Cost in EUR. |
| `results[].cost.gbp` | number | ✓ | | | Cost in GBP. |
| `results[].chargeableWeight` | number | | | | Chargeable weight used for the quote, expressed in `weightUnit` (omitted when ok=false). |
| `results[].weightUnit` | string | | "kg", "lb" | | Unit of `chargeableWeight` — echoes the request's `wunit`. |
| `results[].error` | string | | | | Reason when ok=false. |
| `results[].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). |
| `results[].nonRateService` | boolean | | true, false | | true for a service such as customs clearance or packing, whose price is not comparable to a shipping rate. |
| `results[].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. |
| `results[].campaign.listCost` | object | ✓ | | | List price before any discount, in the `cost` shape. |
| `results[].campaign.discount` | object | ✓ | | | What the campaigns take off, in the `cost` shape. |
| `results[].campaign.cost` | object | ✓ | | | Price after the campaigns (and your membership discount, unless `tierDropped`), in the `cost` shape. |
| `results[].campaign.tierDropped` | boolean | ✓ | true, false | | true when a campaign replaced your membership discount instead of adding to it. |
| `results[].campaign.applied` | array | ✓ | | | Each campaign that applies. |
| `results[].campaign.applied[].campaignId` | uuid | ✓ | UUID | | Campaign id. |
| `results[].campaign.applied[].name` | string | ✓ | | | Campaign name (English). |
| `results[].campaign.applied[].nameTh` | string | | | | Campaign name in Thai, when set. |
| `results[].campaign.applied[].discount` | object | ✓ | | | What this campaign takes off, in the `cost` shape. |
**Request example**
```json
{
"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
}
```
**Response example**
```json
{
"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"
}
]
}
```
**Response codes**
| 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. |
**Error example**
```json
{
"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"
}
]
}
```
## Instant Quote — Asynchronous
Non-blocking, in three steps: POST /inquiry to start, GET /inquiry?id= to poll until the status leaves "processing", then GET /results?inquiryId= for the rates. Returns the same rates as the sync lane — choose this when you don't want a long-held request, want to show progressive UI, or run where request timeouts are short.
### Get live rates (async)
Create an inquiry, poll it until it's ready, then fetch the results — the same rates as the synchronous /quote, without holding a request open. Call these three endpoints in order.
```text
Your app ──► Parcel Radar API (request)
Your app ◄── Parcel Radar API (response)
(1) ──► POST /inquiry needs X-API-Key
◄── 202 · { inquiryId } → id to poll
(2) ──► GET /inquiry?id={inquiryId} poll every ~1–2s [loop]
◄── { status } → until "ready"
(3) ──► GET /results?inquiryId={inquiryId}
◄── { status, results[] } → promoted first, then cheapest
```
**Steps**
1. `POST /inquiry` — needs X-API-Key; returns `202 · { inquiryId }`.
2. `GET /inquiry?id={inquiryId}` — poll every ~1–2s; returns `{ status }`. Repeat until `status` is `"ready"` (or `"failed"`).
3. `GET /results?inquiryId={inquiryId}` — returns `{ status, results[] }`.
**Polling tips:** Wait ~1–2s between polls (a short exponential backoff is fine) and give up after about 60s — the same ceiling the synchronous /quote uses. Only POST /inquiry needs your X-API-Key; the poll and results calls just need the returned inquiryId.
### Create an inquiry
`POST https://api-sandbox.parcelradar.io/api/partner/v1/instant-quote/inquiry`
Start an async quote. Returns immediately with an inquiryId to poll — the carrier fan-out runs in the background. Same shipment body as /quote.
**Request**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `origin` | object | ✓ | | | Ship-from address. |
| `origin.country` | string | ✓ | ISO-2, e.g. "TH" | | Trimmed to 2 characters, upper-cased. |
| `origin.city` | string | | | | City name, free text. |
| `origin.zipcode` | string | | | | Postal code. |
| `destination` | object | ✓ | | | Ship-to address. |
| `destination.country` | string | ✓ | ISO-2, e.g. "TH" | | Trimmed to 2 characters, upper-cased. |
| `destination.city` | string | | | | City name, free text. |
| `destination.zipcode` | string | | | | Postal code. |
| `parcels` | array | ✓ | | | One entry per parcel. |
| `parcels[].length` | number | | > 0 | 1 | Length in the dunit. |
| `parcels[].width` | number | | > 0 | 1 | Width in the dunit. |
| `parcels[].height` | number | | > 0 | 1 | Height in the dunit. |
| `parcels[].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. |
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `inquiryId` | uuid | ✓ | | | The id to poll and fetch results with. |
| `status` | string | ✓ | "processing" | | Always "processing" on create. |
**Request example**
```json
{
"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
}
```
**Response example**
```json
{
"inquiryId": "019e2246-1ec2-75be-b8cd-969d9d61dd31",
"status": "processing"
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 202 | Accepted | Inquiry created. Poll GET /inquiry?id= until the status is no longer "processing", then GET /results?inquiryId=. |
| 400 | Bad Request | The request body failed validation — same rules as /quote. 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. |
| 503 | Service Unavailable | API-key verification was temporarily unavailable. Retry shortly. |
### Poll inquiry status
`GET https://api-sandbox.parcelradar.io/api/partner/v1/instant-quote/inquiry`
Check whether an inquiry has finished. Poll every ~1–2s until the status leaves "processing", then fetch the results.
**Query parameters**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `id` | uuid | ✓ | UUID | | The inquiryId returned by POST /inquiry. |
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `inquiryId` | uuid | ✓ | | | Echoes the polled id. |
| `status` | string | ✓ | "processing", "ready", "failed" | | Poll until it leaves "processing". |
**Response example**
```json
{
"inquiryId": "019e2246-1ec2-75be-b8cd-969d9d61dd31",
"status": "ready"
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | The current status. |
| 400 | Bad Request | `id` is missing or not a valid UUID. |
| 404 | Not Found | No inquiry with that id. |
**Error example**
```json
{
"ok": false,
"status": 404,
"error": "no inquiry found with id 00000000-0000-0000-0000-000000000000"
}
```
### Get inquiry results
`GET https://api-sandbox.parcelradar.io/api/partner/v1/instant-quote/results`
Fetch the per-provider rates for an inquiry. Same results shape as the synchronous /quote response; results fill in once the status is "ready".
**Query parameters**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `inquiryId` | uuid | ✓ | UUID | | The inquiryId returned by POST /inquiry. |
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `inquiryId` | uuid | ✓ | | | Echoes the inquiryId. |
| `status` | string | ✓ | "processing", "ready", "failed" | | Overall status; results is populated once ready. |
| `results` | array | ✓ | | | One entry per provider. |
| `results[].providerCode` | string | ✓ | | | The carrier/provider code. |
| `results[].id` | uuid | ✓ | UUID | | Provider id — pass to /conditions and /ratecard. |
| `results[].name` | string | | | | Provider display name. |
| `results[].description` | string | | | | Short provider description. |
| `results[].image` | string | | | | Provider logo URL. |
| `results[].type` | string | | | | Transport type (e.g. "Air Consolidate"). |
| `results[].ok` | boolean | ✓ | true, false | | false when the provider produced no quotable rate. |
| `results[].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. |
| `results[].cost.thb` | number | ✓ | | | Cost in THB. |
| `results[].cost.usd` | number | ✓ | | | Cost in USD. |
| `results[].cost.eur` | number | ✓ | | | Cost in EUR. |
| `results[].cost.gbp` | number | ✓ | | | Cost in GBP. |
| `results[].chargeableWeight` | number | | | | Chargeable weight used for the quote, expressed in `weightUnit` (omitted when ok=false). |
| `results[].weightUnit` | string | | "kg", "lb" | | Unit of `chargeableWeight` — echoes the request's `wunit`. |
| `results[].error` | string | | | | Reason when ok=false. |
| `results[].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). |
| `results[].nonRateService` | boolean | | true, false | | true for a service such as customs clearance or packing, whose price is not comparable to a shipping rate. |
| `results[].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. |
| `results[].campaign.listCost` | object | ✓ | | | List price before any discount, in the `cost` shape. |
| `results[].campaign.discount` | object | ✓ | | | What the campaigns take off, in the `cost` shape. |
| `results[].campaign.cost` | object | ✓ | | | Price after the campaigns (and your membership discount, unless `tierDropped`), in the `cost` shape. |
| `results[].campaign.tierDropped` | boolean | ✓ | true, false | | true when a campaign replaced your membership discount instead of adding to it. |
| `results[].campaign.applied` | array | ✓ | | | Each campaign that applies. |
| `results[].campaign.applied[].campaignId` | uuid | ✓ | UUID | | Campaign id. |
| `results[].campaign.applied[].name` | string | ✓ | | | Campaign name (English). |
| `results[].campaign.applied[].nameTh` | string | | | | Campaign name in Thai, when set. |
| `results[].campaign.applied[].discount` | object | ✓ | | | What this campaign takes off, in the `cost` shape. |
**Response example**
```json
{
"inquiryId": "019e2246-1ec2-75be-b8cd-969d9d61dd31",
"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"
}
]
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | Status + per-provider results (results may be empty until the status is "ready"). |
| 400 | Bad Request | `inquiryId` is missing or not a valid UUID. |
| 404 | Not Found | No inquiry with that id. |
**Error example**
```json
{
"ok": false,
"status": 404,
"error": "no inquiry found with id 00000000-0000-0000-0000-000000000000"
}
```
## Provider detail
Look up a provider's shipping conditions or rate card by the provider id returned in a quote result.
### Get provider conditions
`GET https://api-sandbox.parcelradar.io/api/partner/v1/instant-quote/conditions`
The shipping conditions for one provider — incoterms, transit time, service network, features, weight config, route coverage and, when the provider restricts goods by HS code, its goodsRestriction. Pass a provider id from a /quote result.
**Query parameters**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `id` | uuid | ✓ | UUID | | Provider id (the `id` from a /quote result). |
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `id` | uuid | ✓ | UUID | | Provider id. |
| `name` | string | | | | Provider display name. |
| `type` | string | | | | Transport type. |
| `incoterms` | array | | e.g. "DAP", "DDP" | | Supported incoterms. |
| `allIn` | boolean | | true, false | | All-in (duties/taxes included). |
| `serviceNetwork` | string | | | | Service network. |
| `transitMinDays` | number | | | | Minimum transit days. |
| `transitMaxDays` | number | | | | Maximum transit days. |
| `features` | array | | | | Feature badges. |
| `features[].name` | string | | | | Feature name. |
| `features[].category` | string | | | | Feature category. |
| `features[].icon` | string | | | | Icon key. |
| `weightConfig` | object | | | | Chargeable-weight config. |
| `weightConfig.divisorKg` | number | | | | Volumetric divisor (kg). |
| `weightConfig.divisorLb` | number | | | | Volumetric divisor (lb). |
| `weightConfig.roundingStepKg` | number | | | | Rounding step (kg). |
| `weightConfig.roundingStepLb` | number | | | | Rounding step (lb). |
| `weightConfig.mode` | string | | "per_piece", "shipment_level" | | Chargeable-weight mode. |
| `coverage` | object | | | | Route coverage. |
| `coverage.worldwideOrigin` | boolean | | | | Accepts any origin. |
| `coverage.worldwideDestination` | boolean | | | | Ships anywhere. |
| `coverage.origins` | array | | | | Origin ISO-2 codes. |
| `coverage.destinations` | array | | | | Destination ISO-2 codes. |
| `coverage.transitOverrides` | array | | | | Per-country transit overrides. |
| `coverage.transitOverrides[].countryCode` | string | | | | ISO-2 country. |
| `coverage.transitOverrides[].minDays` | number | | | | Min transit days. |
| `coverage.transitOverrides[].maxDays` | number | | | | Max transit days. |
| `conditions` | array | | | | The provider's shipping conditions grouped by category (packaging/labeling, prohibited items, customs, …), ordered for display. |
| `conditions[].category` | string | | | | Category key (e.g. "packaging_labeling"). |
| `conditions[].categoryLabelEn` | string | | | | Category label (EN). |
| `conditions[].categoryLabelTh` | string | | | | Category label (TH). |
| `conditions[].items` | array | | | | Conditions in this category, in order. |
| `conditions[].items[].textEn` | string | | | | Condition text (EN). |
| `conditions[].items[].textTh` | string | | | | Condition text (TH). |
| `conditions[].items[].countriesMode` | string | | "worldwide", "include", "exclude" | | Country scope of this condition. |
| `conditions[].items[].applicableCountries` | array | | | | ISO-2 codes when countriesMode is not "worldwide". |
| `goodsRestriction` | object | | | | The provider's goods restriction by HS code — which goods it refuses (blacklist) or the only goods it accepts (whitelist). Omitted when the provider restricts nothing. Read live: a change in Parcel Radar applies at once. |
| `goodsRestriction.mode` | string | ✓ | "blacklist", "whitelist" | | blacklist: goods whose HS code matches an entry are refused (goods with no HS code pass). whitelist: only goods whose HS code matches an entry are carried (goods with no HS code are refused). |
| `goodsRestriction.description` | string | | | | The reason to show the customer (EN), or null. |
| `goodsRestriction.descriptionTh` | string | | | | The reason to show the customer (TH), or null. |
| `goodsRestriction.hsCodes` | array | ✓ | | | Exact HS codes as entered, in order. Compared as digits only: "8517.13.00" equals "85171300". |
| `goodsRestriction.hsPatterns` | array | ✓ | | | Regular expressions, in order, searched in the HS code's digits (e.g. "^8507" = every code starting 8507). |
**Response example**
```json
{
"id": "019e2246-1ec2-75be-b8cd-969d9d61dd31",
"name": "EMS World Package",
"type": "Air",
"incoterms": [
"DAP"
],
"allIn": false,
"serviceNetwork": "consolidate",
"transitMinDays": 5,
"transitMaxDays": 7,
"features": [
{
"name": "Tracking",
"category": "service",
"icon": "truck"
}
],
"weightConfig": {
"divisorKg": 5000,
"divisorLb": 139,
"roundingStepKg": 0.5,
"roundingStepLb": 1,
"mode": "per_piece"
},
"coverage": {
"worldwideOrigin": false,
"worldwideDestination": true,
"origins": [
"TH"
],
"destinations": [
"US"
],
"transitOverrides": []
},
"goodsRestriction": {
"mode": "blacklist",
"description": "No phones or lithium batteries.",
"descriptionTh": "ไม่รับโทรศัพท์และแบตเตอรี่ลิเธียม",
"hsCodes": [
"8517.13.00"
],
"hsPatterns": [
"^8507"
]
}
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | The provider's conditions. |
| 400 | Bad Request | `id` is missing or not a valid UUID. |
| 404 | Not Found | No active provider with that id. |
| 503 | Service Unavailable | The pricing snapshot is still warming up; retry shortly. |
**Error example**
```json
{
"ok": false,
"status": 404,
"error": "no provider found with id 00000000-0000-0000-0000-000000000000"
}
```
### Get provider ratecard
`GET https://api-sandbox.parcelradar.io/api/partner/v1/instant-quote/ratecard`
The rate card for one provider — display flags, banners, and (for manual-rate providers) a static price curve. Pass a provider id from a /quote result.
**Query parameters**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `id` | uuid | ✓ | UUID | | Provider id (the `id` from a /quote result). |
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `id` | uuid | ✓ | UUID | | Provider id. |
| `name` | string | | | | Provider display name. |
| `type` | string | | | | Transport type. |
| `showStartFrom` | boolean | | true, false | | Show a "starts from" price label. |
| `hideDeMinimis` | boolean | | true, false | | Hide the de-minimis line. |
| `hidePerUnitPrice` | boolean | | true, false | | Hide the per-unit price. |
| `bannerLayout` | string | | | | Banner layout. |
| `banners` | array | | | | Banner image URLs. |
| `priceRange` | object | | | | Static price curve (manual providers; omitted for live-API). |
| `priceRange.unit` | string | | "kg", "lb", "cbm", "girth" | | Weight/volume unit. |
| `priceRange.min` | number | | | | Lowest price point. |
| `priceRange.max` | number | | | | Highest price point. |
| `priceRange.points` | array | | | | Price curve points. |
**Response example**
```json
{
"id": "019e2246-1ec2-75be-b8cd-969d9d61dd31",
"name": "EMS World Package",
"type": "Air",
"showStartFrom": false,
"hideDeMinimis": false,
"hidePerUnitPrice": false,
"banners": [],
"priceRange": {
"unit": "kg",
"min": 350,
"max": 8200,
"points": []
}
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | The provider's rate card. `priceRange` is omitted for live-API providers. |
| 400 | Bad Request | `id` is missing or not a valid UUID. |
| 404 | Not Found | No active provider with that id. |
| 503 | Service Unavailable | The pricing snapshot is still warming up; retry shortly. |
**Error example**
```json
{
"ok": false,
"status": 404,
"error": "no provider found with id 00000000-0000-0000-0000-000000000000"
}
```
## HS codes & duty
The lookups behind the Member Portal's Goods & declared value form: find the HS code of the goods, then read the duty that code carries at the importing country. Put the code on the order as `packages.goods[].hsCode`.
### Search HS codes
`GET https://api-sandbox.parcelradar.io/api/partner/v1/hs-codes/search`
The HS codes that fit a description or a code, best match first. Needs your X-API-Key.
**Query parameters**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `q` | string | ✓ | 2 to 100 characters | | What the goods are, in Thai or English (part of a word works), or an HS code or the start of one ("0712", "0712.20"). |
| `limit` | number | | 1 to 20 | 10 | The most matches to return. |
| `source` | string | | "thai_customs", "karton", "manual" | | Search one source only. Omitted = every source. |
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `items` | array | ✓ | | | The matches. Empty when nothing fits. |
| `items[].hsCode` | string | ✓ | | | The HS code, as the source prints it. |
| `items[].descriptionTh` | string | | | | Description in Thai. |
| `items[].descriptionEn` | string | | | | Description in English. On Thai Customs rows this is a courtesy translation: the Thai text governs. |
| `items[].heading` | string | | | | The tariff heading in Thai (Thai Customs rows only). |
| `items[].headingPath` | string | | | | The headings above this line in Thai (Thai Customs rows only). |
| `items[].headingEn` | string | | | | The tariff heading in English (Thai Customs rows only). |
| `items[].headingPathEn` | string | | | | The headings above this line in English (Thai Customs rows only). |
| `items[].dutyRate` | string | | | | The Thai tariff's rate as printed (Thai Customs rows only). This is the duty coming INTO Thailand: for the duty at an export's destination use POST /tariff/rates. |
| `items[].source` | string | ✓ | "thai_customs", "karton", "manual" | | Where the wording comes from. The same code can come back once per source. |
**Response example**
```json
{
"items": [
{
"hsCode": "6109.10",
"descriptionTh": "เสื้อยืด",
"descriptionEn": "T-shirts",
"heading": null,
"headingPath": null,
"headingEn": null,
"headingPathEn": null,
"dutyRate": null,
"source": "karton"
}
]
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | The matches, possibly none. |
| 400 | Bad Request | `q`, `limit` or `source` is missing or out of range; `fields` lists each problem. |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 503 | Service Unavailable | The search or API-key verification is temporarily unavailable. Retry shortly. |
**Error example**
```json
{
"ok": false,
"status": 400,
"error": "request failed validation",
"fields": [
{
"field": "q",
"message": "must be 2 to 100 characters"
}
]
}
```
### Get duty rates
`POST https://api-sandbox.parcelradar.io/api/partner/v1/tariff/rates`
The import duty of each HS code at one country, the same rate a quote is charged with. Needs your X-API-Key. A code without a rate is not an error: its line comes back with a null ratePct, and the carrier's own duty % applies.
**Request**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `country` | string | ✓ | ISO-2 code | | The importing country. |
| `hsCodes` | array | ✓ | 1 to 50 codes | | The HS codes, dots allowed. |
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `country` | string | ✓ | ISO-2 code | | The importing country. |
| `enabled` | boolean | ✓ | | | false while the tariff lookup is switched off: every line is then a fallback. |
| `rates` | array | ✓ | | | One line per distinct HS code. |
| `rates[].hsCode` | string | ✓ | | | The code's digits. |
| `rates[].ratePct` | number | | | | The duty in percent (7.5 = 7.5%). null = no usable rate: the carrier's own duty % applies, and status says why. |
| `rates[].transportBasis` | boolean | ✓ | | | true when the rate is levied on goods + freight + insurance, not on goods alone. |
| `rates[].source` | string | ✓ | "DHL", "WITS", "PROVIDER", "UNAVAILABLE" | | DHL or WITS with a rate, PROVIDER on a fallback, UNAVAILABLE when the lookup could not be reached. |
| `rates[].status` | string | ✓ | "completed", "stale", "provisional", "pending", "no_hs", "invalid_hs", "unavailable", "error", "disabled" | | completed = exact. provisional = the top of a WITS range. pending = the lookup has started: ask again shortly. |
| `rates[].flagged` | boolean | ✓ | | | true when a rate needs a person's review, e.g. a formula with a non-% part, of which only the % is charged. |
| `rates[].note` | string | | | | Why it is flagged, or the WITS range the rate came from. |
**Request example**
```json
{
"country": "US",
"hsCodes": [
"6109.10"
]
}
```
**Response example**
```json
{
"country": "US",
"enabled": true,
"rates": [
{
"hsCode": "610910",
"ratePct": 16.5,
"transportBasis": false,
"source": "WITS",
"status": "provisional",
"flagged": false,
"note": "WITS 2023 HS6 610910 range 16.5–16.5%, maximum charged"
}
]
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | One line per distinct HS code. |
| 400 | Bad Request | `country` or `hsCodes` is missing or invalid; `fields` lists each problem. |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 403 | Forbidden | The member who created this key may not view orders. |
| 503 | Service Unavailable | Duty rates or API-key verification are temporarily unavailable. Retry shortly. |
**Error example**
```json
{
"ok": false,
"status": 401,
"error": "X-API-Key required"
}
```
## Address Book
Your tenant's saved sender/recipient addresses — the same book members manage in the Member Portal, so changes show up there. Switching an address off keeps it on file and listed; deleting removes it.
### List address book
`GET https://api-sandbox.parcelradar.io/api/partner/v1/address-book`
A page of your tenant's saved addresses. Ordering is by stored value, so `country` sorts by ISO code rather than localized name. Switched-off addresses are included by default.
**Query parameters**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `page` | number | | >= 0 | 0 | Zero-based page index. |
| `size` | number | | 1–100 | 10 | Page size (clamped to 100). |
| `sort` | string | | "name", "alias", "country", "city", "phone", "updated" | updated | Column to order by (name and alias are separate). |
| `dir` | string | | "asc", "desc" | desc | Sort direction. |
| `active` | string | | "all", "active", "inactive" | all | Filter by the switched-on/off flag. The default returns both — an inactive address is disabled, not hidden. |
| `role` | string | | "all", "sender", "recipient", "eor", "ior" | all | Only entries with this role: eor = Exporter of Record, ior = Importer of Record (indirect representatives). |
| `country` | string | | ISO-2, e.g. "DE" | | Only entries in this country. With role=ior and the order's Ship To country it lists the Importers of Record an order may use. |
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `items` | array | ✓ | | | The saved addresses on this page (empty [] when none). |
| `items[].id` | uuid | ✓ | UUID | | Address id. |
| `items[].isSender` | boolean | ✓ | true, false | | Usable as a sender. |
| `items[].isRecipient` | boolean | ✓ | true, false | | Usable as a recipient. |
| `items[].isExporterOfRecord` | boolean | ✓ | true, false | | An Exporter of Record acting as indirect representative: files the export declaration in its own name for the order's Ship From. Pick it as an order's route.exporterOfRecord. |
| `items[].isImporterOfRecord` | boolean | ✓ | true, false | | An Importer of Record acting as indirect representative: clears import customs in its own name for the order's Ship To. Pick it as an order's route.importerOfRecord. |
| `items[].isActive` | boolean | ✓ | true, false | | false = switched off: still saved and listed, but meant to be skipped. |
| `items[].alias` | string | | | | Nickname/label. |
| `items[].name` | string | ✓ | | | Contact name; on an Exporter / Importer of Record entry, the company name. |
| `items[].contactName` | string | | | | Exporter / Importer of Record: the person to ask for. null on other entries. |
| `items[].customsRegNo` | string | | | | Exporter / Importer of Record: the customs registration it files under (EORI, Thai exporter / importer registration, …). null on other entries. |
| `items[].phonePrefix` | string | | | | Dial code as digits, e.g. "66" — render with a leading "+". |
| `items[].phone` | string | | | | National number; the dial code is in phonePrefix. |
| `items[].email` | string | | | | Contact email. |
| `items[].addressLine` | string | | | | Street / address line. |
| `items[].countryCode` | string | ✓ | ISO-2, e.g. "TH" | | Country code, upper-cased. |
| `items[].postalCode` | string | | | | Postal code. |
| `items[].province` | string | | | | State / Province. |
| `items[].district` | string | | | | County / District. |
| `items[].city` | string | | | | Municipality / City. |
| `items[].createdAt` | string | ✓ | | | ISO-8601 creation timestamp. |
| `items[].updatedAt` | string | ✓ | | | ISO-8601 last-updated timestamp. |
| `total` | number | ✓ | | | Total saved addresses for the tenant (across all pages). |
| `page` | number | ✓ | | | The zero-based page index returned. |
| `size` | number | ✓ | | | The page size returned. |
**Response example**
```json
{
"items": [
{
"id": "d65e6140-df1c-4581-8885-e79501964f6f",
"isSender": true,
"isRecipient": true,
"isActive": true,
"alias": "HQ",
"name": "Vernice West",
"phonePrefix": "66",
"phone": "812345678",
"email": "hq@acme.com",
"addressLine": "1 Sukhumvit",
"countryCode": "TH",
"postalCode": "10110",
"province": "Bangkok",
"district": "Watthana",
"city": "Bangkok",
"createdAt": "2026-05-01T09:00:00Z",
"updatedAt": "2026-06-12T14:30:00Z",
"isExporterOfRecord": false,
"isImporterOfRecord": false,
"contactName": null,
"customsRegNo": null
},
{
"id": "5b1f0c3a-7e2d-4c9b-a1f4-3d8e6b2c9a10",
"isSender": false,
"isRecipient": false,
"isActive": true,
"alias": null,
"name": "Hanse Zollservice GmbH",
"phonePrefix": "49",
"phone": "40123456",
"email": "zoll@hanse-zoll.de",
"addressLine": "Am Sandtorkai 12",
"countryCode": "DE",
"postalCode": "20457",
"province": "Hamburg",
"district": null,
"city": "Hamburg",
"createdAt": "2026-11-17T08:00:00Z",
"updatedAt": "2026-11-17T08:00:00Z",
"isExporterOfRecord": false,
"isImporterOfRecord": true,
"contactName": "Anna Schmidt",
"customsRegNo": "DE123456789012345"
}
],
"total": 2,
"page": 0,
"size": 10
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | A page of the tenant's saved addresses ({ items, total, page, size }). |
| 400 | Bad Request | A query param is invalid — a non-numeric page/size, a sort/dir/active/role outside the allowed values, or a country that is not an ISO code. |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 503 | Service Unavailable | API-key verification was temporarily unavailable. Retry shortly. |
**Error example**
```json
{
"ok": false,
"status": 401,
"error": "invalid or revoked API key"
}
```
### Create an address
`POST https://api-sandbox.parcelradar.io/api/partner/v1/address-book`
Save a new address. At least one role flag must be true; an address can be both, and then appears in both lists. Returns the address as stored. An Exporter / Importer of Record entry (isExporterOfRecord / isImporterOfRecord) holds the company in `name`, plus `contactName` and `customsRegNo`.
**Request**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `isSender` | boolean | | true, false | false | Usable as a sender. At least one role must be true. |
| `isRecipient` | boolean | | true, false | false | Usable as a recipient. At least one role must be true. |
| `isExporterOfRecord` | boolean | | true, false | false | An Exporter of Record (indirect representative). Counts as a role. |
| `isImporterOfRecord` | boolean | | true, false | false | An Importer of Record (indirect representative). Counts as a role. |
| `isActive` | boolean | | true, false | true | Omitted on create = active; omitted on update = keep the current state. |
| `name` | string | ✓ | 1–200 chars | | Contact name; on an Exporter / Importer of Record entry, the company name. |
| `contactName` | string | | ≤ 100 chars | | Exporter / Importer of Record: the person to ask for. Blank is stored as null. |
| `customsRegNo` | string | | ≤ 50 chars | | Exporter / Importer of Record: customs registration number, e.g. an EORI "DE123456789012345". Blank is stored as null. |
| `countryCode` | string | ✓ | ISO-2, e.g. "TH" | | Stored upper-cased. |
| `alias` | string | | ≤ 200 chars | | Nickname/label. Blank is stored as null. |
| `phonePrefix` | string | | 1–4 digits, e.g. "66" | | Dial code, no "+". Needs a phone to go with it; together at most 15 digits (E.164). |
| `phone` | string | | 4–14 digits | | National number, e.g. "812345678". The dial code goes in phonePrefix. |
| `email` | string | | ≤ 200 chars | | Contact email. |
| `addressLine` | string | | ≤ 500 chars | | Street / address line. |
| `postalCode` | string | | ≤ 12 chars, upper-case | | Letters and digits, single spaces or hyphens: "10110", "SW1A 1AA", "100-0001". |
| `province` | string | | ≤ 200 chars | | State / Province. |
| `district` | string | | ≤ 200 chars | | County / District. |
| `city` | string | | ≤ 200 chars | | Municipality / City. |
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `id` | uuid | ✓ | UUID | | Address id. |
| `isSender` | boolean | ✓ | true, false | | Usable as a sender. |
| `isRecipient` | boolean | ✓ | true, false | | Usable as a recipient. |
| `isExporterOfRecord` | boolean | ✓ | true, false | | An Exporter of Record acting as indirect representative: files the export declaration in its own name for the order's Ship From. Pick it as an order's route.exporterOfRecord. |
| `isImporterOfRecord` | boolean | ✓ | true, false | | An Importer of Record acting as indirect representative: clears import customs in its own name for the order's Ship To. Pick it as an order's route.importerOfRecord. |
| `isActive` | boolean | ✓ | true, false | | false = switched off: still saved and listed, but meant to be skipped. |
| `alias` | string | | | | Nickname/label. |
| `name` | string | ✓ | | | Contact name; on an Exporter / Importer of Record entry, the company name. |
| `contactName` | string | | | | Exporter / Importer of Record: the person to ask for. null on other entries. |
| `customsRegNo` | string | | | | Exporter / Importer of Record: the customs registration it files under (EORI, Thai exporter / importer registration, …). null on other entries. |
| `phonePrefix` | string | | | | Dial code as digits, e.g. "66" — render with a leading "+". |
| `phone` | string | | | | National number; the dial code is in phonePrefix. |
| `email` | string | | | | Contact email. |
| `addressLine` | string | | | | Street / address line. |
| `countryCode` | string | ✓ | ISO-2, e.g. "TH" | | Country code, upper-cased. |
| `postalCode` | string | | | | Postal code. |
| `province` | string | | | | State / Province. |
| `district` | string | | | | County / District. |
| `city` | string | | | | Municipality / City. |
| `createdAt` | string | ✓ | | | ISO-8601 creation timestamp. |
| `updatedAt` | string | ✓ | | | ISO-8601 last-updated timestamp. |
**Request example**
```json
{
"isSender": true,
"isRecipient": true,
"alias": "HQ",
"name": "Vernice West",
"phonePrefix": "66",
"phone": "812345678",
"email": "hq@acme.com",
"addressLine": "1 Sukhumvit",
"countryCode": "TH",
"postalCode": "10110",
"province": "Bangkok",
"district": "Watthana",
"city": "Bangkok"
}
```
**Response example**
```json
{
"id": "d65e6140-df1c-4581-8885-e79501964f6f",
"isSender": true,
"isRecipient": true,
"isActive": true,
"alias": "HQ",
"name": "Vernice West",
"phonePrefix": "66",
"phone": "812345678",
"email": "hq@acme.com",
"addressLine": "1 Sukhumvit",
"countryCode": "TH",
"postalCode": "10110",
"province": "Bangkok",
"district": "Watthana",
"city": "Bangkok",
"createdAt": "2026-07-16T09:00:00Z",
"updatedAt": "2026-07-16T09:00:00Z",
"isExporterOfRecord": false,
"isImporterOfRecord": false,
"contactName": null,
"customsRegNo": null
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | The address was saved; the body is the stored address. |
| 400 | Bad Request | The body failed validation — a missing name/countryCode, no role flag, or a field over its length limit. The `fields` array names each problem. |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 409 | Conflict | You already have an address identical in every field. |
| 503 | Service Unavailable | API-key verification was temporarily unavailable. Retry shortly. |
**Error example**
```json
{
"ok": false,
"status": 400,
"error": "request failed validation",
"fields": [
{
"field": "countryCode",
"message": "is required"
}
]
}
```
### Update an address
`PUT https://api-sandbox.parcelradar.io/api/partner/v1/address-book/{id}`
Full replacement (PUT): send the complete address — omitted optional fields clear to null. Omit `isActive` to keep the current on/off state (toggle it with `PATCH /{id}/active`). The Exporter / Importer of Record fields (isExporterOfRecord, isImporterOfRecord, contactName, customsRegNo) are kept when omitted.
**Request**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `isSender` | boolean | ✓ | true, false | false | Usable as a sender. At least one role must be true. Omitted → false (and if no other role is true, 400). |
| `isRecipient` | boolean | ✓ | true, false | false | Usable as a recipient. At least one role must be true. Omitted → false (and if no other role is true, 400). |
| `isExporterOfRecord` | boolean | | true, false | keeps current | An Exporter of Record (indirect representative). Counts as a role. Omitted → keeps the stored value, so a client that predates it cannot drop the role. |
| `isImporterOfRecord` | boolean | | true, false | keeps current | An Importer of Record (indirect representative). Counts as a role. Omitted → keeps the stored value, so a client that predates it cannot drop the role. |
| `isActive` | boolean | | true, false | keeps current | Omitted on create = active; omitted on update = keep the current state. Change the flag with PATCH /{id}/active. |
| `name` | string | ✓ | 1–200 chars | | Contact name; on an Exporter / Importer of Record entry, the company name. Omitted → 400; the address is not written. |
| `contactName` | string | | ≤ 100 chars | keeps current | Exporter / Importer of Record: the person to ask for. Blank is stored as null. Omitted → keeps the stored value; send "" to clear it. |
| `customsRegNo` | string | | ≤ 50 chars | keeps current | Exporter / Importer of Record: customs registration number, e.g. an EORI "DE123456789012345". Blank is stored as null. Omitted → keeps the stored value; send "" to clear it. |
| `countryCode` | string | ✓ | ISO-2, e.g. "TH" | | Stored upper-cased. Omitted → 400; the address is not written. |
| `alias` | string | ✓ | ≤ 200 chars | | Nickname/label. Blank is stored as null. Omitted → cleared to null (the stored value is overwritten). |
| `phonePrefix` | string | ✓ | 1–4 digits, e.g. "66" | | Dial code, no "+". Needs a phone to go with it; together at most 15 digits (E.164). Omitted → cleared to null. |
| `phone` | string | ✓ | 4–14 digits | | National number, e.g. "812345678". The dial code goes in phonePrefix. Omitted → cleared to null. |
| `email` | string | ✓ | ≤ 200 chars | | Contact email. Omitted → cleared to null. |
| `addressLine` | string | ✓ | ≤ 500 chars | | Street / address line. Omitted → cleared to null. |
| `postalCode` | string | ✓ | ≤ 12 chars, upper-case | | Letters and digits, single spaces or hyphens: "10110", "SW1A 1AA", "100-0001". Omitted → cleared to null. |
| `province` | string | ✓ | ≤ 200 chars | | State / Province. Omitted → cleared to null. |
| `district` | string | ✓ | ≤ 200 chars | | County / District. Omitted → cleared to null. |
| `city` | string | ✓ | ≤ 200 chars | | Municipality / City. Omitted → cleared to null. |
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `id` | uuid | ✓ | UUID | | Address id. |
| `isSender` | boolean | ✓ | true, false | | Usable as a sender. |
| `isRecipient` | boolean | ✓ | true, false | | Usable as a recipient. |
| `isExporterOfRecord` | boolean | ✓ | true, false | | An Exporter of Record acting as indirect representative: files the export declaration in its own name for the order's Ship From. Pick it as an order's route.exporterOfRecord. |
| `isImporterOfRecord` | boolean | ✓ | true, false | | An Importer of Record acting as indirect representative: clears import customs in its own name for the order's Ship To. Pick it as an order's route.importerOfRecord. |
| `isActive` | boolean | ✓ | true, false | | false = switched off: still saved and listed, but meant to be skipped. |
| `alias` | string | | | | Nickname/label. |
| `name` | string | ✓ | | | Contact name; on an Exporter / Importer of Record entry, the company name. |
| `contactName` | string | | | | Exporter / Importer of Record: the person to ask for. null on other entries. |
| `customsRegNo` | string | | | | Exporter / Importer of Record: the customs registration it files under (EORI, Thai exporter / importer registration, …). null on other entries. |
| `phonePrefix` | string | | | | Dial code as digits, e.g. "66" — render with a leading "+". |
| `phone` | string | | | | National number; the dial code is in phonePrefix. |
| `email` | string | | | | Contact email. |
| `addressLine` | string | | | | Street / address line. |
| `countryCode` | string | ✓ | ISO-2, e.g. "TH" | | Country code, upper-cased. |
| `postalCode` | string | | | | Postal code. |
| `province` | string | | | | State / Province. |
| `district` | string | | | | County / District. |
| `city` | string | | | | Municipality / City. |
| `createdAt` | string | ✓ | | | ISO-8601 creation timestamp. |
| `updatedAt` | string | ✓ | | | ISO-8601 last-updated timestamp. |
**Request example**
```json
{
"isSender": true,
"isRecipient": true,
"isActive": true,
"alias": "HQ",
"name": "Vernice West",
"phonePrefix": "66",
"phone": "812345678",
"email": "hq@acme.com",
"addressLine": "1 Sukhumvit",
"countryCode": "TH",
"postalCode": "10110",
"province": "Bangkok",
"district": "Watthana",
"city": "Bangkok"
}
```
**Response example**
```json
{
"id": "d65e6140-df1c-4581-8885-e79501964f6f",
"isSender": true,
"isRecipient": true,
"isActive": true,
"alias": "HQ",
"name": "Vernice West",
"phonePrefix": "66",
"phone": "812345678",
"email": "hq@acme.com",
"addressLine": "1 Sukhumvit",
"countryCode": "TH",
"postalCode": "10110",
"province": "Bangkok",
"district": "Watthana",
"city": "Bangkok",
"createdAt": "2026-07-16T09:00:00Z",
"updatedAt": "2026-07-16T12:05:00Z",
"isExporterOfRecord": false,
"isImporterOfRecord": false,
"contactName": null,
"customsRegNo": null
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | The address was updated; the body is the stored address. |
| 400 | Bad Request | The body failed validation. The `fields` array names each problem. |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 404 | Not Found | No address with that id belongs to your tenant. |
| 409 | Conflict | The edit would make this address identical to another one you saved. |
| 503 | Service Unavailable | API-key verification was temporarily unavailable. Retry shortly. |
**Error example**
```json
{
"ok": false,
"status": 404,
"error": "no address found with that id"
}
```
### Activate / deactivate an address
`PATCH https://api-sandbox.parcelradar.io/api/partner/v1/address-book/{id}/active`
Switch an address on or off. A soft disable: it stays in the book and still comes back from the list, so it can be switched back on. Idempotent. To remove it for good, use DELETE.
**Request**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `isActive` | boolean | ✓ | true, false | | true = usable, false = switched off (still saved and still listed). |
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `id` | uuid | ✓ | UUID | | Address id. |
| `isSender` | boolean | ✓ | true, false | | Usable as a sender. |
| `isRecipient` | boolean | ✓ | true, false | | Usable as a recipient. |
| `isExporterOfRecord` | boolean | ✓ | true, false | | An Exporter of Record acting as indirect representative: files the export declaration in its own name for the order's Ship From. Pick it as an order's route.exporterOfRecord. |
| `isImporterOfRecord` | boolean | ✓ | true, false | | An Importer of Record acting as indirect representative: clears import customs in its own name for the order's Ship To. Pick it as an order's route.importerOfRecord. |
| `isActive` | boolean | ✓ | true, false | | false = switched off: still saved and listed, but meant to be skipped. |
| `alias` | string | | | | Nickname/label. |
| `name` | string | ✓ | | | Contact name; on an Exporter / Importer of Record entry, the company name. |
| `contactName` | string | | | | Exporter / Importer of Record: the person to ask for. null on other entries. |
| `customsRegNo` | string | | | | Exporter / Importer of Record: the customs registration it files under (EORI, Thai exporter / importer registration, …). null on other entries. |
| `phonePrefix` | string | | | | Dial code as digits, e.g. "66" — render with a leading "+". |
| `phone` | string | | | | National number; the dial code is in phonePrefix. |
| `email` | string | | | | Contact email. |
| `addressLine` | string | | | | Street / address line. |
| `countryCode` | string | ✓ | ISO-2, e.g. "TH" | | Country code, upper-cased. |
| `postalCode` | string | | | | Postal code. |
| `province` | string | | | | State / Province. |
| `district` | string | | | | County / District. |
| `city` | string | | | | Municipality / City. |
| `createdAt` | string | ✓ | | | ISO-8601 creation timestamp. |
| `updatedAt` | string | ✓ | | | ISO-8601 last-updated timestamp. |
**Request example**
```json
{
"isActive": false
}
```
**Response example**
```json
{
"id": "d65e6140-df1c-4581-8885-e79501964f6f",
"isSender": true,
"isRecipient": true,
"isActive": false,
"alias": "HQ",
"name": "Vernice West",
"phonePrefix": "66",
"phone": "812345678",
"email": "hq@acme.com",
"addressLine": "1 Sukhumvit",
"countryCode": "TH",
"postalCode": "10110",
"province": "Bangkok",
"district": "Watthana",
"city": "Bangkok",
"createdAt": "2026-07-16T09:00:00Z",
"updatedAt": "2026-07-16T12:05:00Z",
"isExporterOfRecord": false,
"isImporterOfRecord": false,
"contactName": null,
"customsRegNo": null
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | The flag was set; the body is the stored address. |
| 400 | Bad Request | isActive is missing from the body. |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 404 | Not Found | No address with that id belongs to your tenant. |
| 503 | Service Unavailable | API-key verification was temporarily unavailable. Retry shortly. |
**Error example**
```json
{
"ok": false,
"status": 400,
"error": "request failed validation",
"fields": [
{
"field": "isActive",
"message": "is required"
}
]
}
```
### Delete an address
`DELETE https://api-sandbox.parcelradar.io/api/partner/v1/address-book/{id}`
Permanently remove an address. This cannot be undone and the id stops resolving. To keep it on file but unused, PATCH /{id}/active with `isActive: false` instead.
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `ok` | boolean | ✓ | true | | Always true on a 200 — the address was deleted. |
| `id` | uuid | ✓ | UUID | | The id that was deleted, echoed back. |
**Response example**
```json
{
"ok": true,
"id": "d65e6140-df1c-4581-8885-e79501964f6f"
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | The address was deleted; the body echoes { ok: true, id }. |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 404 | Not Found | No address with that id belongs to your tenant. |
| 503 | Service Unavailable | API-key verification was temporarily unavailable. Retry shortly. |
**Error example**
```json
{
"ok": false,
"status": 404,
"error": "no address found with that id"
}
```
## Orders
Your tenant's shipping orders, shared with the Member Portal. Follow "From order to Shipment Label" below for the order of calls, from a new order to the label on the box.
### From order to Shipment Label
The Member Portal's export order, tab by tab, as API calls: create the order, describe the shipment, choose the service, check out, then get the Shipment Label. Every call needs your X-API-Key; all paths are under /api/partner/v1. Calls marked optional can be skipped.
```text
Your app ──► Parcel Radar API (request)
Your app ◄── Parcel Radar API (response)
── 1. Create the order (Member Portal: Create order) ──
(1) ──► POST /orders
◄── { id, orderNo, status: CREATED } → keep the id
── 2. Describe the shipment (Member Portal: Route Details · Packages) ──
(2) ──► GET /hs-codes/search?q= [optional]
◄── { items[] } → an HS code per goods line
(3) ──► PUT /orders/{id}
◄── order → route + packages + goods
── 3. Choose the service (Member Portal: Service Details) ──
(4) ──► POST /instant-quote/quote
◄── { results[] } → providerId + price
(5) ──► GET /orders/{id}/service-options?providerId=
◄── { options[], extraServices[] } → pickup or drop-off
(6) ──► POST /orders/{id}/pickup/quote [optional]
◄── { quoteId, feeThb } → api_markup only
(7) ──► GET /dropoff-points?orderId= [optional]
◄── { items[] } → a drop-off option only
(8) ──► PUT /orders/{id}/dropoff-point [optional]
◄── { dropoffPoint }
(9) ──► POST /orders/{id}/service
◄── order → priced by Parcel Radar
── 4. Check out (Member Portal: Checkout) ──
(10) ──► GET /orders/{id}/checkout
◄── { amount, fingerprint, conditionsAccepted, sufficient }
(11) ──► POST /orders/{id}/checkout/conditions
◄── { acceptedAt } → once per provider
(12) ──► POST /orders/{id}/checkout
◄── { status: SUBMITTED, chargeId } → credit held
── 5. Get the Shipment Label (Member Portal: Shipment Label) ──
(13) ──► GET /orders/{id}/pickup/handoff
◄── { kind, claimCode } → pickup | dropoff
┌ alt ─────────────────────────────────────────
│ [kind = pickup]
│ (14) ──► POST /orders/{id}/pickup/compare [optional]
│ ◄── { offers[], winner }
│ (15) ──► POST /orders/{id}/pickup
│ ◄── { id: pickupId, status: PENDING } → send an idempotencyKey
│ (16) ──► POST /orders/{id}/pickup/{pickupId}/book
│ ◄── { status: BOOKED, trackNo } → pickupFrom required
│ (17) ──► GET /orders/{id}/pickup/{pickupId}/label
│ ◄── { sheets[] } → carton mark + courier label
│ END: Print the sheets and stick them on every carton; the courier collects.
├ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─
│ [kind = dropoff]
│ (14) ──► GET /orders/{id}/carton-mark
│ ◄── { sheets[] } → with the claim code
│ END: Print the carton mark and bring the parcel and the claim code to the drop-off point.
└──────────────────────────────────────────────
── 6. Follow it (Member Portal: Tracking) ──
(18) ──► GET /orders/{id}/pickup/{pickupId}/tracking [optional]
◄── { events[] } → first mile
(19) ──► GET /orders/{id}/tracking [optional]
◄── { state, trackingUrl } → share with your customer
```
**Good to know**
- Checkout holds the order's total on your workspace's wallet; the money is taken when an officer approves the shipment. A 409 with code error.wallet.insufficient carries the shortfall: top the prepaid wallet up by QR (POST /wallet/topups, then read its status until SUCCESS) or in the Member Portal, then check out again.
- You never send a price: POST /orders/{id}/service takes the providerId (Live Rates), the pickupGroupId and extra services (service-options) and, for an api_markup option, the quoteId from POST /orders/{id}/pickup/quote as pickupQuoteId — and Parcel Radar prices them. A route or package change after that makes checkout answer error.order.checkout.requote: call POST /orders/{id}/service again.
- A label is a set of HTML sheets with their page size in millimetres (100×100 or 100×150). Render each sheet at that size, e.g. print it to PDF with a headless browser, one page per sheet.
- Reuse the same idempotencyKey when you retry POST /orders/{id}/pickup: the same key always answers the same booking, so a retry never books a second courier.
### List orders
`GET https://api-sandbox.parcelradar.io/api/partner/v1/orders`
A page of the tenant's orders, newest first.
**Query parameters**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `status` | string | | "all", "CREATED", "PROCESSING", "IN_TRANSIT", "DELIVERED", "EXCEPTION", "ON_HOLD", "RETURNING", "RETURNED" | all | Lifecycle filter. |
| `q` | string | | | | Free-text match on order no + countries. |
| `page` | number | | >= 0 | 0 | Zero-based page index. |
| `size` | number | | 1–100 | 10 | Page size (clamped to 100). |
| `sort` | string | | "order", "status", "from", "to", "provider", "updated" | updated | Column to order by. |
| `dir` | string | | "asc", "desc" | desc | Sort direction. |
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `items` | array | ✓ | | | The orders on this page (empty [] when none). |
| `items[].id` | uuid | ✓ | | | Order id. |
| `items[].orderNo` | string | ✓ | e.g. "RDOR202607000042" | | Reference (RDOR + YYYYMM + 6-digit sequence), unique per tenant. |
| `items[].status` | string | ✓ | "CREATED", "PROCESSING", "IN_TRANSIT", "DELIVERED", "EXCEPTION", "ON_HOLD", "RETURNING", "RETURNED" | | Lifecycle state. |
| `items[].fromCountry` | string | ✓ | ISO-2, e.g. "TH" | | Origin, upper-cased. |
| `items[].toCountry` | string | ✓ | ISO-2, e.g. "US" | | Destination, upper-cased. |
| `items[].serviceProvider` | string | | | | Chosen carrier, else null. |
| `items[].route` | object | | | | Route milestone (ship-from / deliver-to). |
| `items[].route.from` | object | | | | Ship-from address. |
| `items[].route.from.name` | string | | | | Contact name. |
| `items[].route.from.alias` | string | | | | Nickname/label. |
| `items[].route.from.isSender` | boolean | | | | Sender role. |
| `items[].route.from.isRecipient` | boolean | | | | Recipient role. |
| `items[].route.from.phonePrefix` | string | | | | Dial code, digits only. |
| `items[].route.from.phoneNumber` | string | | | | National number. |
| `items[].route.from.email` | string | | | | Contact email. |
| `items[].route.from.addressLine` | string | | | | Street / address line. |
| `items[].route.from.countryCode` | string | | ISO-2 | | Country. |
| `items[].route.from.postalCode` | string | | | | Postal code. |
| `items[].route.from.province` | string | | | | State / province. |
| `items[].route.from.district` | string | | | | County / district. |
| `items[].route.from.city` | string | | | | City. |
| `items[].route.to` | object | | | | Deliver-to address. |
| `items[].route.to.name` | string | | | | Contact name. |
| `items[].route.to.alias` | string | | | | Nickname/label. |
| `items[].route.to.isSender` | boolean | | | | Sender role. |
| `items[].route.to.isRecipient` | boolean | | | | Recipient role. |
| `items[].route.to.phonePrefix` | string | | | | Dial code, digits only. |
| `items[].route.to.phoneNumber` | string | | | | National number. |
| `items[].route.to.email` | string | | | | Contact email. |
| `items[].route.to.addressLine` | string | | | | Street / address line. |
| `items[].route.to.countryCode` | string | | ISO-2 | | Country. |
| `items[].route.to.postalCode` | string | | | | Postal code. |
| `items[].route.to.province` | string | | | | State / province. |
| `items[].route.to.district` | string | | | | County / district. |
| `items[].route.to.city` | string | | | | City. |
| `items[].route.exporterOfRecord` | object | | | | Optional Exporter of Record acting as indirect representative: files the export declaration in its own name for Ship From. null or omitted = none. Locked with the route once the order is checked out. |
| `items[].route.exporterOfRecord.addressBookId` | uuid | | | | The Address Book entry it was copied from, if any. Informational only. |
| `items[].route.exporterOfRecord.name` | string | ✓ | | | Company name. Required when the object is present. |
| `items[].route.exporterOfRecord.contactName` | string | | | | The person to ask for. |
| `items[].route.exporterOfRecord.phonePrefix` | string | | | | Dial code, digits only. |
| `items[].route.exporterOfRecord.phone` | string | | | | National number. |
| `items[].route.exporterOfRecord.email` | string | | | | Contact email. |
| `items[].route.exporterOfRecord.addressLine` | string | | | | Street / address line. |
| `items[].route.exporterOfRecord.countryCode` | string | ✓ | ISO-2 | | Must be the country of its side: Ship From's for the exporter, Ship To's for the importer — else 409 error.order.route.recordCountry. |
| `items[].route.exporterOfRecord.postalCode` | string | | | | Postal code. |
| `items[].route.exporterOfRecord.province` | string | | | | State / province. |
| `items[].route.exporterOfRecord.district` | string | | | | County / district. |
| `items[].route.exporterOfRecord.city` | string | | | | City. |
| `items[].route.exporterOfRecord.subDistrict` | string | | | | Sub-district (ตำบล / แขวง). |
| `items[].route.exporterOfRecord.customsRegNo` | string | | | | Customs registration number (EORI, Thai exporter / importer registration, …). |
| `items[].route.importerOfRecord` | object | | | | Optional Importer of Record acting as indirect representative: clears import customs in its own name for Ship To. null or omitted = none. Locked with the route once the order is checked out. |
| `items[].route.importerOfRecord.addressBookId` | uuid | | | | The Address Book entry it was copied from, if any. Informational only. |
| `items[].route.importerOfRecord.name` | string | ✓ | | | Company name. Required when the object is present. |
| `items[].route.importerOfRecord.contactName` | string | | | | The person to ask for. |
| `items[].route.importerOfRecord.phonePrefix` | string | | | | Dial code, digits only. |
| `items[].route.importerOfRecord.phone` | string | | | | National number. |
| `items[].route.importerOfRecord.email` | string | | | | Contact email. |
| `items[].route.importerOfRecord.addressLine` | string | | | | Street / address line. |
| `items[].route.importerOfRecord.countryCode` | string | ✓ | ISO-2 | | Must be the country of its side: Ship From's for the exporter, Ship To's for the importer — else 409 error.order.route.recordCountry. |
| `items[].route.importerOfRecord.postalCode` | string | | | | Postal code. |
| `items[].route.importerOfRecord.province` | string | | | | State / province. |
| `items[].route.importerOfRecord.district` | string | | | | County / district. |
| `items[].route.importerOfRecord.city` | string | | | | City. |
| `items[].route.importerOfRecord.subDistrict` | string | | | | Sub-district (ตำบล / แขวง). |
| `items[].route.importerOfRecord.customsRegNo` | string | | | | Customs registration number (EORI, Thai exporter / importer registration, …). |
| `items[].packages` | object | | | | Packages milestone. |
| `items[].packages.items` | array | | | | The parcels. |
| `items[].packages.items[].id` | string | | | | Line id. |
| `items[].packages.items[].type` | string | | "box", "pallet", "envelope", "tube", "poly_mail", "container", "bulk_cargo" | | Packaging type. |
| `items[].packages.items[].description` | string | | | | Goods description. |
| `items[].packages.items[].quantity` | string | | | | Piece count (numeric string). |
| `items[].packages.items[].weight` | string | | | | Weight per piece (numeric string). |
| `items[].packages.items[].weightUnit` | string | | "kg", "lb" | | Weight unit. |
| `items[].packages.items[].length` | string | | | | Length (numeric string). |
| `items[].packages.items[].width` | string | | | | Width (numeric string). |
| `items[].packages.items[].height` | string | | | | Height (numeric string). |
| `items[].packages.items[].dimUnit` | string | | "cm", "in" | | Dimension unit. |
| `items[].packages.items[].value` | string | | | | Declared value (numeric string). |
| `items[].packages.items[].valueCurrency` | string | | "THB", "USD", "EUR", "GBP" | | Declared-value currency. |
| `items[].packages.goods` | array | | | | What is inside the parcels, the Member Portal's Goods & declared value lines. Use these rather than each item's description and value: when present, they replace them as the declared value. |
| `items[].packages.goods[].id` | string | | | | Line id. |
| `items[].packages.goods[].description` | string | | | | What the goods are. |
| `items[].packages.goods[].hsCode` | string | | | | HS code of the goods. Find one with GET /hs-codes/search. |
| `items[].packages.goods[].value` | string | | | | Declared value of this line (numeric string). |
| `items[].packages.goods[].currency` | string | | "THB", "USD", "EUR", "GBP" | | Declared-value currency. |
| `items[].requireDocument` | boolean | | true, false | | Package Documents STATE flag — true = documents required, false = "none required" acknowledged, null = not set. NOT the files (those are `attachments`). |
| `items[].service` | object | | | | Service milestone (chosen rate + config). |
| `items[].service.providerId` | string | | | | Chosen carrier id. |
| `items[].service.providerCode` | string | | | | Carrier code. |
| `items[].service.providerName` | string | | | | Carrier display name. |
| `items[].service.price` | object | | | | The quote Parcel Radar computed (POST /orders/{id}/service). Send it back unchanged. |
| `items[].service.price.thb` | number | | | | Total price, THB. |
| `items[].service.price.zoneName` | string | | | | Rated zone. |
| `items[].service.price.customsThb` | number | | | | Customs component, THB. |
| `items[].service.price.pickupThb` | number | | | | Pickup component, THB (optional). |
| `items[].service.shipDate` | string | | YYYY-MM-DD | | Ship date. |
| `items[].service.pickupGroupId` | string | | | | Pickup-option group (null = provider default). |
| `items[].service.pickupGroupName` | string | | | | Pickup group name. |
| `items[].service.pickupAddress` | string | | | | Pickup address. |
| `items[].service.pickupInstructions` | string | | | | Pickup instructions. |
| `items[].service.options` | array | | | | Selected service-option names (string[]). |
| `items[].service.references` | array | | | | Shipment references (string[]). |
| `items[].service.note` | string | | | | Internal note. |
| `items[].notifications` | object | | | | Notifications milestone. |
| `items[].notifications.sender` | object | | | | Sender notification prefs. |
| `items[].notifications.sender.email` | string | | | | Notified email. |
| `items[].notifications.sender.language` | string | | "en", "th" | | Email language. |
| `items[].notifications.sender.options` | array | | "created", "in_transit", "delivered", "exception" | | Events to notify on (string[]). |
| `items[].notifications.recipients` | array | | | | Recipient notification prefs. |
| `items[].notifications.recipients[].email` | string | | | | Notified email. |
| `items[].notifications.recipients[].language` | string | | "en", "th" | | Email language. |
| `items[].notifications.recipients[].options` | array | | "created", "in_transit", "delivered", "exception" | | Events to notify on (string[]). |
| `items[].createdAt` | string | ✓ | | | ISO-8601 timestamp. |
| `items[].updatedAt` | string | ✓ | | | ISO-8601 timestamp. |
| `items[].attachments` | array | | | | Uploaded document FILES (metadata) — embedded on a single-order GET/PUT, omitted when the order has none. Distinct from `requireDocument` (that is the state flag; these are the files). Manage them via the documents sub-resource below. |
| `items[].attachments[].id` | uuid | ✓ | | | Document id. |
| `items[].attachments[].name` | string | ✓ | | | Display name. |
| `items[].attachments[].description` | string | | | | Optional note. |
| `items[].attachments[].docType` | string | ✓ | "INVOICE", "RECEIPT", "TAX", "VAT", "PACKING_LIST", "CUSTOMS", "OTHER" | | Document type. |
| `items[].attachments[].contentType` | string | | | | MIME type as uploaded. |
| `items[].attachments[].sizeBytes` | number | ✓ | | | Decoded file size in bytes. |
| `items[].attachments[].createdAt` | string | ✓ | | | ISO-8601 timestamp. |
| `total` | number | ✓ | | | Total orders for the tenant (across all pages). |
| `page` | number | ✓ | | | The zero-based page index returned. |
| `size` | number | ✓ | | | The page size returned. |
**Response example**
```json
{
"items": [
{
"id": "3f9a1c62-8d47-4a1e-9b0c-2e5f6a7b8c90",
"orderNo": "RDOR202607000042",
"status": "CREATED",
"fromCountry": "TH",
"toCountry": "US",
"serviceProvider": null,
"route": null,
"packages": null,
"requireDocument": null,
"service": null,
"notifications": null,
"createdAt": "2026-07-16T09:00:00Z",
"updatedAt": "2026-07-16T09:00:00Z"
}
],
"total": 1,
"page": 0,
"size": 10
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | A page of the tenant's orders ({ items, total, page, size }). |
| 400 | Bad Request | A query param is invalid — a non-numeric page/size, or a status/sort/dir outside the allowed values. |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 503 | Service Unavailable | API-key verification was temporarily unavailable. Retry shortly. |
**Error example**
```json
{
"ok": false,
"status": 401,
"error": "invalid or revoked API key"
}
```
### Create an order
`POST https://api-sandbox.parcelradar.io/api/partner/v1/orders`
Create an order from the two required routing countries.
**Request**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `fromCountry` | string | ✓ | ISO-2, in the country list | | Origin. Upper-cased; a code not in the list is rejected (400). |
| `toCountry` | string | ✓ | ISO-2, in the country list | | Destination. Upper-cased; a code not in the list is rejected (400). |
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `id` | uuid | ✓ | | | Order id. |
| `orderNo` | string | ✓ | e.g. "RDOR202607000042" | | Reference (RDOR + YYYYMM + 6-digit sequence), unique per tenant. |
| `status` | string | ✓ | "CREATED", "PROCESSING", "IN_TRANSIT", "DELIVERED", "EXCEPTION", "ON_HOLD", "RETURNING", "RETURNED" | | Lifecycle state. |
| `fromCountry` | string | ✓ | ISO-2, e.g. "TH" | | Origin, upper-cased. |
| `toCountry` | string | ✓ | ISO-2, e.g. "US" | | Destination, upper-cased. |
| `serviceProvider` | string | | | | Chosen carrier, else null. |
| `route` | object | | | | Route milestone (ship-from / deliver-to). |
| `route.from` | object | | | | Ship-from address. |
| `route.from.name` | string | | | | Contact name. |
| `route.from.alias` | string | | | | Nickname/label. |
| `route.from.isSender` | boolean | | | | Sender role. |
| `route.from.isRecipient` | boolean | | | | Recipient role. |
| `route.from.phonePrefix` | string | | | | Dial code, digits only. |
| `route.from.phoneNumber` | string | | | | National number. |
| `route.from.email` | string | | | | Contact email. |
| `route.from.addressLine` | string | | | | Street / address line. |
| `route.from.countryCode` | string | | ISO-2 | | Country. |
| `route.from.postalCode` | string | | | | Postal code. |
| `route.from.province` | string | | | | State / province. |
| `route.from.district` | string | | | | County / district. |
| `route.from.city` | string | | | | City. |
| `route.to` | object | | | | Deliver-to address. |
| `route.to.name` | string | | | | Contact name. |
| `route.to.alias` | string | | | | Nickname/label. |
| `route.to.isSender` | boolean | | | | Sender role. |
| `route.to.isRecipient` | boolean | | | | Recipient role. |
| `route.to.phonePrefix` | string | | | | Dial code, digits only. |
| `route.to.phoneNumber` | string | | | | National number. |
| `route.to.email` | string | | | | Contact email. |
| `route.to.addressLine` | string | | | | Street / address line. |
| `route.to.countryCode` | string | | ISO-2 | | Country. |
| `route.to.postalCode` | string | | | | Postal code. |
| `route.to.province` | string | | | | State / province. |
| `route.to.district` | string | | | | County / district. |
| `route.to.city` | string | | | | City. |
| `route.exporterOfRecord` | object | | | | Optional Exporter of Record acting as indirect representative: files the export declaration in its own name for Ship From. null or omitted = none. Locked with the route once the order is checked out. |
| `route.exporterOfRecord.addressBookId` | uuid | | | | The Address Book entry it was copied from, if any. Informational only. |
| `route.exporterOfRecord.name` | string | ✓ | | | Company name. Required when the object is present. |
| `route.exporterOfRecord.contactName` | string | | | | The person to ask for. |
| `route.exporterOfRecord.phonePrefix` | string | | | | Dial code, digits only. |
| `route.exporterOfRecord.phone` | string | | | | National number. |
| `route.exporterOfRecord.email` | string | | | | Contact email. |
| `route.exporterOfRecord.addressLine` | string | | | | Street / address line. |
| `route.exporterOfRecord.countryCode` | string | ✓ | ISO-2 | | Must be the country of its side: Ship From's for the exporter, Ship To's for the importer — else 409 error.order.route.recordCountry. |
| `route.exporterOfRecord.postalCode` | string | | | | Postal code. |
| `route.exporterOfRecord.province` | string | | | | State / province. |
| `route.exporterOfRecord.district` | string | | | | County / district. |
| `route.exporterOfRecord.city` | string | | | | City. |
| `route.exporterOfRecord.subDistrict` | string | | | | Sub-district (ตำบล / แขวง). |
| `route.exporterOfRecord.customsRegNo` | string | | | | Customs registration number (EORI, Thai exporter / importer registration, …). |
| `route.importerOfRecord` | object | | | | Optional Importer of Record acting as indirect representative: clears import customs in its own name for Ship To. null or omitted = none. Locked with the route once the order is checked out. |
| `route.importerOfRecord.addressBookId` | uuid | | | | The Address Book entry it was copied from, if any. Informational only. |
| `route.importerOfRecord.name` | string | ✓ | | | Company name. Required when the object is present. |
| `route.importerOfRecord.contactName` | string | | | | The person to ask for. |
| `route.importerOfRecord.phonePrefix` | string | | | | Dial code, digits only. |
| `route.importerOfRecord.phone` | string | | | | National number. |
| `route.importerOfRecord.email` | string | | | | Contact email. |
| `route.importerOfRecord.addressLine` | string | | | | Street / address line. |
| `route.importerOfRecord.countryCode` | string | ✓ | ISO-2 | | Must be the country of its side: Ship From's for the exporter, Ship To's for the importer — else 409 error.order.route.recordCountry. |
| `route.importerOfRecord.postalCode` | string | | | | Postal code. |
| `route.importerOfRecord.province` | string | | | | State / province. |
| `route.importerOfRecord.district` | string | | | | County / district. |
| `route.importerOfRecord.city` | string | | | | City. |
| `route.importerOfRecord.subDistrict` | string | | | | Sub-district (ตำบล / แขวง). |
| `route.importerOfRecord.customsRegNo` | string | | | | Customs registration number (EORI, Thai exporter / importer registration, …). |
| `packages` | object | | | | Packages milestone. |
| `packages.items` | array | | | | The parcels. |
| `packages.items[].id` | string | | | | Line id. |
| `packages.items[].type` | string | | "box", "pallet", "envelope", "tube", "poly_mail", "container", "bulk_cargo" | | Packaging type. |
| `packages.items[].description` | string | | | | Goods description. |
| `packages.items[].quantity` | string | | | | Piece count (numeric string). |
| `packages.items[].weight` | string | | | | Weight per piece (numeric string). |
| `packages.items[].weightUnit` | string | | "kg", "lb" | | Weight unit. |
| `packages.items[].length` | string | | | | Length (numeric string). |
| `packages.items[].width` | string | | | | Width (numeric string). |
| `packages.items[].height` | string | | | | Height (numeric string). |
| `packages.items[].dimUnit` | string | | "cm", "in" | | Dimension unit. |
| `packages.items[].value` | string | | | | Declared value (numeric string). |
| `packages.items[].valueCurrency` | string | | "THB", "USD", "EUR", "GBP" | | Declared-value currency. |
| `packages.goods` | array | | | | What is inside the parcels, the Member Portal's Goods & declared value lines. Use these rather than each item's description and value: when present, they replace them as the declared value. |
| `packages.goods[].id` | string | | | | Line id. |
| `packages.goods[].description` | string | | | | What the goods are. |
| `packages.goods[].hsCode` | string | | | | HS code of the goods. Find one with GET /hs-codes/search. |
| `packages.goods[].value` | string | | | | Declared value of this line (numeric string). |
| `packages.goods[].currency` | string | | "THB", "USD", "EUR", "GBP" | | Declared-value currency. |
| `requireDocument` | boolean | | true, false | | Package Documents STATE flag — true = documents required, false = "none required" acknowledged, null = not set. NOT the files (those are `attachments`). |
| `service` | object | | | | Service milestone (chosen rate + config). |
| `service.providerId` | string | | | | Chosen carrier id. |
| `service.providerCode` | string | | | | Carrier code. |
| `service.providerName` | string | | | | Carrier display name. |
| `service.price` | object | | | | The quote Parcel Radar computed (POST /orders/{id}/service). Send it back unchanged. |
| `service.price.thb` | number | | | | Total price, THB. |
| `service.price.zoneName` | string | | | | Rated zone. |
| `service.price.customsThb` | number | | | | Customs component, THB. |
| `service.price.pickupThb` | number | | | | Pickup component, THB (optional). |
| `service.shipDate` | string | | YYYY-MM-DD | | Ship date. |
| `service.pickupGroupId` | string | | | | Pickup-option group (null = provider default). |
| `service.pickupGroupName` | string | | | | Pickup group name. |
| `service.pickupAddress` | string | | | | Pickup address. |
| `service.pickupInstructions` | string | | | | Pickup instructions. |
| `service.options` | array | | | | Selected service-option names (string[]). |
| `service.references` | array | | | | Shipment references (string[]). |
| `service.note` | string | | | | Internal note. |
| `notifications` | object | | | | Notifications milestone. |
| `notifications.sender` | object | | | | Sender notification prefs. |
| `notifications.sender.email` | string | | | | Notified email. |
| `notifications.sender.language` | string | | "en", "th" | | Email language. |
| `notifications.sender.options` | array | | "created", "in_transit", "delivered", "exception" | | Events to notify on (string[]). |
| `notifications.recipients` | array | | | | Recipient notification prefs. |
| `notifications.recipients[].email` | string | | | | Notified email. |
| `notifications.recipients[].language` | string | | "en", "th" | | Email language. |
| `notifications.recipients[].options` | array | | "created", "in_transit", "delivered", "exception" | | Events to notify on (string[]). |
| `createdAt` | string | ✓ | | | ISO-8601 timestamp. |
| `updatedAt` | string | ✓ | | | ISO-8601 timestamp. |
| `attachments` | array | | | | Uploaded document FILES (metadata) — embedded on a single-order GET/PUT, omitted when the order has none. Distinct from `requireDocument` (that is the state flag; these are the files). Manage them via the documents sub-resource below. |
| `attachments[].id` | uuid | ✓ | | | Document id. |
| `attachments[].name` | string | ✓ | | | Display name. |
| `attachments[].description` | string | | | | Optional note. |
| `attachments[].docType` | string | ✓ | "INVOICE", "RECEIPT", "TAX", "VAT", "PACKING_LIST", "CUSTOMS", "OTHER" | | Document type. |
| `attachments[].contentType` | string | | | | MIME type as uploaded. |
| `attachments[].sizeBytes` | number | ✓ | | | Decoded file size in bytes. |
| `attachments[].createdAt` | string | ✓ | | | ISO-8601 timestamp. |
**Request example**
```json
{
"fromCountry": "TH",
"toCountry": "US"
}
```
**Response example**
```json
{
"id": "3f9a1c62-8d47-4a1e-9b0c-2e5f6a7b8c90",
"orderNo": "RDOR202607000042",
"status": "CREATED",
"fromCountry": "TH",
"toCountry": "US",
"serviceProvider": null,
"route": null,
"packages": null,
"requireDocument": null,
"service": null,
"notifications": null,
"createdAt": "2026-07-16T09:00:00Z",
"updatedAt": "2026-07-16T09:00:00Z"
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | The order was created; the body is the stored order. |
| 400 | Bad Request | A country is missing or not a known ISO code. |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 503 | Service Unavailable | API-key verification was temporarily unavailable. Retry shortly. |
**Error example**
```json
{
"ok": false,
"status": 400,
"error": "request failed validation",
"fields": [
{
"field": "toCountry",
"message": "is not a valid country"
}
]
}
```
### Get an order
`GET https://api-sandbox.parcelradar.io/api/partner/v1/orders/{id}`
Fetch one order by id.
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `id` | uuid | ✓ | | | Order id. |
| `orderNo` | string | ✓ | e.g. "RDOR202607000042" | | Reference (RDOR + YYYYMM + 6-digit sequence), unique per tenant. |
| `status` | string | ✓ | "CREATED", "PROCESSING", "IN_TRANSIT", "DELIVERED", "EXCEPTION", "ON_HOLD", "RETURNING", "RETURNED" | | Lifecycle state. |
| `fromCountry` | string | ✓ | ISO-2, e.g. "TH" | | Origin, upper-cased. |
| `toCountry` | string | ✓ | ISO-2, e.g. "US" | | Destination, upper-cased. |
| `serviceProvider` | string | | | | Chosen carrier, else null. |
| `route` | object | | | | Route milestone (ship-from / deliver-to). |
| `route.from` | object | | | | Ship-from address. |
| `route.from.name` | string | | | | Contact name. |
| `route.from.alias` | string | | | | Nickname/label. |
| `route.from.isSender` | boolean | | | | Sender role. |
| `route.from.isRecipient` | boolean | | | | Recipient role. |
| `route.from.phonePrefix` | string | | | | Dial code, digits only. |
| `route.from.phoneNumber` | string | | | | National number. |
| `route.from.email` | string | | | | Contact email. |
| `route.from.addressLine` | string | | | | Street / address line. |
| `route.from.countryCode` | string | | ISO-2 | | Country. |
| `route.from.postalCode` | string | | | | Postal code. |
| `route.from.province` | string | | | | State / province. |
| `route.from.district` | string | | | | County / district. |
| `route.from.city` | string | | | | City. |
| `route.to` | object | | | | Deliver-to address. |
| `route.to.name` | string | | | | Contact name. |
| `route.to.alias` | string | | | | Nickname/label. |
| `route.to.isSender` | boolean | | | | Sender role. |
| `route.to.isRecipient` | boolean | | | | Recipient role. |
| `route.to.phonePrefix` | string | | | | Dial code, digits only. |
| `route.to.phoneNumber` | string | | | | National number. |
| `route.to.email` | string | | | | Contact email. |
| `route.to.addressLine` | string | | | | Street / address line. |
| `route.to.countryCode` | string | | ISO-2 | | Country. |
| `route.to.postalCode` | string | | | | Postal code. |
| `route.to.province` | string | | | | State / province. |
| `route.to.district` | string | | | | County / district. |
| `route.to.city` | string | | | | City. |
| `route.exporterOfRecord` | object | | | | Optional Exporter of Record acting as indirect representative: files the export declaration in its own name for Ship From. null or omitted = none. Locked with the route once the order is checked out. |
| `route.exporterOfRecord.addressBookId` | uuid | | | | The Address Book entry it was copied from, if any. Informational only. |
| `route.exporterOfRecord.name` | string | ✓ | | | Company name. Required when the object is present. |
| `route.exporterOfRecord.contactName` | string | | | | The person to ask for. |
| `route.exporterOfRecord.phonePrefix` | string | | | | Dial code, digits only. |
| `route.exporterOfRecord.phone` | string | | | | National number. |
| `route.exporterOfRecord.email` | string | | | | Contact email. |
| `route.exporterOfRecord.addressLine` | string | | | | Street / address line. |
| `route.exporterOfRecord.countryCode` | string | ✓ | ISO-2 | | Must be the country of its side: Ship From's for the exporter, Ship To's for the importer — else 409 error.order.route.recordCountry. |
| `route.exporterOfRecord.postalCode` | string | | | | Postal code. |
| `route.exporterOfRecord.province` | string | | | | State / province. |
| `route.exporterOfRecord.district` | string | | | | County / district. |
| `route.exporterOfRecord.city` | string | | | | City. |
| `route.exporterOfRecord.subDistrict` | string | | | | Sub-district (ตำบล / แขวง). |
| `route.exporterOfRecord.customsRegNo` | string | | | | Customs registration number (EORI, Thai exporter / importer registration, …). |
| `route.importerOfRecord` | object | | | | Optional Importer of Record acting as indirect representative: clears import customs in its own name for Ship To. null or omitted = none. Locked with the route once the order is checked out. |
| `route.importerOfRecord.addressBookId` | uuid | | | | The Address Book entry it was copied from, if any. Informational only. |
| `route.importerOfRecord.name` | string | ✓ | | | Company name. Required when the object is present. |
| `route.importerOfRecord.contactName` | string | | | | The person to ask for. |
| `route.importerOfRecord.phonePrefix` | string | | | | Dial code, digits only. |
| `route.importerOfRecord.phone` | string | | | | National number. |
| `route.importerOfRecord.email` | string | | | | Contact email. |
| `route.importerOfRecord.addressLine` | string | | | | Street / address line. |
| `route.importerOfRecord.countryCode` | string | ✓ | ISO-2 | | Must be the country of its side: Ship From's for the exporter, Ship To's for the importer — else 409 error.order.route.recordCountry. |
| `route.importerOfRecord.postalCode` | string | | | | Postal code. |
| `route.importerOfRecord.province` | string | | | | State / province. |
| `route.importerOfRecord.district` | string | | | | County / district. |
| `route.importerOfRecord.city` | string | | | | City. |
| `route.importerOfRecord.subDistrict` | string | | | | Sub-district (ตำบล / แขวง). |
| `route.importerOfRecord.customsRegNo` | string | | | | Customs registration number (EORI, Thai exporter / importer registration, …). |
| `packages` | object | | | | Packages milestone. |
| `packages.items` | array | | | | The parcels. |
| `packages.items[].id` | string | | | | Line id. |
| `packages.items[].type` | string | | "box", "pallet", "envelope", "tube", "poly_mail", "container", "bulk_cargo" | | Packaging type. |
| `packages.items[].description` | string | | | | Goods description. |
| `packages.items[].quantity` | string | | | | Piece count (numeric string). |
| `packages.items[].weight` | string | | | | Weight per piece (numeric string). |
| `packages.items[].weightUnit` | string | | "kg", "lb" | | Weight unit. |
| `packages.items[].length` | string | | | | Length (numeric string). |
| `packages.items[].width` | string | | | | Width (numeric string). |
| `packages.items[].height` | string | | | | Height (numeric string). |
| `packages.items[].dimUnit` | string | | "cm", "in" | | Dimension unit. |
| `packages.items[].value` | string | | | | Declared value (numeric string). |
| `packages.items[].valueCurrency` | string | | "THB", "USD", "EUR", "GBP" | | Declared-value currency. |
| `packages.goods` | array | | | | What is inside the parcels, the Member Portal's Goods & declared value lines. Use these rather than each item's description and value: when present, they replace them as the declared value. |
| `packages.goods[].id` | string | | | | Line id. |
| `packages.goods[].description` | string | | | | What the goods are. |
| `packages.goods[].hsCode` | string | | | | HS code of the goods. Find one with GET /hs-codes/search. |
| `packages.goods[].value` | string | | | | Declared value of this line (numeric string). |
| `packages.goods[].currency` | string | | "THB", "USD", "EUR", "GBP" | | Declared-value currency. |
| `requireDocument` | boolean | | true, false | | Package Documents STATE flag — true = documents required, false = "none required" acknowledged, null = not set. NOT the files (those are `attachments`). |
| `service` | object | | | | Service milestone (chosen rate + config). |
| `service.providerId` | string | | | | Chosen carrier id. |
| `service.providerCode` | string | | | | Carrier code. |
| `service.providerName` | string | | | | Carrier display name. |
| `service.price` | object | | | | The quote Parcel Radar computed (POST /orders/{id}/service). Send it back unchanged. |
| `service.price.thb` | number | | | | Total price, THB. |
| `service.price.zoneName` | string | | | | Rated zone. |
| `service.price.customsThb` | number | | | | Customs component, THB. |
| `service.price.pickupThb` | number | | | | Pickup component, THB (optional). |
| `service.shipDate` | string | | YYYY-MM-DD | | Ship date. |
| `service.pickupGroupId` | string | | | | Pickup-option group (null = provider default). |
| `service.pickupGroupName` | string | | | | Pickup group name. |
| `service.pickupAddress` | string | | | | Pickup address. |
| `service.pickupInstructions` | string | | | | Pickup instructions. |
| `service.options` | array | | | | Selected service-option names (string[]). |
| `service.references` | array | | | | Shipment references (string[]). |
| `service.note` | string | | | | Internal note. |
| `notifications` | object | | | | Notifications milestone. |
| `notifications.sender` | object | | | | Sender notification prefs. |
| `notifications.sender.email` | string | | | | Notified email. |
| `notifications.sender.language` | string | | "en", "th" | | Email language. |
| `notifications.sender.options` | array | | "created", "in_transit", "delivered", "exception" | | Events to notify on (string[]). |
| `notifications.recipients` | array | | | | Recipient notification prefs. |
| `notifications.recipients[].email` | string | | | | Notified email. |
| `notifications.recipients[].language` | string | | "en", "th" | | Email language. |
| `notifications.recipients[].options` | array | | "created", "in_transit", "delivered", "exception" | | Events to notify on (string[]). |
| `createdAt` | string | ✓ | | | ISO-8601 timestamp. |
| `updatedAt` | string | ✓ | | | ISO-8601 timestamp. |
| `attachments` | array | | | | Uploaded document FILES (metadata) — embedded on a single-order GET/PUT, omitted when the order has none. Distinct from `requireDocument` (that is the state flag; these are the files). Manage them via the documents sub-resource below. |
| `attachments[].id` | uuid | ✓ | | | Document id. |
| `attachments[].name` | string | ✓ | | | Display name. |
| `attachments[].description` | string | | | | Optional note. |
| `attachments[].docType` | string | ✓ | "INVOICE", "RECEIPT", "TAX", "VAT", "PACKING_LIST", "CUSTOMS", "OTHER" | | Document type. |
| `attachments[].contentType` | string | | | | MIME type as uploaded. |
| `attachments[].sizeBytes` | number | ✓ | | | Decoded file size in bytes. |
| `attachments[].createdAt` | string | ✓ | | | ISO-8601 timestamp. |
**Response example**
```json
{
"id": "af1326f0-eaf8-4dbd-801e-43d1daf99a23",
"orderNo": "RDOR202607000039",
"status": "PROCESSING",
"fromCountry": "TH",
"toCountry": "US",
"serviceProvider": "DHL Express",
"route": {
"from": {
"name": "Green Parker",
"alias": "Office",
"isSender": true,
"isRecipient": false,
"phonePrefix": "66",
"phoneNumber": "973331702",
"email": "green@acme.com",
"addressLine": "514 Miriam Knolls",
"countryCode": "TH",
"postalCode": "10110",
"province": "Bangkok",
"district": "Watthana",
"city": "Bangkok"
},
"to": {
"name": "Martha Howell",
"alias": "HQ",
"isSender": false,
"isRecipient": true,
"phonePrefix": "1",
"phoneNumber": "5692748790",
"email": "martha@acme.com",
"addressLine": "274 Wellington Road",
"countryCode": "US",
"postalCode": "90001",
"province": "California",
"district": "Los Angeles County",
"city": "Los Angeles"
}
},
"packages": {
"items": [
{
"id": "pkg-1",
"type": "box",
"description": "Wooden soap",
"quantity": "1",
"weight": "1",
"weightUnit": "kg",
"length": "42.10",
"width": "54.80",
"height": "33.50",
"dimUnit": "cm",
"value": "457",
"valueCurrency": "THB"
}
]
},
"requireDocument": true,
"service": {
"providerId": "019e984a-f8b4-726f-8f02-0b51e7016f46",
"providerCode": "RADIMEXP",
"providerName": "DHL Express",
"price": {
"thb": 100,
"zoneName": "Default",
"customsThb": 0,
"pickupThb": 0
},
"shipDate": "2026-07-19",
"pickupGroupId": null,
"pickupGroupName": null,
"pickupAddress": "",
"pickupInstructions": "Ring the bell at the front desk.",
"options": [],
"references": [
"PO-412553",
"REF-A9BSA"
],
"note": "Handle with care."
},
"notifications": {
"sender": {
"email": "green@acme.com",
"language": "en",
"options": [
"created",
"in_transit",
"delivered",
"exception"
]
},
"recipients": [
{
"email": "martha@acme.com",
"language": "en",
"options": [
"created",
"delivered"
]
}
]
},
"createdAt": "2026-07-17T09:45:27Z",
"updatedAt": "2026-07-19T18:11:24Z",
"attachments": [
{
"id": "7a1b9c2d-0e3f-4a5b-8c6d-9e0f1a2b3c4d",
"name": "commercial-invoice.pdf",
"description": "Signed invoice",
"docType": "INVOICE",
"contentType": "application/pdf",
"sizeBytes": 20480,
"createdAt": "2026-07-18T04:12:00Z"
}
]
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | The order. |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 404 | Not Found | No order with that id belongs to your tenant. |
| 503 | Service Unavailable | API-key verification was temporarily unavailable. Retry shortly. |
**Error example**
```json
{
"ok": false,
"status": 404,
"error": "no order found with that id"
}
```
### Update an order
`PUT https://api-sandbox.parcelradar.io/api/partner/v1/orders/{id}`
Full replacement (PUT): send the complete order — omitted fields are cleared. Status is unchanged (use suspend). The service's quote (providerId, providerCode, providerName, price, fingerprint, pickupGroupId, pickupGroupName, hasPrinter) is Parcel Radar's: set it with POST /orders/{id}/service, then send it back unchanged (or leave the service out to clear it).
**Request**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `fromCountry` | string | ✓ | ISO-2, in the country list | | Origin. Must be in the country list; omitted or unknown → 400. |
| `toCountry` | string | ✓ | ISO-2, in the country list | | Destination. Must be in the country list; omitted or unknown → 400. |
| `serviceProvider` | string | ✓ | ≤ 200 chars | | Chosen carrier. Omitted → cleared to null. |
| `route` | object | ✓ | | | Route milestone object. Omitted → cleared. |
| `route.from` | object | | | | Ship-from address. |
| `route.from.name` | string | | | | Contact name. |
| `route.from.alias` | string | | | | Nickname/label. |
| `route.from.isSender` | boolean | | | | Sender role. |
| `route.from.isRecipient` | boolean | | | | Recipient role. |
| `route.from.phonePrefix` | string | | | | Dial code, digits only. |
| `route.from.phoneNumber` | string | | | | National number. |
| `route.from.email` | string | | | | Contact email. |
| `route.from.addressLine` | string | | | | Street / address line. |
| `route.from.countryCode` | string | | ISO-2 | | Country. |
| `route.from.postalCode` | string | | | | Postal code. |
| `route.from.province` | string | | | | State / province. |
| `route.from.district` | string | | | | County / district. |
| `route.from.city` | string | | | | City. |
| `route.to` | object | | | | Deliver-to address. |
| `route.to.name` | string | | | | Contact name. |
| `route.to.alias` | string | | | | Nickname/label. |
| `route.to.isSender` | boolean | | | | Sender role. |
| `route.to.isRecipient` | boolean | | | | Recipient role. |
| `route.to.phonePrefix` | string | | | | Dial code, digits only. |
| `route.to.phoneNumber` | string | | | | National number. |
| `route.to.email` | string | | | | Contact email. |
| `route.to.addressLine` | string | | | | Street / address line. |
| `route.to.countryCode` | string | | ISO-2 | | Country. |
| `route.to.postalCode` | string | | | | Postal code. |
| `route.to.province` | string | | | | State / province. |
| `route.to.district` | string | | | | County / district. |
| `route.to.city` | string | | | | City. |
| `route.exporterOfRecord` | object | | | | Optional Exporter of Record acting as indirect representative: files the export declaration in its own name for Ship From. null or omitted = none. Locked with the route once the order is checked out. |
| `route.exporterOfRecord.addressBookId` | uuid | | | | The Address Book entry it was copied from, if any. Informational only. |
| `route.exporterOfRecord.name` | string | ✓ | | | Company name. Required when the object is present. |
| `route.exporterOfRecord.contactName` | string | | | | The person to ask for. |
| `route.exporterOfRecord.phonePrefix` | string | | | | Dial code, digits only. |
| `route.exporterOfRecord.phone` | string | | | | National number. |
| `route.exporterOfRecord.email` | string | | | | Contact email. |
| `route.exporterOfRecord.addressLine` | string | | | | Street / address line. |
| `route.exporterOfRecord.countryCode` | string | ✓ | ISO-2 | | Must be the country of its side: Ship From's for the exporter, Ship To's for the importer — else 409 error.order.route.recordCountry. |
| `route.exporterOfRecord.postalCode` | string | | | | Postal code. |
| `route.exporterOfRecord.province` | string | | | | State / province. |
| `route.exporterOfRecord.district` | string | | | | County / district. |
| `route.exporterOfRecord.city` | string | | | | City. |
| `route.exporterOfRecord.subDistrict` | string | | | | Sub-district (ตำบล / แขวง). |
| `route.exporterOfRecord.customsRegNo` | string | | | | Customs registration number (EORI, Thai exporter / importer registration, …). |
| `route.importerOfRecord` | object | | | | Optional Importer of Record acting as indirect representative: clears import customs in its own name for Ship To. null or omitted = none. Locked with the route once the order is checked out. |
| `route.importerOfRecord.addressBookId` | uuid | | | | The Address Book entry it was copied from, if any. Informational only. |
| `route.importerOfRecord.name` | string | ✓ | | | Company name. Required when the object is present. |
| `route.importerOfRecord.contactName` | string | | | | The person to ask for. |
| `route.importerOfRecord.phonePrefix` | string | | | | Dial code, digits only. |
| `route.importerOfRecord.phone` | string | | | | National number. |
| `route.importerOfRecord.email` | string | | | | Contact email. |
| `route.importerOfRecord.addressLine` | string | | | | Street / address line. |
| `route.importerOfRecord.countryCode` | string | ✓ | ISO-2 | | Must be the country of its side: Ship From's for the exporter, Ship To's for the importer — else 409 error.order.route.recordCountry. |
| `route.importerOfRecord.postalCode` | string | | | | Postal code. |
| `route.importerOfRecord.province` | string | | | | State / province. |
| `route.importerOfRecord.district` | string | | | | County / district. |
| `route.importerOfRecord.city` | string | | | | City. |
| `route.importerOfRecord.subDistrict` | string | | | | Sub-district (ตำบล / แขวง). |
| `route.importerOfRecord.customsRegNo` | string | | | | Customs registration number (EORI, Thai exporter / importer registration, …). |
| `packages` | object | ✓ | | | Packages milestone object. Omitted → cleared. |
| `packages.items` | array | | | | The parcels. |
| `packages.items[].id` | string | | | | Line id. |
| `packages.items[].type` | string | | "box", "pallet", "envelope", "tube", "poly_mail", "container", "bulk_cargo" | | Packaging type. |
| `packages.items[].description` | string | | | | Goods description. |
| `packages.items[].quantity` | string | | | | Piece count (numeric string). |
| `packages.items[].weight` | string | | | | Weight per piece (numeric string). |
| `packages.items[].weightUnit` | string | | "kg", "lb" | | Weight unit. |
| `packages.items[].length` | string | | | | Length (numeric string). |
| `packages.items[].width` | string | | | | Width (numeric string). |
| `packages.items[].height` | string | | | | Height (numeric string). |
| `packages.items[].dimUnit` | string | | "cm", "in" | | Dimension unit. |
| `packages.items[].value` | string | | | | Declared value (numeric string). |
| `packages.items[].valueCurrency` | string | | "THB", "USD", "EUR", "GBP" | | Declared-value currency. |
| `packages.goods` | array | | | | What is inside the parcels, the Member Portal's Goods & declared value lines. Use these rather than each item's description and value: when present, they replace them as the declared value. |
| `packages.goods[].id` | string | | | | Line id. |
| `packages.goods[].description` | string | | | | What the goods are. |
| `packages.goods[].hsCode` | string | | | | HS code of the goods. Find one with GET /hs-codes/search. |
| `packages.goods[].value` | string | | | | Declared value of this line (numeric string). |
| `packages.goods[].currency` | string | | "THB", "USD", "EUR", "GBP" | | Declared-value currency. |
| `requireDocument` | boolean | | true, false | | Package Documents STATE flag (true = required, false = "none required", omitted = cleared). To add files use `attachments` below (or the documents sub-resource). |
| `service` | object | ✓ | | | Service milestone object. Omitted → cleared. |
| `service.providerId` | string | | | | Chosen carrier id. |
| `service.providerCode` | string | | | | Carrier code. |
| `service.providerName` | string | | | | Carrier display name. |
| `service.price` | object | | | | The quote Parcel Radar computed (POST /orders/{id}/service). Send it back unchanged. |
| `service.price.thb` | number | | | | Total price, THB. |
| `service.price.zoneName` | string | | | | Rated zone. |
| `service.price.customsThb` | number | | | | Customs component, THB. |
| `service.price.pickupThb` | number | | | | Pickup component, THB (optional). |
| `service.shipDate` | string | | YYYY-MM-DD | | Ship date. |
| `service.pickupGroupId` | string | | | | Pickup-option group (null = provider default). |
| `service.pickupGroupName` | string | | | | Pickup group name. |
| `service.pickupAddress` | string | | | | Pickup address. |
| `service.pickupInstructions` | string | | | | Pickup instructions. |
| `service.options` | array | | | | Selected service-option names (string[]). |
| `service.references` | array | | | | Shipment references (string[]). |
| `service.note` | string | | | | Internal note. |
| `notifications` | object | ✓ | | | Notifications milestone object. Omitted → cleared. |
| `notifications.sender` | object | | | | Sender notification prefs. |
| `notifications.sender.email` | string | | | | Notified email. |
| `notifications.sender.language` | string | | "en", "th" | | Email language. |
| `notifications.sender.options` | array | | "created", "in_transit", "delivered", "exception" | | Events to notify on (string[]). |
| `notifications.recipients` | array | | | | Recipient notification prefs. |
| `notifications.recipients[].email` | string | | | | Notified email. |
| `notifications.recipients[].language` | string | | "en", "th" | | Email language. |
| `notifications.recipients[].options` | array | | "created", "in_transit", "delivered", "exception" | | Events to notify on (string[]). |
| `attachments` | array | | | | OPTIONAL document files (base64) to ADD in this call — appended, NOT a replacement (existing documents stay; remove them via the sub-resource DELETE). Each entry is an upload body. The response embeds the resulting list. |
| `attachments[].name` | string | ✓ | ≤ 200 chars | | Display name. |
| `attachments[].description` | string | | ≤ 500 chars | | Optional note. |
| `attachments[].docType` | string | ✓ | "INVOICE", "RECEIPT", "TAX", "VAT", "PACKING_LIST", "CUSTOMS", "OTHER" | | One of the document types. |
| `attachments[].contentBase64` | string | ✓ | | | File bytes, base64 (a `data:…;base64,` prefix is accepted). Decoded ≤ 10 MB. |
| `attachments[].contentType` | string | | ≤ 200 chars | | MIME type (e.g. application/pdf). |
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `id` | uuid | ✓ | | | Order id. |
| `orderNo` | string | ✓ | e.g. "RDOR202607000042" | | Reference (RDOR + YYYYMM + 6-digit sequence), unique per tenant. |
| `status` | string | ✓ | "CREATED", "PROCESSING", "IN_TRANSIT", "DELIVERED", "EXCEPTION", "ON_HOLD", "RETURNING", "RETURNED" | | Lifecycle state. |
| `fromCountry` | string | ✓ | ISO-2, e.g. "TH" | | Origin, upper-cased. |
| `toCountry` | string | ✓ | ISO-2, e.g. "US" | | Destination, upper-cased. |
| `serviceProvider` | string | | | | Chosen carrier, else null. |
| `route` | object | | | | Route milestone (ship-from / deliver-to). |
| `route.from` | object | | | | Ship-from address. |
| `route.from.name` | string | | | | Contact name. |
| `route.from.alias` | string | | | | Nickname/label. |
| `route.from.isSender` | boolean | | | | Sender role. |
| `route.from.isRecipient` | boolean | | | | Recipient role. |
| `route.from.phonePrefix` | string | | | | Dial code, digits only. |
| `route.from.phoneNumber` | string | | | | National number. |
| `route.from.email` | string | | | | Contact email. |
| `route.from.addressLine` | string | | | | Street / address line. |
| `route.from.countryCode` | string | | ISO-2 | | Country. |
| `route.from.postalCode` | string | | | | Postal code. |
| `route.from.province` | string | | | | State / province. |
| `route.from.district` | string | | | | County / district. |
| `route.from.city` | string | | | | City. |
| `route.to` | object | | | | Deliver-to address. |
| `route.to.name` | string | | | | Contact name. |
| `route.to.alias` | string | | | | Nickname/label. |
| `route.to.isSender` | boolean | | | | Sender role. |
| `route.to.isRecipient` | boolean | | | | Recipient role. |
| `route.to.phonePrefix` | string | | | | Dial code, digits only. |
| `route.to.phoneNumber` | string | | | | National number. |
| `route.to.email` | string | | | | Contact email. |
| `route.to.addressLine` | string | | | | Street / address line. |
| `route.to.countryCode` | string | | ISO-2 | | Country. |
| `route.to.postalCode` | string | | | | Postal code. |
| `route.to.province` | string | | | | State / province. |
| `route.to.district` | string | | | | County / district. |
| `route.to.city` | string | | | | City. |
| `route.exporterOfRecord` | object | | | | Optional Exporter of Record acting as indirect representative: files the export declaration in its own name for Ship From. null or omitted = none. Locked with the route once the order is checked out. |
| `route.exporterOfRecord.addressBookId` | uuid | | | | The Address Book entry it was copied from, if any. Informational only. |
| `route.exporterOfRecord.name` | string | ✓ | | | Company name. Required when the object is present. |
| `route.exporterOfRecord.contactName` | string | | | | The person to ask for. |
| `route.exporterOfRecord.phonePrefix` | string | | | | Dial code, digits only. |
| `route.exporterOfRecord.phone` | string | | | | National number. |
| `route.exporterOfRecord.email` | string | | | | Contact email. |
| `route.exporterOfRecord.addressLine` | string | | | | Street / address line. |
| `route.exporterOfRecord.countryCode` | string | ✓ | ISO-2 | | Must be the country of its side: Ship From's for the exporter, Ship To's for the importer — else 409 error.order.route.recordCountry. |
| `route.exporterOfRecord.postalCode` | string | | | | Postal code. |
| `route.exporterOfRecord.province` | string | | | | State / province. |
| `route.exporterOfRecord.district` | string | | | | County / district. |
| `route.exporterOfRecord.city` | string | | | | City. |
| `route.exporterOfRecord.subDistrict` | string | | | | Sub-district (ตำบล / แขวง). |
| `route.exporterOfRecord.customsRegNo` | string | | | | Customs registration number (EORI, Thai exporter / importer registration, …). |
| `route.importerOfRecord` | object | | | | Optional Importer of Record acting as indirect representative: clears import customs in its own name for Ship To. null or omitted = none. Locked with the route once the order is checked out. |
| `route.importerOfRecord.addressBookId` | uuid | | | | The Address Book entry it was copied from, if any. Informational only. |
| `route.importerOfRecord.name` | string | ✓ | | | Company name. Required when the object is present. |
| `route.importerOfRecord.contactName` | string | | | | The person to ask for. |
| `route.importerOfRecord.phonePrefix` | string | | | | Dial code, digits only. |
| `route.importerOfRecord.phone` | string | | | | National number. |
| `route.importerOfRecord.email` | string | | | | Contact email. |
| `route.importerOfRecord.addressLine` | string | | | | Street / address line. |
| `route.importerOfRecord.countryCode` | string | ✓ | ISO-2 | | Must be the country of its side: Ship From's for the exporter, Ship To's for the importer — else 409 error.order.route.recordCountry. |
| `route.importerOfRecord.postalCode` | string | | | | Postal code. |
| `route.importerOfRecord.province` | string | | | | State / province. |
| `route.importerOfRecord.district` | string | | | | County / district. |
| `route.importerOfRecord.city` | string | | | | City. |
| `route.importerOfRecord.subDistrict` | string | | | | Sub-district (ตำบล / แขวง). |
| `route.importerOfRecord.customsRegNo` | string | | | | Customs registration number (EORI, Thai exporter / importer registration, …). |
| `packages` | object | | | | Packages milestone. |
| `packages.items` | array | | | | The parcels. |
| `packages.items[].id` | string | | | | Line id. |
| `packages.items[].type` | string | | "box", "pallet", "envelope", "tube", "poly_mail", "container", "bulk_cargo" | | Packaging type. |
| `packages.items[].description` | string | | | | Goods description. |
| `packages.items[].quantity` | string | | | | Piece count (numeric string). |
| `packages.items[].weight` | string | | | | Weight per piece (numeric string). |
| `packages.items[].weightUnit` | string | | "kg", "lb" | | Weight unit. |
| `packages.items[].length` | string | | | | Length (numeric string). |
| `packages.items[].width` | string | | | | Width (numeric string). |
| `packages.items[].height` | string | | | | Height (numeric string). |
| `packages.items[].dimUnit` | string | | "cm", "in" | | Dimension unit. |
| `packages.items[].value` | string | | | | Declared value (numeric string). |
| `packages.items[].valueCurrency` | string | | "THB", "USD", "EUR", "GBP" | | Declared-value currency. |
| `packages.goods` | array | | | | What is inside the parcels, the Member Portal's Goods & declared value lines. Use these rather than each item's description and value: when present, they replace them as the declared value. |
| `packages.goods[].id` | string | | | | Line id. |
| `packages.goods[].description` | string | | | | What the goods are. |
| `packages.goods[].hsCode` | string | | | | HS code of the goods. Find one with GET /hs-codes/search. |
| `packages.goods[].value` | string | | | | Declared value of this line (numeric string). |
| `packages.goods[].currency` | string | | "THB", "USD", "EUR", "GBP" | | Declared-value currency. |
| `requireDocument` | boolean | | true, false | | Package Documents STATE flag — true = documents required, false = "none required" acknowledged, null = not set. NOT the files (those are `attachments`). |
| `service` | object | | | | Service milestone (chosen rate + config). |
| `service.providerId` | string | | | | Chosen carrier id. |
| `service.providerCode` | string | | | | Carrier code. |
| `service.providerName` | string | | | | Carrier display name. |
| `service.price` | object | | | | The quote Parcel Radar computed (POST /orders/{id}/service). Send it back unchanged. |
| `service.price.thb` | number | | | | Total price, THB. |
| `service.price.zoneName` | string | | | | Rated zone. |
| `service.price.customsThb` | number | | | | Customs component, THB. |
| `service.price.pickupThb` | number | | | | Pickup component, THB (optional). |
| `service.shipDate` | string | | YYYY-MM-DD | | Ship date. |
| `service.pickupGroupId` | string | | | | Pickup-option group (null = provider default). |
| `service.pickupGroupName` | string | | | | Pickup group name. |
| `service.pickupAddress` | string | | | | Pickup address. |
| `service.pickupInstructions` | string | | | | Pickup instructions. |
| `service.options` | array | | | | Selected service-option names (string[]). |
| `service.references` | array | | | | Shipment references (string[]). |
| `service.note` | string | | | | Internal note. |
| `notifications` | object | | | | Notifications milestone. |
| `notifications.sender` | object | | | | Sender notification prefs. |
| `notifications.sender.email` | string | | | | Notified email. |
| `notifications.sender.language` | string | | "en", "th" | | Email language. |
| `notifications.sender.options` | array | | "created", "in_transit", "delivered", "exception" | | Events to notify on (string[]). |
| `notifications.recipients` | array | | | | Recipient notification prefs. |
| `notifications.recipients[].email` | string | | | | Notified email. |
| `notifications.recipients[].language` | string | | "en", "th" | | Email language. |
| `notifications.recipients[].options` | array | | "created", "in_transit", "delivered", "exception" | | Events to notify on (string[]). |
| `createdAt` | string | ✓ | | | ISO-8601 timestamp. |
| `updatedAt` | string | ✓ | | | ISO-8601 timestamp. |
| `attachments` | array | | | | Uploaded document FILES (metadata) — embedded on a single-order GET/PUT, omitted when the order has none. Distinct from `requireDocument` (that is the state flag; these are the files). Manage them via the documents sub-resource below. |
| `attachments[].id` | uuid | ✓ | | | Document id. |
| `attachments[].name` | string | ✓ | | | Display name. |
| `attachments[].description` | string | | | | Optional note. |
| `attachments[].docType` | string | ✓ | "INVOICE", "RECEIPT", "TAX", "VAT", "PACKING_LIST", "CUSTOMS", "OTHER" | | Document type. |
| `attachments[].contentType` | string | | | | MIME type as uploaded. |
| `attachments[].sizeBytes` | number | ✓ | | | Decoded file size in bytes. |
| `attachments[].createdAt` | string | ✓ | | | ISO-8601 timestamp. |
**Request example**
```json
{
"fromCountry": "TH",
"toCountry": "DE",
"serviceProvider": "DHL",
"route": {
"from": {
"name": "Green Parker",
"isSender": true,
"isRecipient": false,
"phonePrefix": "66",
"phoneNumber": "973331702",
"email": "green@acme.com",
"addressLine": "514 Miriam Knolls",
"countryCode": "TH",
"postalCode": "10110",
"province": "Bangkok",
"district": "Watthana",
"city": "Bangkok"
},
"to": {
"name": "Jonas Becker",
"isSender": false,
"isRecipient": true,
"phonePrefix": "49",
"phoneNumber": "3012345678",
"email": "jonas@example.de",
"addressLine": "Torstrasse 101",
"countryCode": "DE",
"postalCode": "10119",
"province": "Berlin",
"district": "Mitte",
"city": "Berlin"
},
"exporterOfRecord": {
"name": "Siam Export Co., Ltd.",
"contactName": "Somchai Jaidee",
"phonePrefix": "66",
"phone": "21234567",
"email": "export@siamexport.co.th",
"addressLine": "99 Rama IV Road",
"countryCode": "TH",
"postalCode": "10500",
"province": "Bangkok",
"district": "Bang Rak",
"city": "Bangkok",
"subDistrict": "Suriyawong",
"customsRegNo": "0105551234567"
},
"importerOfRecord": {
"addressBookId": "5b1f0c3a-7e2d-4c9b-a1f4-3d8e6b2c9a10",
"name": "Hanse Zollservice GmbH",
"contactName": "Anna Schmidt",
"phonePrefix": "49",
"phone": "40123456",
"email": "zoll@hanse-zoll.de",
"addressLine": "Am Sandtorkai 12",
"countryCode": "DE",
"postalCode": "20457",
"province": "Hamburg",
"city": "Hamburg",
"customsRegNo": "DE123456789012345"
}
},
"packages": {
"items": []
},
"requireDocument": true,
"service": null,
"notifications": null,
"attachments": [
{
"name": "commercial-invoice.pdf",
"docType": "INVOICE",
"contentType": "application/pdf",
"contentBase64": "JVBERi0xLjcKJ..."
}
]
}
```
**Response example**
```json
{
"id": "3f9a1c62-8d47-4a1e-9b0c-2e5f6a7b8c90",
"orderNo": "RDOR202607000042",
"status": "CREATED",
"fromCountry": "TH",
"toCountry": "DE",
"serviceProvider": "DHL",
"route": {
"from": {
"name": "Green Parker",
"isSender": true,
"isRecipient": false,
"phonePrefix": "66",
"phoneNumber": "973331702",
"email": "green@acme.com",
"addressLine": "514 Miriam Knolls",
"countryCode": "TH",
"postalCode": "10110",
"province": "Bangkok",
"district": "Watthana",
"city": "Bangkok"
},
"to": {
"name": "Jonas Becker",
"isSender": false,
"isRecipient": true,
"phonePrefix": "49",
"phoneNumber": "3012345678",
"email": "jonas@example.de",
"addressLine": "Torstrasse 101",
"countryCode": "DE",
"postalCode": "10119",
"province": "Berlin",
"district": "Mitte",
"city": "Berlin"
},
"exporterOfRecord": {
"name": "Siam Export Co., Ltd.",
"contactName": "Somchai Jaidee",
"phonePrefix": "66",
"phone": "21234567",
"email": "export@siamexport.co.th",
"addressLine": "99 Rama IV Road",
"countryCode": "TH",
"postalCode": "10500",
"province": "Bangkok",
"district": "Bang Rak",
"city": "Bangkok",
"subDistrict": "Suriyawong",
"customsRegNo": "0105551234567"
},
"importerOfRecord": {
"addressBookId": "5b1f0c3a-7e2d-4c9b-a1f4-3d8e6b2c9a10",
"name": "Hanse Zollservice GmbH",
"contactName": "Anna Schmidt",
"phonePrefix": "49",
"phone": "40123456",
"email": "zoll@hanse-zoll.de",
"addressLine": "Am Sandtorkai 12",
"countryCode": "DE",
"postalCode": "20457",
"province": "Hamburg",
"city": "Hamburg",
"customsRegNo": "DE123456789012345"
}
},
"packages": {
"items": []
},
"requireDocument": true,
"service": null,
"notifications": null,
"createdAt": "2026-07-16T09:00:00Z",
"updatedAt": "2026-07-16T12:05:00Z",
"attachments": [
{
"id": "7a1b9c2d-0e3f-4a5b-8c6d-9e0f1a2b3c4d",
"name": "commercial-invoice.pdf",
"description": null,
"docType": "INVOICE",
"contentType": "application/pdf",
"sizeBytes": 20480,
"createdAt": "2026-07-16T12:05:00Z"
}
]
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | The order was updated; the body is the stored order. |
| 400 | Bad Request | A country is missing or not a known ISO code, serviceProvider is over its length limit, or a route.exporterOfRecord / route.importerOfRecord has no company name. |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 404 | Not Found | No order with that id belongs to your tenant. |
| 409 | Conflict | The body writes a service quote of its own (error.order.service.serverPriced — use POST /orders/{id}/service); a customs representative is in the wrong country — the Exporter of Record must be in Ship From's country, the Importer of Record in Ship To's (error.order.route.recordCountry); or the order is checked out and the change touches what was priced (error.order.locked), or its parcels are received (error.order.received.locked). |
| 503 | Service Unavailable | API-key verification was temporarily unavailable. Retry shortly. |
**Error example**
```json
{
"ok": false,
"status": 404,
"error": "no order found with that id"
}
```
### Suspend an order
`POST https://api-sandbox.parcelradar.io/api/partner/v1/orders/{id}/suspend`
Put an order on hold (→ ON_HOLD). Only from CREATED or PROCESSING.
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `id` | uuid | ✓ | | | Order id. |
| `orderNo` | string | ✓ | e.g. "RDOR202607000042" | | Reference (RDOR + YYYYMM + 6-digit sequence), unique per tenant. |
| `status` | string | ✓ | "CREATED", "PROCESSING", "IN_TRANSIT", "DELIVERED", "EXCEPTION", "ON_HOLD", "RETURNING", "RETURNED" | | Lifecycle state. |
| `fromCountry` | string | ✓ | ISO-2, e.g. "TH" | | Origin, upper-cased. |
| `toCountry` | string | ✓ | ISO-2, e.g. "US" | | Destination, upper-cased. |
| `serviceProvider` | string | | | | Chosen carrier, else null. |
| `route` | object | | | | Route milestone (ship-from / deliver-to). |
| `route.from` | object | | | | Ship-from address. |
| `route.from.name` | string | | | | Contact name. |
| `route.from.alias` | string | | | | Nickname/label. |
| `route.from.isSender` | boolean | | | | Sender role. |
| `route.from.isRecipient` | boolean | | | | Recipient role. |
| `route.from.phonePrefix` | string | | | | Dial code, digits only. |
| `route.from.phoneNumber` | string | | | | National number. |
| `route.from.email` | string | | | | Contact email. |
| `route.from.addressLine` | string | | | | Street / address line. |
| `route.from.countryCode` | string | | ISO-2 | | Country. |
| `route.from.postalCode` | string | | | | Postal code. |
| `route.from.province` | string | | | | State / province. |
| `route.from.district` | string | | | | County / district. |
| `route.from.city` | string | | | | City. |
| `route.to` | object | | | | Deliver-to address. |
| `route.to.name` | string | | | | Contact name. |
| `route.to.alias` | string | | | | Nickname/label. |
| `route.to.isSender` | boolean | | | | Sender role. |
| `route.to.isRecipient` | boolean | | | | Recipient role. |
| `route.to.phonePrefix` | string | | | | Dial code, digits only. |
| `route.to.phoneNumber` | string | | | | National number. |
| `route.to.email` | string | | | | Contact email. |
| `route.to.addressLine` | string | | | | Street / address line. |
| `route.to.countryCode` | string | | ISO-2 | | Country. |
| `route.to.postalCode` | string | | | | Postal code. |
| `route.to.province` | string | | | | State / province. |
| `route.to.district` | string | | | | County / district. |
| `route.to.city` | string | | | | City. |
| `route.exporterOfRecord` | object | | | | Optional Exporter of Record acting as indirect representative: files the export declaration in its own name for Ship From. null or omitted = none. Locked with the route once the order is checked out. |
| `route.exporterOfRecord.addressBookId` | uuid | | | | The Address Book entry it was copied from, if any. Informational only. |
| `route.exporterOfRecord.name` | string | ✓ | | | Company name. Required when the object is present. |
| `route.exporterOfRecord.contactName` | string | | | | The person to ask for. |
| `route.exporterOfRecord.phonePrefix` | string | | | | Dial code, digits only. |
| `route.exporterOfRecord.phone` | string | | | | National number. |
| `route.exporterOfRecord.email` | string | | | | Contact email. |
| `route.exporterOfRecord.addressLine` | string | | | | Street / address line. |
| `route.exporterOfRecord.countryCode` | string | ✓ | ISO-2 | | Must be the country of its side: Ship From's for the exporter, Ship To's for the importer — else 409 error.order.route.recordCountry. |
| `route.exporterOfRecord.postalCode` | string | | | | Postal code. |
| `route.exporterOfRecord.province` | string | | | | State / province. |
| `route.exporterOfRecord.district` | string | | | | County / district. |
| `route.exporterOfRecord.city` | string | | | | City. |
| `route.exporterOfRecord.subDistrict` | string | | | | Sub-district (ตำบล / แขวง). |
| `route.exporterOfRecord.customsRegNo` | string | | | | Customs registration number (EORI, Thai exporter / importer registration, …). |
| `route.importerOfRecord` | object | | | | Optional Importer of Record acting as indirect representative: clears import customs in its own name for Ship To. null or omitted = none. Locked with the route once the order is checked out. |
| `route.importerOfRecord.addressBookId` | uuid | | | | The Address Book entry it was copied from, if any. Informational only. |
| `route.importerOfRecord.name` | string | ✓ | | | Company name. Required when the object is present. |
| `route.importerOfRecord.contactName` | string | | | | The person to ask for. |
| `route.importerOfRecord.phonePrefix` | string | | | | Dial code, digits only. |
| `route.importerOfRecord.phone` | string | | | | National number. |
| `route.importerOfRecord.email` | string | | | | Contact email. |
| `route.importerOfRecord.addressLine` | string | | | | Street / address line. |
| `route.importerOfRecord.countryCode` | string | ✓ | ISO-2 | | Must be the country of its side: Ship From's for the exporter, Ship To's for the importer — else 409 error.order.route.recordCountry. |
| `route.importerOfRecord.postalCode` | string | | | | Postal code. |
| `route.importerOfRecord.province` | string | | | | State / province. |
| `route.importerOfRecord.district` | string | | | | County / district. |
| `route.importerOfRecord.city` | string | | | | City. |
| `route.importerOfRecord.subDistrict` | string | | | | Sub-district (ตำบล / แขวง). |
| `route.importerOfRecord.customsRegNo` | string | | | | Customs registration number (EORI, Thai exporter / importer registration, …). |
| `packages` | object | | | | Packages milestone. |
| `packages.items` | array | | | | The parcels. |
| `packages.items[].id` | string | | | | Line id. |
| `packages.items[].type` | string | | "box", "pallet", "envelope", "tube", "poly_mail", "container", "bulk_cargo" | | Packaging type. |
| `packages.items[].description` | string | | | | Goods description. |
| `packages.items[].quantity` | string | | | | Piece count (numeric string). |
| `packages.items[].weight` | string | | | | Weight per piece (numeric string). |
| `packages.items[].weightUnit` | string | | "kg", "lb" | | Weight unit. |
| `packages.items[].length` | string | | | | Length (numeric string). |
| `packages.items[].width` | string | | | | Width (numeric string). |
| `packages.items[].height` | string | | | | Height (numeric string). |
| `packages.items[].dimUnit` | string | | "cm", "in" | | Dimension unit. |
| `packages.items[].value` | string | | | | Declared value (numeric string). |
| `packages.items[].valueCurrency` | string | | "THB", "USD", "EUR", "GBP" | | Declared-value currency. |
| `packages.goods` | array | | | | What is inside the parcels, the Member Portal's Goods & declared value lines. Use these rather than each item's description and value: when present, they replace them as the declared value. |
| `packages.goods[].id` | string | | | | Line id. |
| `packages.goods[].description` | string | | | | What the goods are. |
| `packages.goods[].hsCode` | string | | | | HS code of the goods. Find one with GET /hs-codes/search. |
| `packages.goods[].value` | string | | | | Declared value of this line (numeric string). |
| `packages.goods[].currency` | string | | "THB", "USD", "EUR", "GBP" | | Declared-value currency. |
| `requireDocument` | boolean | | true, false | | Package Documents STATE flag — true = documents required, false = "none required" acknowledged, null = not set. NOT the files (those are `attachments`). |
| `service` | object | | | | Service milestone (chosen rate + config). |
| `service.providerId` | string | | | | Chosen carrier id. |
| `service.providerCode` | string | | | | Carrier code. |
| `service.providerName` | string | | | | Carrier display name. |
| `service.price` | object | | | | The quote Parcel Radar computed (POST /orders/{id}/service). Send it back unchanged. |
| `service.price.thb` | number | | | | Total price, THB. |
| `service.price.zoneName` | string | | | | Rated zone. |
| `service.price.customsThb` | number | | | | Customs component, THB. |
| `service.price.pickupThb` | number | | | | Pickup component, THB (optional). |
| `service.shipDate` | string | | YYYY-MM-DD | | Ship date. |
| `service.pickupGroupId` | string | | | | Pickup-option group (null = provider default). |
| `service.pickupGroupName` | string | | | | Pickup group name. |
| `service.pickupAddress` | string | | | | Pickup address. |
| `service.pickupInstructions` | string | | | | Pickup instructions. |
| `service.options` | array | | | | Selected service-option names (string[]). |
| `service.references` | array | | | | Shipment references (string[]). |
| `service.note` | string | | | | Internal note. |
| `notifications` | object | | | | Notifications milestone. |
| `notifications.sender` | object | | | | Sender notification prefs. |
| `notifications.sender.email` | string | | | | Notified email. |
| `notifications.sender.language` | string | | "en", "th" | | Email language. |
| `notifications.sender.options` | array | | "created", "in_transit", "delivered", "exception" | | Events to notify on (string[]). |
| `notifications.recipients` | array | | | | Recipient notification prefs. |
| `notifications.recipients[].email` | string | | | | Notified email. |
| `notifications.recipients[].language` | string | | "en", "th" | | Email language. |
| `notifications.recipients[].options` | array | | "created", "in_transit", "delivered", "exception" | | Events to notify on (string[]). |
| `createdAt` | string | ✓ | | | ISO-8601 timestamp. |
| `updatedAt` | string | ✓ | | | ISO-8601 timestamp. |
| `attachments` | array | | | | Uploaded document FILES (metadata) — embedded on a single-order GET/PUT, omitted when the order has none. Distinct from `requireDocument` (that is the state flag; these are the files). Manage them via the documents sub-resource below. |
| `attachments[].id` | uuid | ✓ | | | Document id. |
| `attachments[].name` | string | ✓ | | | Display name. |
| `attachments[].description` | string | | | | Optional note. |
| `attachments[].docType` | string | ✓ | "INVOICE", "RECEIPT", "TAX", "VAT", "PACKING_LIST", "CUSTOMS", "OTHER" | | Document type. |
| `attachments[].contentType` | string | | | | MIME type as uploaded. |
| `attachments[].sizeBytes` | number | ✓ | | | Decoded file size in bytes. |
| `attachments[].createdAt` | string | ✓ | | | ISO-8601 timestamp. |
**Response example**
```json
{
"id": "3f9a1c62-8d47-4a1e-9b0c-2e5f6a7b8c90",
"orderNo": "RDOR202607000042",
"status": "ON_HOLD",
"fromCountry": "TH",
"toCountry": "US",
"serviceProvider": null,
"route": null,
"packages": null,
"requireDocument": null,
"service": null,
"notifications": null,
"createdAt": "2026-07-16T09:00:00Z",
"updatedAt": "2026-07-16T13:40:00Z"
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | The order is now ON_HOLD; the body is the stored order. |
| 400 | Bad Request | The order is past the early stage and can't be suspended. |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 404 | Not Found | No order with that id belongs to your tenant. |
| 503 | Service Unavailable | API-key verification was temporarily unavailable. Retry shortly. |
**Error example**
```json
{
"ok": false,
"status": 400,
"error": "order cannot be suspended from its current status"
}
```
## Service & drop-off
The Service Details tab: a provider's pickup and drop-off options and extra services for the order, an API-cost pickup fee, the drop-off point — then POST /orders/{id}/service saves the choice and Parcel Radar prices it. You never send a price.
### List a provider's pickup and drop-off options
`GET https://api-sandbox.parcelradar.io/api/partner/v1/orders/{id}/service-options`
The options the Member Portal lists under a rate: one per pickup-option group, priced for this order's saved packages, cheapest first, and the provider's extra services with their prices. Pass the chosen `groupId` to POST /orders/{id}/service — it decides whether the Shipment Label books a courier or prints a drop-off carton mark.
**Query parameters**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `providerId` | uuid | ✓ | | | A provider id from a Live Rates result. |
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `providerId` | uuid | ✓ | | | The provider asked about. |
| `options` | array | ✓ | | | Cheapest first; empty when the provider has none. |
| `options[].groupId` | uuid | | | | The pickup-option group. Pass it as `pickupGroupId` to POST /orders/{id}/service. null = the provider's default path. |
| `options[].groupName` | string | | | | The group's name, as the Member Portal shows it. |
| `options[].handoffKind` | string | | "pickup", "dropoff", null | | pickup = a courier collects the parcel; dropoff = it is brought to a drop-off point. Decides the Shipment Label branch. |
| `options[].labelRequired` | boolean | | | | Whether the courier needs the printed label. false: the courier brings its own; write the workspace's Member ID (RDT-…) on every carton. |
| `options[].costMode` | string | | "fixed", "api_markup", null | | api_markup: the pickup fee comes from the courier. Quote it with POST /orders/{id}/pickup/quote and pass its quoteId as `pickupQuoteId` to POST /orders/{id}/service. |
| `options[].zoneName` | string | | | | The rated zone (the group's cheapest). |
| `options[].thb` | number | | | | The option's total, THB, for this order's saved packages — for comparing options. For a live-rate provider it lacks the carrier's live price; POST /orders/{id}/service prices the saved service in full. |
| `options[].pickupThb` | number | | | | The option's pickup charge, THB. |
| `options[].customsThb` | number | | | | The option's customs charge, THB. |
| `extraServices` | array | ✓ | | | The provider's extra services; empty when it offers none. |
| `extraServices[].id` | string | ✓ | | | The extra service. Pass it (or its name) in `options` to POST /orders/{id}/service. |
| `extraServices[].name` | string | ✓ | | | Its name, in the Accept-Language language (en or th). |
| `extraServices[].description` | string | | | | What it is. |
| `extraServices[].thb` | number | ✓ | | | Its price, THB — added to the service's price when chosen. |
**Response example**
```json
{
"providerId": "019e984a-f8b4-726f-8f02-0b51e7016f46",
"options": [
{
"groupId": "5b0e8f8a-6a43-4f43-9a51-6d0f1f6d2c11",
"groupName": "Drop-off at a Parcel Radar point",
"handoffKind": "dropoff",
"labelRequired": null,
"costMode": "fixed",
"zoneName": "Zone 3",
"thb": 1180,
"pickupThb": 0,
"customsThb": 0
},
{
"groupId": "a7c4e3d2-1b0a-4f9e-8d7c-6b5a4f3e2d1c",
"groupName": "Courier pickup",
"handoffKind": "pickup",
"labelRequired": true,
"costMode": "fixed",
"zoneName": "Zone 3",
"thb": 1240,
"pickupThb": 60,
"customsThb": 0
}
],
"extraServices": [
{
"id": "c2d3e4f5-0a1b-4c2d-8e3f-4a5b6c7d8e9f",
"name": "Insurance",
"description": "Covers the declared value.",
"thb": 107
}
]
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | The options. |
| 400 | Bad Request | providerId is missing or not a provider id, or the packages come to more than 500 parcels. |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 403 | Forbidden | The member who created this key may not do this (the role lacks the permission), or the workspace may not. |
| 404 | Not Found | No order with that id belongs to your workspace, or the booking is not one of this order's. |
| 503 | Service Unavailable | The order service or API-key verification is temporarily unavailable. Retry shortly. |
**Error example**
```json
{
"ok": false,
"status": 400,
"error": "request failed validation",
"fields": [
{
"field": "providerId",
"message": "must be a provider id from a Live Rates result"
}
]
}
```
### Quote an API-cost pickup fee
`POST https://api-sandbox.parcelradar.io/api/partner/v1/orders/{id}/pickup/quote`
For an option whose costMode is api_markup: the courier's pickup price for this order's parcels plus our markup. Pass `quoteId` as `pickupQuoteId` to POST /orders/{id}/service to keep this fee — it holds while nothing on the order changes and the quote is valid; otherwise the courier is asked again (send the same `from` as `pickupFrom`). `available: false` (with `reason`) when no courier in the group can quote.
**Request**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `providerId` | uuid | ✓ | | | The service's provider. |
| `groupId` | uuid | ✓ | | | The option's groupId. |
| `from` | object | | | | A "Pick up from" other than the order's Ship-From. |
| `from.name` | string | ✓ | | | Contact name. |
| `from.phone` | string | ✓ | | | Phone the courier calls, e.g. "0812345678". |
| `from.address` | string | ✓ | | | House number, building, street. |
| `from.subDistrict` | string | ✓ | | | Tambon / khwaeng (ตำบล / แขวง), in Thai. |
| `from.district` | string | ✓ | | | Amphoe / khet (อำเภอ / เขต), in Thai. |
| `from.province` | string | ✓ | | | Province (จังหวัด), in Thai. |
| `from.zipcode` | string | ✓ | 5 digits | | Postcode. |
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `available` | boolean | ✓ | | | Whether a courier quoted. |
| `quoteId` | string | | | | The stored quote — pass it as `pickupQuoteId`. |
| `feeThb` | number | | | | The pickup fee, THB. |
| `courierCode` | string | | | | The quoting courier. |
| `labelRequired` | boolean | | | | Whether its courier needs the printed label. |
| `reason` | string | | | | Why nothing was quoted. |
**Request example**
```json
{
"providerId": "019e984a-f8b4-726f-8f02-0b51e7016f46",
"groupId": "a7c4e3d2-1b0a-4f9e-8d7c-6b5a4f3e2d1c"
}
```
**Response example**
```json
{
"available": true,
"quoteId": "q-71f2",
"feeThb": 65,
"courierCode": "FLASH",
"labelRequired": false,
"reason": null
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | The quote (or available: false). |
| 400 | Bad Request | A missing id, or the group is not priced by the courier (error.pickup.quote.notApiMarkup). |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 403 | Forbidden | The member who created this key may not do this (the role lacks the permission), or the workspace may not. |
| 404 | Not Found | No such order, or the group is not this provider's (error.pickup.quote.group). |
| 503 | Service Unavailable | The order service or API-key verification is temporarily unavailable. Retry shortly. |
### Select the service (priced by Parcel Radar)
`POST https://api-sandbox.parcelradar.io/api/partner/v1/orders/{id}/service`
Save the order's service the way the Member Portal's Service tab does: name the provider, its pickup-option group and extra services, and Parcel Radar prices them — the shipping rate (a live carrier is called now), the pickup fee and the extra services, with your membership rate and campaigns (an order from a quotation keeps the quoted price while the quotation is valid and the shipment is no heavier, further or dearer than the one it quoted). You never send a price: PUT /orders/{id} refuses one. Before checkout only (CREATED or PENDING_FUNDING); call it again after a route or package change. A field you leave out keeps the order's saved value. The answer is the order, as GET /orders/{id} shows it.
**Request**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `providerId` | uuid | ✓ | | | A provider id from a Live Rates result for this order. |
| `pickupGroupId` | uuid | | | | An option's groupId from service-options. Omitted = the provider's default path (the option with groupId null), which must exist. |
| `pickupFrom` | object | | | | For an api_markup option: the "Pick up from" the courier is quoted from, when not the order's Ship-From. |
| `pickupFrom.name` | string | ✓ | | | Contact name. |
| `pickupFrom.phone` | string | ✓ | | | Phone the courier calls, e.g. "0812345678". |
| `pickupFrom.address` | string | ✓ | | | House number, building, street. |
| `pickupFrom.subDistrict` | string | ✓ | | | Tambon / khwaeng (ตำบล / แขวง), in Thai. |
| `pickupFrom.district` | string | ✓ | | | Amphoe / khet (อำเภอ / เขต), in Thai. |
| `pickupFrom.province` | string | ✓ | | | Province (จังหวัด), in Thai. |
| `pickupFrom.zipcode` | string | ✓ | 5 digits | | Postcode. |
| `pickupQuoteId` | uuid | | | | For an api_markup option: the quoteId from POST /orders/{id}/pickup/quote, to keep the fee you were shown. Used while nothing on the order changed since; otherwise the courier is asked again. |
| `options` | array | | ≤ 20 | | Extra services, by id or name from service-options (string[]). |
| `hasPrinter` | boolean | | | | Whether you can print the courier's label, for an option that asks. Omitted = not asked (none is kept). |
| `shipDate` | string | | YYYY-MM-DD | | Ship date. |
| `pickupAddress` | string | | ≤ 500 chars | | Pickup address note. |
| `pickupInstructions` | string | | ≤ 500 chars | | Instructions to the courier. |
| `references` | array | | ≤ 20, each ≤ 100 chars | | Your shipment references (string[]). |
| `note` | string | | ≤ 500 chars | | A note. |
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `id` | uuid | ✓ | | | Order id. |
| `orderNo` | string | ✓ | e.g. "RDOR202607000042" | | Reference (RDOR + YYYYMM + 6-digit sequence), unique per tenant. |
| `status` | string | ✓ | "CREATED", "PROCESSING", "IN_TRANSIT", "DELIVERED", "EXCEPTION", "ON_HOLD", "RETURNING", "RETURNED" | | Lifecycle state. |
| `fromCountry` | string | ✓ | ISO-2, e.g. "TH" | | Origin, upper-cased. |
| `toCountry` | string | ✓ | ISO-2, e.g. "US" | | Destination, upper-cased. |
| `serviceProvider` | string | | | | Chosen carrier, else null. |
| `route` | object | | | | Route milestone (ship-from / deliver-to). |
| `route.from` | object | | | | Ship-from address. |
| `route.from.name` | string | | | | Contact name. |
| `route.from.alias` | string | | | | Nickname/label. |
| `route.from.isSender` | boolean | | | | Sender role. |
| `route.from.isRecipient` | boolean | | | | Recipient role. |
| `route.from.phonePrefix` | string | | | | Dial code, digits only. |
| `route.from.phoneNumber` | string | | | | National number. |
| `route.from.email` | string | | | | Contact email. |
| `route.from.addressLine` | string | | | | Street / address line. |
| `route.from.countryCode` | string | | ISO-2 | | Country. |
| `route.from.postalCode` | string | | | | Postal code. |
| `route.from.province` | string | | | | State / province. |
| `route.from.district` | string | | | | County / district. |
| `route.from.city` | string | | | | City. |
| `route.to` | object | | | | Deliver-to address. |
| `route.to.name` | string | | | | Contact name. |
| `route.to.alias` | string | | | | Nickname/label. |
| `route.to.isSender` | boolean | | | | Sender role. |
| `route.to.isRecipient` | boolean | | | | Recipient role. |
| `route.to.phonePrefix` | string | | | | Dial code, digits only. |
| `route.to.phoneNumber` | string | | | | National number. |
| `route.to.email` | string | | | | Contact email. |
| `route.to.addressLine` | string | | | | Street / address line. |
| `route.to.countryCode` | string | | ISO-2 | | Country. |
| `route.to.postalCode` | string | | | | Postal code. |
| `route.to.province` | string | | | | State / province. |
| `route.to.district` | string | | | | County / district. |
| `route.to.city` | string | | | | City. |
| `route.exporterOfRecord` | object | | | | Optional Exporter of Record acting as indirect representative: files the export declaration in its own name for Ship From. null or omitted = none. Locked with the route once the order is checked out. |
| `route.exporterOfRecord.addressBookId` | uuid | | | | The Address Book entry it was copied from, if any. Informational only. |
| `route.exporterOfRecord.name` | string | ✓ | | | Company name. Required when the object is present. |
| `route.exporterOfRecord.contactName` | string | | | | The person to ask for. |
| `route.exporterOfRecord.phonePrefix` | string | | | | Dial code, digits only. |
| `route.exporterOfRecord.phone` | string | | | | National number. |
| `route.exporterOfRecord.email` | string | | | | Contact email. |
| `route.exporterOfRecord.addressLine` | string | | | | Street / address line. |
| `route.exporterOfRecord.countryCode` | string | ✓ | ISO-2 | | Must be the country of its side: Ship From's for the exporter, Ship To's for the importer — else 409 error.order.route.recordCountry. |
| `route.exporterOfRecord.postalCode` | string | | | | Postal code. |
| `route.exporterOfRecord.province` | string | | | | State / province. |
| `route.exporterOfRecord.district` | string | | | | County / district. |
| `route.exporterOfRecord.city` | string | | | | City. |
| `route.exporterOfRecord.subDistrict` | string | | | | Sub-district (ตำบล / แขวง). |
| `route.exporterOfRecord.customsRegNo` | string | | | | Customs registration number (EORI, Thai exporter / importer registration, …). |
| `route.importerOfRecord` | object | | | | Optional Importer of Record acting as indirect representative: clears import customs in its own name for Ship To. null or omitted = none. Locked with the route once the order is checked out. |
| `route.importerOfRecord.addressBookId` | uuid | | | | The Address Book entry it was copied from, if any. Informational only. |
| `route.importerOfRecord.name` | string | ✓ | | | Company name. Required when the object is present. |
| `route.importerOfRecord.contactName` | string | | | | The person to ask for. |
| `route.importerOfRecord.phonePrefix` | string | | | | Dial code, digits only. |
| `route.importerOfRecord.phone` | string | | | | National number. |
| `route.importerOfRecord.email` | string | | | | Contact email. |
| `route.importerOfRecord.addressLine` | string | | | | Street / address line. |
| `route.importerOfRecord.countryCode` | string | ✓ | ISO-2 | | Must be the country of its side: Ship From's for the exporter, Ship To's for the importer — else 409 error.order.route.recordCountry. |
| `route.importerOfRecord.postalCode` | string | | | | Postal code. |
| `route.importerOfRecord.province` | string | | | | State / province. |
| `route.importerOfRecord.district` | string | | | | County / district. |
| `route.importerOfRecord.city` | string | | | | City. |
| `route.importerOfRecord.subDistrict` | string | | | | Sub-district (ตำบล / แขวง). |
| `route.importerOfRecord.customsRegNo` | string | | | | Customs registration number (EORI, Thai exporter / importer registration, …). |
| `packages` | object | | | | Packages milestone. |
| `packages.items` | array | | | | The parcels. |
| `packages.items[].id` | string | | | | Line id. |
| `packages.items[].type` | string | | "box", "pallet", "envelope", "tube", "poly_mail", "container", "bulk_cargo" | | Packaging type. |
| `packages.items[].description` | string | | | | Goods description. |
| `packages.items[].quantity` | string | | | | Piece count (numeric string). |
| `packages.items[].weight` | string | | | | Weight per piece (numeric string). |
| `packages.items[].weightUnit` | string | | "kg", "lb" | | Weight unit. |
| `packages.items[].length` | string | | | | Length (numeric string). |
| `packages.items[].width` | string | | | | Width (numeric string). |
| `packages.items[].height` | string | | | | Height (numeric string). |
| `packages.items[].dimUnit` | string | | "cm", "in" | | Dimension unit. |
| `packages.items[].value` | string | | | | Declared value (numeric string). |
| `packages.items[].valueCurrency` | string | | "THB", "USD", "EUR", "GBP" | | Declared-value currency. |
| `packages.goods` | array | | | | What is inside the parcels, the Member Portal's Goods & declared value lines. Use these rather than each item's description and value: when present, they replace them as the declared value. |
| `packages.goods[].id` | string | | | | Line id. |
| `packages.goods[].description` | string | | | | What the goods are. |
| `packages.goods[].hsCode` | string | | | | HS code of the goods. Find one with GET /hs-codes/search. |
| `packages.goods[].value` | string | | | | Declared value of this line (numeric string). |
| `packages.goods[].currency` | string | | "THB", "USD", "EUR", "GBP" | | Declared-value currency. |
| `requireDocument` | boolean | | true, false | | Package Documents STATE flag — true = documents required, false = "none required" acknowledged, null = not set. NOT the files (those are `attachments`). |
| `service` | object | | | | Service milestone (chosen rate + config). |
| `service.providerId` | string | | | | Chosen carrier id. |
| `service.providerCode` | string | | | | Carrier code. |
| `service.providerName` | string | | | | Carrier display name. |
| `service.price` | object | | | | The quote Parcel Radar computed (POST /orders/{id}/service). Send it back unchanged. |
| `service.price.thb` | number | | | | Total price, THB. |
| `service.price.zoneName` | string | | | | Rated zone. |
| `service.price.customsThb` | number | | | | Customs component, THB. |
| `service.price.pickupThb` | number | | | | Pickup component, THB (optional). |
| `service.shipDate` | string | | YYYY-MM-DD | | Ship date. |
| `service.pickupGroupId` | string | | | | Pickup-option group (null = provider default). |
| `service.pickupGroupName` | string | | | | Pickup group name. |
| `service.pickupAddress` | string | | | | Pickup address. |
| `service.pickupInstructions` | string | | | | Pickup instructions. |
| `service.options` | array | | | | Selected service-option names (string[]). |
| `service.references` | array | | | | Shipment references (string[]). |
| `service.note` | string | | | | Internal note. |
| `notifications` | object | | | | Notifications milestone. |
| `notifications.sender` | object | | | | Sender notification prefs. |
| `notifications.sender.email` | string | | | | Notified email. |
| `notifications.sender.language` | string | | "en", "th" | | Email language. |
| `notifications.sender.options` | array | | "created", "in_transit", "delivered", "exception" | | Events to notify on (string[]). |
| `notifications.recipients` | array | | | | Recipient notification prefs. |
| `notifications.recipients[].email` | string | | | | Notified email. |
| `notifications.recipients[].language` | string | | "en", "th" | | Email language. |
| `notifications.recipients[].options` | array | | "created", "in_transit", "delivered", "exception" | | Events to notify on (string[]). |
| `createdAt` | string | ✓ | | | ISO-8601 timestamp. |
| `updatedAt` | string | ✓ | | | ISO-8601 timestamp. |
| `attachments` | array | | | | Uploaded document FILES (metadata) — embedded on a single-order GET/PUT, omitted when the order has none. Distinct from `requireDocument` (that is the state flag; these are the files). Manage them via the documents sub-resource below. |
| `attachments[].id` | uuid | ✓ | | | Document id. |
| `attachments[].name` | string | ✓ | | | Display name. |
| `attachments[].description` | string | | | | Optional note. |
| `attachments[].docType` | string | ✓ | "INVOICE", "RECEIPT", "TAX", "VAT", "PACKING_LIST", "CUSTOMS", "OTHER" | | Document type. |
| `attachments[].contentType` | string | | | | MIME type as uploaded. |
| `attachments[].sizeBytes` | number | ✓ | | | Decoded file size in bytes. |
| `attachments[].createdAt` | string | ✓ | | | ISO-8601 timestamp. |
**Request example**
```json
{
"providerId": "019e984a-f8b4-726f-8f02-0b51e7016f46",
"pickupGroupId": "a7c4e3d2-1b0a-4f9e-8d7c-6b5a4f3e2d1c",
"options": [
"Insurance"
],
"shipDate": "2026-11-06",
"references": [
"PO-412553"
]
}
```
**Response example**
```json
{
"id": "3f9a1c62-8d47-4a1e-9b0c-2e5f6a7b8c90",
"orderNo": "RDOR202611000042",
"status": "CREATED",
"fromCountry": "TH",
"toCountry": "US",
"serviceProvider": "DHL Express",
"service": {
"providerId": "019e984a-f8b4-726f-8f02-0b51e7016f46",
"providerCode": "RADIMEXP",
"providerName": "DHL Express",
"price": {
"thb": 1347,
"zoneName": "Zone 3",
"customsThb": 0,
"optionsThb": 107,
"optionsPriced": [
{
"name": "Insurance",
"thb": 107
}
],
"pickupFeeThb": 60,
"pickupThb": 60,
"listThb": 1180,
"discountPct": null,
"discountThb": null
},
"fingerprint": "{…}",
"shipDate": "2026-11-06",
"pickupGroupId": "a7c4e3d2-1b0a-4f9e-8d7c-6b5a4f3e2d1c",
"pickupGroupName": "Courier pickup",
"options": [
"Insurance"
],
"references": [
"PO-412553"
],
"note": ""
}
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | Saved; the body is the order with its priced service. |
| 400 | Bad Request | A missing or malformed id, an unknown pickup group (error.order.service.pickupGroup), no group for a provider that only offers groups (error.order.service.pickupGroupRequired), an unknown extra service (error.order.service.option), or more than 500 parcels. |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 403 | Forbidden | The member who created this key may not do this (the role lacks the permission), or the workspace may not. |
| 404 | Not Found | No such order, or the provider is not on this order's rate list (error.rate.provider_not_listed). |
| 409 | Conflict | Checked out already (error.order.locked); the route or packages are incomplete (error.order.service.incomplete); the carrier gave no price (error.order.service.unpriced); no courier can quote an api_markup option now (error.order.service.pickupUnavailable); an import order (error.order.service.importUnsupported). |
| 503 | Service Unavailable | The order service or API-key verification is temporarily unavailable. Retry shortly. |
**Error example**
```json
{
"ok": false,
"status": 409,
"error": "the carrier gave no price for this order",
"code": "error.order.service.unpriced"
}
```
### List drop-off points for an order
`GET https://api-sandbox.parcelradar.io/api/partner/v1/dropoff-points`
The Shops and Warehouses the order may be dropped off at, nearest first (same postcode, district, province, then name), with the provinces to filter by.
**Query parameters**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `orderId` | uuid | ✓ | | | The order. |
| `q` | string | | | | Name or address contains. |
| `province` | string | | | | Only this province. |
| `page` | number | | >= 0 | 0 | Zero-based page. |
| `size` | number | | 1–50 | 20 | Page size. |
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `items` | array | ✓ | | | The points. |
| `items[].tenantId` | uuid | ✓ | | | Pass it to PUT /orders/{id}/dropoff-point. |
| `items[].name` | string | ✓ | | | The point's name. |
| `items[].address` | string | | | | Its address. |
| `items[].publicPhone` | string | | | | Its counter phone. |
| `items[].publicHours` | string | | | | Its opening hours. |
| `items[].kind` | string | | | | Shop or Warehouse. |
| `page` | number | ✓ | | | The page. |
| `size` | number | ✓ | | | The page size. |
| `total` | number | ✓ | | | Points in all. |
| `provinces` | array | | | | Provinces with a point (string[]). |
**Response example**
```json
{
"items": [
{
"tenantId": "d1c2b3a4-0000-4000-8000-000000000001",
"name": "Silom Shop",
"address": "88 Silom Rd, Bang Rak, Bangkok 10500",
"publicPhone": "021234567",
"publicHours": "Mon–Sat 09:00–18:00",
"kind": "SHOP"
}
],
"page": 0,
"size": 20,
"total": 1,
"provinces": [
"Bangkok"
]
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | A page of points. |
| 400 | Bad Request | page or size is out of range. |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 403 | Forbidden | The member who created this key may not do this (the role lacks the permission), or the workspace may not. |
| 404 | Not Found | No order with that id belongs to your workspace, or the booking is not one of this order's. |
| 503 | Service Unavailable | The order service or API-key verification is temporarily unavailable. Retry shortly. |
### Pick the drop-off point
`PUT https://api-sandbox.parcelradar.io/api/partner/v1/orders/{id}/dropoff-point`
Pick, change or clear (`tenantId: null`) where the parcel will be brought, from CREATED until the parcel is received.
**Request**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `tenantId` | uuid | | | | A point from GET /dropoff-points; null clears the pick. |
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `dropoffPoint` | object | | | | The picked point, or null once cleared. |
**Request example**
```json
{
"tenantId": "d1c2b3a4-0000-4000-8000-000000000001"
}
```
**Response example**
```json
{
"dropoffPoint": {
"tenantId": "d1c2b3a4-0000-4000-8000-000000000001",
"name": "Silom Shop",
"address": "88 Silom Rd, Bang Rak, Bangkok 10500",
"publicPhone": "021234567",
"publicHours": "Mon–Sat 09:00–18:00",
"eligible": true
}
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | The pick. |
| 400 | Bad Request | tenantId is not a point id. |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 403 | Forbidden | The member who created this key may not do this (the role lacks the permission), or the workspace may not. |
| 404 | Not Found | No order with that id belongs to your workspace, or the booking is not one of this order's. |
| 409 | Conflict | The point does not accept this order, or the order is past the point of choosing. |
| 503 | Service Unavailable | The order service or API-key verification is temporarily unavailable. Retry shortly. |
## Order Documents
The files attached to an order's Package Documents (invoices, packing lists, …). Bytes travel base64 — no multipart. Also embedded as `attachments` on a single-order GET.
### List an order's documents
`GET https://api-sandbox.parcelradar.io/api/partner/v1/orders/{orderId}/documents`
The order's uploaded Package Documents (metadata only, newest first). These are the FILES — distinct from the `documents` milestone (the tab's JSON state). The same list is embedded as `attachments` on a single-order GET.
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `id` | uuid | ✓ | | | Document id. |
| `name` | string | ✓ | | | Display name. |
| `description` | string | | | | Optional note. |
| `docType` | string | ✓ | "INVOICE", "RECEIPT", "TAX", "VAT", "PACKING_LIST", "CUSTOMS", "OTHER" | | Document type. |
| `contentType` | string | | | | MIME type as uploaded. |
| `sizeBytes` | number | ✓ | | | Decoded file size in bytes. |
| `createdAt` | string | ✓ | | | ISO-8601 timestamp. |
**Response example**
```json
[
{
"id": "7a1b9c2d-0e3f-4a5b-8c6d-9e0f1a2b3c4d",
"name": "commercial-invoice.pdf",
"description": "Signed invoice",
"docType": "INVOICE",
"contentType": "application/pdf",
"sizeBytes": 20480,
"createdAt": "2026-07-18T04:12:00Z"
}
]
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | A JSON array of the order's documents (empty [] when none). |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 404 | Not Found | No order with that id belongs to your tenant. |
| 503 | Service Unavailable | API-key verification was temporarily unavailable. Retry shortly. |
**Error example**
```json
{
"ok": false,
"status": 404,
"error": "no order found with that id"
}
```
### Upload an order document
`POST https://api-sandbox.parcelradar.io/api/partner/v1/orders/{orderId}/documents`
Attach a file to the order. The bytes travel base64-encoded in `contentBase64` (a `data:…;base64,` prefix is accepted) — plain JSON, no multipart. Decoded size ≤ 10 MB.
**Request**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `name` | string | ✓ | ≤ 200 chars | | Display name. |
| `description` | string | | ≤ 500 chars | | Optional note. |
| `docType` | string | ✓ | "INVOICE", "RECEIPT", "TAX", "VAT", "PACKING_LIST", "CUSTOMS", "OTHER" | | One of the document types. |
| `contentBase64` | string | ✓ | | | File bytes, base64 (a `data:…;base64,` prefix is accepted). Decoded ≤ 10 MB. |
| `contentType` | string | | ≤ 200 chars | | MIME type (e.g. application/pdf). |
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `id` | uuid | ✓ | | | Document id. |
| `name` | string | ✓ | | | Display name. |
| `description` | string | | | | Optional note. |
| `docType` | string | ✓ | "INVOICE", "RECEIPT", "TAX", "VAT", "PACKING_LIST", "CUSTOMS", "OTHER" | | Document type. |
| `contentType` | string | | | | MIME type as uploaded. |
| `sizeBytes` | number | ✓ | | | Decoded file size in bytes. |
| `createdAt` | string | ✓ | | | ISO-8601 timestamp. |
**Request example**
```json
{
"name": "commercial-invoice.pdf",
"description": "Signed invoice",
"docType": "INVOICE",
"contentType": "application/pdf",
"contentBase64": "JVBERi0xLjcKJ..."
}
```
**Response example**
```json
{
"id": "7a1b9c2d-0e3f-4a5b-8c6d-9e0f1a2b3c4d",
"name": "commercial-invoice.pdf",
"description": "Signed invoice",
"docType": "INVOICE",
"contentType": "application/pdf",
"sizeBytes": 20480,
"createdAt": "2026-07-18T04:12:00Z"
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | The document was stored; the body is its metadata. |
| 400 | Bad Request | Missing name/bytes, an unknown docType, invalid base64, or a file over 10 MB. |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 404 | Not Found | No order with that id belongs to your tenant. |
| 503 | Service Unavailable | API-key verification was temporarily unavailable. Retry shortly. |
**Error example**
```json
{
"ok": false,
"status": 400,
"error": "request failed validation",
"fields": [
{
"field": "docType",
"message": "must be one of INVOICE, RECEIPT, TAX, VAT, PACKING_LIST, CUSTOMS, OTHER"
}
]
}
```
### Update a document
`PUT https://api-sandbox.parcelradar.io/api/partner/v1/orders/{orderId}/documents/{docId}`
Replace a document's metadata (name / description / docType). Include `contentBase64` to replace the file bytes too; omit it to keep the stored file.
**Request**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `name` | string | ✓ | ≤ 200 chars | | Display name. |
| `description` | string | | ≤ 500 chars | | Optional note. |
| `docType` | string | ✓ | "INVOICE", "RECEIPT", "TAX", "VAT", "PACKING_LIST", "CUSTOMS", "OTHER" | | One of the document types. |
| `contentBase64` | string | | | | New file bytes (base64) to replace the stored ones; omit/blank to keep them. Decoded ≤ 10 MB. |
| `contentType` | string | | ≤ 200 chars | | MIME type of the replacement bytes. |
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `id` | uuid | ✓ | | | Document id. |
| `name` | string | ✓ | | | Display name. |
| `description` | string | | | | Optional note. |
| `docType` | string | ✓ | "INVOICE", "RECEIPT", "TAX", "VAT", "PACKING_LIST", "CUSTOMS", "OTHER" | | Document type. |
| `contentType` | string | | | | MIME type as uploaded. |
| `sizeBytes` | number | ✓ | | | Decoded file size in bytes. |
| `createdAt` | string | ✓ | | | ISO-8601 timestamp. |
**Request example**
```json
{
"name": "commercial-invoice-v2.pdf",
"description": "Re-signed invoice",
"docType": "INVOICE"
}
```
**Response example**
```json
{
"id": "7a1b9c2d-0e3f-4a5b-8c6d-9e0f1a2b3c4d",
"name": "commercial-invoice-v2.pdf",
"description": "Re-signed invoice",
"docType": "INVOICE",
"contentType": "application/pdf",
"sizeBytes": 20480,
"createdAt": "2026-07-18T04:12:00Z"
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | The document was updated; the body is its metadata. |
| 400 | Bad Request | Missing name, an unknown docType, invalid base64, or a replacement file over 10 MB. |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 404 | Not Found | No such document for this order/tenant. |
| 503 | Service Unavailable | API-key verification was temporarily unavailable. Retry shortly. |
**Error example**
```json
{
"ok": false,
"status": 404,
"error": "no document found with that id"
}
```
### Download a document
`GET https://api-sandbox.parcelradar.io/api/partner/v1/orders/{orderId}/documents/{docId}`
Fetch one document WITH its bytes (base64). Decode `contentBase64` to a Blob/file and save it as `name`.
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `name` | string | ✓ | | | Display name (save the file as this). |
| `contentType` | string | | | | MIME type as uploaded. |
| `contentBase64` | string | ✓ | | | File bytes, base64 — decode to a Blob/file. |
**Response example**
```json
{
"name": "commercial-invoice.pdf",
"contentType": "application/pdf",
"contentBase64": "JVBERi0xLjcKJ..."
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | The document with its base64 bytes. |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 404 | Not Found | No such document for this order/tenant. |
| 503 | Service Unavailable | API-key verification was temporarily unavailable. Retry shortly. |
**Error example**
```json
{
"ok": false,
"status": 404,
"error": "no document found with that id"
}
```
### Delete a document
`DELETE https://api-sandbox.parcelradar.io/api/partner/v1/orders/{orderId}/documents/{docId}`
Remove a document from the order.
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 204 | No Content | The document was deleted; no body. |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 404 | Not Found | No such document for this order/tenant. |
| 503 | Service Unavailable | API-key verification was temporarily unavailable. Retry shortly. |
**Error example**
```json
{
"ok": false,
"status": 404,
"error": "no document found with that id"
}
```
## Checkout
The Checkout tab: read the total, accept the provider's conditions, then hold the total on your workspace's wallet (→ SUBMITTED). The money is taken when an officer approves the shipment; until then a withdraw releases the hold.
### Read the checkout
`GET https://api-sandbox.parcelradar.io/api/partner/v1/orders/{id}/checkout`
What checkout would hold, whether the wallet covers it, and whether the conditions are accepted. Changes nothing; safe to poll. Echo `fingerprint` and `amount` into POST /checkout.
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `orderId` | uuid | ✓ | | | The order. |
| `orderNo` | string | ✓ | | | Its number. |
| `status` | string | ✓ | | | The order's status. |
| `amount` | number | ✓ | | | The total checkout holds (VAT included), THB. Send it back as `expectedAmount`. |
| `vatTotal` | number | | | | The VAT inside `amount`: 7 % on Parcel Radar's own fees (pickup, extra services) only. The carrier's charge and the duties & taxes on the goods carry no VAT — goods exported from Thailand are VAT-free, and the destination duty is passed through as priced. Read it from here; never add VAT on top of the duties yourself. |
| `additionalCostsTotal` | number | | | | Officer-added costs inside `amount` (0 when none). |
| `currency` | string | ✓ | | | "THB". |
| `walletBalance` | number | | | | The prepaid wallet's balance. |
| `walletAvailable` | number | | | | Balance minus credit held by other orders. |
| `sufficient` | boolean | ✓ | | | Whether the prepaid wallet covers `amount`. |
| `alreadyCharged` | boolean | ✓ | | | true once the order is checked out. |
| `fingerprint` | string | | | | The quote being charged. Send it back as `fingerprint`. |
| `conditionsAccepted` | boolean | ✓ | | | Whether the selected provider's conditions are accepted. Checkout refuses until they are. |
| `accounts` | array | ✓ | | | Every account that could pay — PREPAID first, then an ADVANCE credit line if the workspace has one. Pick one by its `accountId`. |
| `accounts[].accountId` | uuid | | | | Send it as `accountId` to POST /checkout to charge this account. null only on a Prepaid wallet never opened yet — omitting `accountId` charges that one too. |
| `accounts[].accountType` | string | ✓ | "PREPAID", "ADVANCE" | | PREPAID = your workspace's own money (topped up in the Member Portal). ADVANCE = a credit line Parcel Radar granted, repaid on its bill. |
| `accounts[].balance` | number | ✓ | | | The account's balance, THB. |
| `accounts[].reserved` | number | ✓ | | | Held by your other checked-out orders. |
| `accounts[].available` | number | ✓ | | | Spendable now: what this checkout is judged against. |
| `accounts[].creditLimit` | number | | | | ADVANCE only: the granted ceiling. null on PREPAID. |
| `accounts[].outstanding` | number | | | | ADVANCE only: drawn and not yet repaid. null on PREPAID. |
| `accounts[].currency` | string | ✓ | | | "THB". |
| `accounts[].sufficient` | boolean | ✓ | | | Whether this account can pay `amount` now: enough available AND no credit hold. Parcel Radar's verdict — check out with an account where it is true. |
| `accounts[].creditHeld` | boolean | ✓ | | | ADVANCE only: a credit hold refuses this account whatever its balance (409 error.wallet.creditHeld / error.credit.parentOverAllocated). Always false on PREPAID. |
| `accounts[].creditHeldReason` | string | | "GROUP_HOLD", "WRITE_OFF", "OVERDUE", "PARENT_OVER_ALLOCATED", null | | Why the hold: a group hold, a write-off, an overdue bill, or the parent group's line below its allocations. |
| `chargedAccountId` | uuid | | | | Once checked out: the account the hold sits on. null before. |
| `chargedAccountType` | string | | "PREPAID", "ADVANCE", null | | Its kind. |
| `payerName` | string | | | | The workspace that pays: always the order's own (a super portal never pays for a sub-portal's order). |
| `withdrawBlockedByBooking` | boolean | | | | true while a live courier booking stops a withdraw (cancel the booking first). |
**Response example**
```json
{
"orderId": "3f9a1c62-8d47-4a1e-9b0c-2e5f6a7b8c90",
"orderNo": "RDOR202611000042",
"status": "CREATED",
"amount": 1240,
"vatTotal": 81.12,
"additionalCostsTotal": 0,
"currency": "THB",
"walletBalance": 5000,
"walletAvailable": 5000,
"sufficient": true,
"alreadyCharged": false,
"fingerprint": "{\"origin\":{\"country\":\"TH\",…}}",
"conditionsAccepted": false,
"accounts": [
{
"accountId": "a1b2c3d4-0000-4000-8000-0000000000a1",
"accountType": "PREPAID",
"balance": 5000,
"reserved": 0,
"available": 5000,
"creditLimit": null,
"outstanding": null,
"currency": "THB",
"sufficient": true,
"creditHeld": false,
"creditHeldReason": null
},
{
"accountId": "a1b2c3d4-0000-4000-8000-0000000000a2",
"accountType": "ADVANCE",
"balance": 60000,
"reserved": 0,
"available": 60000,
"creditLimit": 100000,
"outstanding": 40000,
"currency": "THB",
"sufficient": true,
"creditHeld": false,
"creditHeldReason": null
}
],
"chargedAccountId": null,
"chargedAccountType": null,
"payerName": "Acme Co., Ltd.",
"withdrawBlockedByBooking": false
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | The checkout. |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 403 | Forbidden | The member who created this key may not do this (the role lacks the permission), or the workspace may not. |
| 404 | Not Found | No order with that id belongs to your workspace, or the booking is not one of this order's. |
| 503 | Service Unavailable | The order service or API-key verification is temporarily unavailable. Retry shortly. |
### Accept the provider's conditions
`POST https://api-sandbox.parcelradar.io/api/partner/v1/orders/{id}/checkout/conditions`
Accept the selected provider's conditions (prohibited goods, liability, surcharges — GET /instant-quote/conditions shows them). Recorded for that provider: choosing another one asks again.
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `acceptedAt` | string | ✓ | | | ISO-8601 timestamp. |
**Response example**
```json
{
"acceptedAt": "2026-11-04T02:15:09Z"
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | Accepted. |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 403 | Forbidden | The member who created this key may not do this (the role lacks the permission), or the workspace may not. |
| 404 | Not Found | No order with that id belongs to your workspace, or the booking is not one of this order's. |
| 409 | Conflict | The order has no service yet (error.order.conditions.noService). |
| 503 | Service Unavailable | The order service or API-key verification is temporarily unavailable. Retry shortly. |
### Check out
`POST https://api-sandbox.parcelradar.io/api/partner/v1/orders/{id}/checkout`
Hold the order's total on the wallet (→ SUBMITTED). The amount is never an input: it is the order's own total. Send back what you read from GET /checkout so a changed price is refused instead of charged. On error.wallet.insufficient the body carries `shortfall`, `amount`, `balance`: top the prepaid wallet up (POST /wallet/topups) or in the Member Portal, and check out again.
**Request**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `fingerprint` | string | | | | From GET /checkout. A different quote → 409 error.order.checkout.stale. |
| `expectedAmount` | number | | | | The `amount` you read. A different total → 409 error.order.checkout.stale. |
| `accountId` | uuid | | | | The account to charge: the `accountId` of one of GET /checkout's `accounts` — PREPAID or ADVANCE. Omitted = the PREPAID wallet. You choose by id, never by kind; an id that is not one of your workspace's accounts is a 404. |
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `orderId` | uuid | ✓ | | | The order. |
| `orderNo` | string | ✓ | | | Its number. |
| `status` | string | ✓ | "SUBMITTED" (checkout), "CREATED" (withdraw) | | The order's new status. |
| `chargeId` | string | | | | The held charge. |
| `amount` | number | ✓ | | | The amount held (or released). |
| `currency` | string | ✓ | | | "THB". |
| `balance` | number | | | | The account's balance — unchanged by a hold. |
| `available` | number | | | | Spendable after the hold. |
**Request example**
```json
{
"fingerprint": "{\"origin\":{\"country\":\"TH\",…}}",
"expectedAmount": 1240,
"accountId": "a1b2c3d4-0000-4000-8000-0000000000a2"
}
```
**Response example**
```json
{
"orderId": "3f9a1c62-8d47-4a1e-9b0c-2e5f6a7b8c90",
"orderNo": "RDOR202611000042",
"status": "SUBMITTED",
"chargeId": "c0a8012e-7f11-4b39-9a4e-2f6d1b7c9e10",
"amount": 1240,
"currency": "THB",
"balance": 5000,
"available": 3760
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | Checked out: the total is held, status SUBMITTED. |
| 400 | Bad Request | accountId is malformed. |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 403 | Forbidden | The member who created this key may not do this (the role lacks the permission), or the workspace may not. |
| 404 | Not Found | No such order in your workspace, or accountId is not one of its accounts (error.order.checkout.account). |
| 409 | Conflict | Refused, with `code`: error.order.checkout.conditions (accept them first), …stale (the quote or total changed), …requote (route or packages changed after the quote), …status (already checked out or not checkoutable), error.wallet.insufficient (with shortfall), error.wallet.creditHeld / error.credit.parentOverAllocated (the ADVANCE line is on hold — use PREPAID). |
| 503 | Service Unavailable | The order service or API-key verification is temporarily unavailable. Retry shortly. |
**Error example**
```json
{
"ok": false,
"status": 409,
"error": "Your wallet does not cover this order.",
"code": "error.wallet.insufficient",
"shortfall": 240,
"amount": 1240,
"balance": 1000,
"currency": "THB"
}
```
### Withdraw the checkout
`DELETE https://api-sandbox.parcelradar.io/api/partner/v1/orders/{id}/checkout`
Release the hold and return the order to CREATED, so it can be edited again. Only while SUBMITTED, and not while a courier booking is live (cancel it first).
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `orderId` | uuid | ✓ | | | The order. |
| `orderNo` | string | ✓ | | | Its number. |
| `status` | string | ✓ | "SUBMITTED" (checkout), "CREATED" (withdraw) | | The order's new status. |
| `chargeId` | string | | | | The held charge. |
| `amount` | number | ✓ | | | The amount held (or released). |
| `currency` | string | ✓ | | | "THB". |
| `balance` | number | | | | The account's balance — unchanged by a hold. |
| `available` | number | | | | Spendable after the hold. |
**Response example**
```json
{
"orderId": "3f9a1c62-8d47-4a1e-9b0c-2e5f6a7b8c90",
"orderNo": "RDOR202611000042",
"status": "CREATED",
"chargeId": "c0a8012e-7f11-4b39-9a4e-2f6d1b7c9e10",
"amount": 1240,
"currency": "THB",
"balance": 5000,
"available": 5000
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | Withdrawn: status CREATED. |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 403 | Forbidden | The member who created this key may not do this (the role lacks the permission), or the workspace may not. |
| 404 | Not Found | No order with that id belongs to your workspace, or the booking is not one of this order's. |
| 409 | Conflict | Not withdrawable: error.order.withdraw.status, or error.order.withdraw.liveBooking while a courier is booked. |
| 503 | Service Unavailable | The order service or API-key verification is temporarily unavailable. Retry shortly. |
**Error example**
```json
{
"ok": false,
"status": 409,
"error": "Cancel the courier booking first.",
"code": "error.order.withdraw.liveBooking"
}
```
## Shipment Label
The Shipment Label tab, for a checked-out order. handoff says which branch applies: pickup (compare, reserve, book the courier, then print the label) or dropoff (print the carton mark and bring the parcel in).
### Pickup or drop-off?
`GET https://api-sandbox.parcelradar.io/api/partner/v1/orders/{id}/pickup/handoff`
Which Shipment Label branch applies — decided by the saved service's pickupGroupId, never by the caller — plus a drop-off's point and claim code.
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `kind` | string | ✓ | "pickup", "dropoff" | | pickup = book a courier; dropoff = print the carton mark and bring the parcel in. From the saved service's pickupGroupId; an order without one is a drop-off. |
| `destinations` | array | | | | Where a courier would take it (pickup only). |
| `dropoffPoint` | object | | | | The picked drop-off point ({ tenantId, name, address, publicPhone, publicHours }), or null. |
| `claimCode` | string | | | | A checked-out drop-off's code, shown at the counter. |
| `dropoffHint` | string | | "CHECK_OUT_FIRST", "CHOOSE_ANOTHER_SHOP", "PICKUP_SERVICE", "NOT_ACCEPTING", null | | What blocks a drop-off, if anything. |
| `labelRequired` | boolean | | | | Whether the courier needs the printed label. |
| `tenantIdentity` | string | | | | Your workspace's Member ID (RDT-…), as the labels print it. |
**Response example**
```json
{
"kind": "pickup",
"destinations": [
{
"key": "WAREHOUSE",
"label": "Parcel Radar warehouse",
"address": {
"name": "Parcel Radar",
"province": "Bangkok",
"zipcode": "10260"
}
}
],
"dropoffPoint": null,
"claimCode": null,
"dropoffHint": null,
"labelRequired": true,
"tenantIdentity": "RDT-4K7Q2M"
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | The handoff. |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 403 | Forbidden | The member who created this key may not do this (the role lacks the permission), or the workspace may not. |
| 404 | Not Found | No order with that id belongs to your workspace, or the booking is not one of this order's. |
| 503 | Service Unavailable | The order service or API-key verification is temporarily unavailable. Retry shortly. |
### List pickup destinations
`GET https://api-sandbox.parcelradar.io/api/partner/v1/orders/{id}/pickup/destinations`
Where a courier would take this order, resolved to addresses (key WAREHOUSE or PROVIDER).
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `key` | string | ✓ | "WAREHOUSE", "PROVIDER" | | Pass as `destination`. |
| `label` | string | ✓ | | | Its name. |
| `address` | object | ✓ | | | Its address. |
| `address.name` | string | ✓ | | | Contact name. |
| `address.phone` | string | ✓ | | | Phone the courier calls, e.g. "0812345678". |
| `address.address` | string | ✓ | | | House number, building, street. |
| `address.subDistrict` | string | ✓ | | | Tambon / khwaeng (ตำบล / แขวง), in Thai. |
| `address.district` | string | ✓ | | | Amphoe / khet (อำเภอ / เขต), in Thai. |
| `address.province` | string | ✓ | | | Province (จังหวัด), in Thai. |
| `address.zipcode` | string | ✓ | 5 digits | | Postcode. |
**Response example**
```json
[
{
"key": "WAREHOUSE",
"label": "Parcel Radar warehouse",
"address": {
"name": "Parcel Radar",
"phone": "021234567",
"address": "99/9 Sukhumvit 101",
"subDistrict": "บางจาก",
"district": "พระโขนง",
"province": "กรุงเทพมหานคร",
"zipcode": "10260"
}
}
]
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | A JSON array of destinations. |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 403 | Forbidden | The member who created this key may not do this (the role lacks the permission), or the workspace may not. |
| 404 | Not Found | No order with that id belongs to your workspace, or the booking is not one of this order's. |
| 503 | Service Unavailable | The order service or API-key verification is temporarily unavailable. Retry shortly. |
### Compare couriers
`POST https://api-sandbox.parcelradar.io/api/partner/v1/orders/{id}/pickup/compare`
Every courier that could collect this order's parcels, with its price and whether it can take them, and the winner. Books nothing. The parcels and addresses come from the order.
**Request**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `destination` | string | | "WAREHOUSE", "PROVIDER" | "WAREHOUSE" | Where the courier takes it. |
| `from` | object | | | | A "Pick up from" other than the order's Ship-From. |
| `from.name` | string | ✓ | | | Contact name. |
| `from.phone` | string | ✓ | | | Phone the courier calls, e.g. "0812345678". |
| `from.address` | string | ✓ | | | House number, building, street. |
| `from.subDistrict` | string | ✓ | | | Tambon / khwaeng (ตำบล / แขวง), in Thai. |
| `from.district` | string | ✓ | | | Amphoe / khet (อำเภอ / เขต), in Thai. |
| `from.province` | string | ✓ | | | Province (จังหวัด), in Thai. |
| `from.zipcode` | string | ✓ | 5 digits | | Postcode. |
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `offers` | array | ✓ | | | Every courier. |
| `offers[].courierCode` | string | ✓ | | | The courier. |
| `offers[].displayName` | string | | | | Its name. |
| `offers[].totalPrice` | number | | | | Its price, THB. |
| `offers[].available` | boolean | ✓ | | | Whether it can take this parcel. |
| `offers[].reason` | string | | | | Why not (OVER_WEIGHT, …). |
| `winner` | object | | | | The one POST /pickup reserves, or null. |
| `winner.courierCode` | string | ✓ | | | The courier. |
| `winner.displayName` | string | | | | Its name. |
| `winner.totalPrice` | number | | | | Its price, THB. |
| `winner.available` | boolean | ✓ | | | Whether it can take this parcel. |
| `winner.reason` | string | | | | Why not (OVER_WEIGHT, …). |
| `strategy` | string | | | | How the winner was chosen. |
**Request example**
```json
{
"destination": "WAREHOUSE"
}
```
**Response example**
```json
{
"offers": [
{
"courierCode": "DPKERRY",
"displayName": "Kerry Express",
"totalPrice": 45,
"available": true,
"reason": null
},
{
"courierCode": "FLASH",
"displayName": "Flash Express",
"totalPrice": 48,
"available": true,
"reason": null
}
],
"winner": {
"courierCode": "DPKERRY",
"displayName": "Kerry Express",
"totalPrice": 45,
"available": true,
"reason": null
},
"strategy": "cheapest"
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | The comparison. |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 403 | Forbidden | The member who created this key may not do this (the role lacks the permission), or the workspace may not. |
| 404 | Not Found | No order with that id belongs to your workspace, or the booking is not one of this order's. |
| 503 | Service Unavailable | The order service or API-key verification is temporarily unavailable. Retry shortly. |
### Reserve the courier
`POST https://api-sandbox.parcelradar.io/api/partner/v1/orders/{id}/pickup`
Reserve the winning courier (status PENDING) — nothing is booked at the courier yet. Checked-out orders only. `idempotencyKey` is required: generate one per attempt and reuse it on a retry, so a retried call returns the same booking.
**Request**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `idempotencyKey` | string | ✓ | 1–100 chars | | Your key for this attempt. Reuse it when you retry. |
| `destination` | string | | "WAREHOUSE", "PROVIDER" | "WAREHOUSE" | Where the courier takes it. |
| `courierCode` | string | | | | Only when the comparison tied at the cheapest price; anything else is refused. |
| `from` | object | | | | A "Pick up from" other than the order's Ship-From. |
| `from.name` | string | ✓ | | | Contact name. |
| `from.phone` | string | ✓ | | | Phone the courier calls, e.g. "0812345678". |
| `from.address` | string | ✓ | | | House number, building, street. |
| `from.subDistrict` | string | ✓ | | | Tambon / khwaeng (ตำบล / แขวง), in Thai. |
| `from.district` | string | ✓ | | | Amphoe / khet (อำเภอ / เขต), in Thai. |
| `from.province` | string | ✓ | | | Province (จังหวัด), in Thai. |
| `from.zipcode` | string | ✓ | 5 digits | | Postcode. |
| `note` | string | | ≤ 500 chars | | A note for the driver. |
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `id` | uuid | ✓ | | | The booking (pickupId). |
| `orderId` | uuid | ✓ | | | The order. |
| `status` | string | ✓ | "PENDING", "BOOKED", "PICKUP_REQUESTED", "COLLECTED", "CANCELLED", "FAILED" | | PENDING = reserved; BOOKED = the shipment exists at the courier and the label prints. |
| `courierCode` | string | | | | The courier. |
| `trackNo` | string | | | | The courier's tracking number (first carton) once BOOKED. |
| `quotedPriceThb` | number | | | | The courier's price. |
| `destination` | string | | "WAREHOUSE", "PROVIDER" | | Where the courier takes it. |
| `lastError` | string | | | | Why the last booking attempt failed. |
| `shipments` | array | | | | One per carton: { cartonNo, trackNo, refCode, vendorOrderId, cancelled }. |
| `bookedAt` | string | | | | When the shipment was created. |
| `cancelDeadline` | string | | | | Until when DELETE may still cancel it. |
| `labelRequired` | boolean | | | | false: the courier needs no printed label. |
**Request example**
```json
{
"idempotencyKey": "7b0f3c1e-order-42-try-1",
"destination": "WAREHOUSE"
}
```
**Response example**
```json
{
"id": "8c1d2e3f-4a5b-4c6d-8e7f-90a1b2c3d4e5",
"orderId": "3f9a1c62-8d47-4a1e-9b0c-2e5f6a7b8c90",
"status": "PENDING",
"courierCode": "DPKERRY",
"trackNo": null,
"quotedPriceThb": 45,
"destination": "WAREHOUSE",
"lastError": null,
"shipments": [],
"bookedAt": null,
"cancelDeadline": null,
"labelRequired": true
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | The reserved booking (PENDING). |
| 400 | Bad Request | idempotencyKey is missing, an incomplete address (error.pickup.address), or a courier not tied at the cheapest (error.pickup.courierNotTied). |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 403 | Forbidden | The member who created this key may not do this (the role lacks the permission), or the workspace may not. |
| 404 | Not Found | No order with that id belongs to your workspace, or the booking is not one of this order's. |
| 409 | Conflict | The order is not checked out yet (error.pickup.checkoutFirst). |
| 503 | Service Unavailable | The order service or API-key verification is temporarily unavailable. Retry shortly. |
**Error example**
```json
{
"ok": false,
"status": 409,
"error": "check the order out first: a courier is booked only once its credit is held",
"code": "error.pickup.checkoutFirst"
}
```
### List the order's bookings
`GET https://api-sandbox.parcelradar.io/api/partner/v1/orders/{id}/pickup`
Every courier booking on the order, newest first — cancelled ones included.
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `id` | uuid | ✓ | | | The booking (pickupId). |
| `orderId` | uuid | ✓ | | | The order. |
| `status` | string | ✓ | "PENDING", "BOOKED", "PICKUP_REQUESTED", "COLLECTED", "CANCELLED", "FAILED" | | PENDING = reserved; BOOKED = the shipment exists at the courier and the label prints. |
| `courierCode` | string | | | | The courier. |
| `trackNo` | string | | | | The courier's tracking number (first carton) once BOOKED. |
| `quotedPriceThb` | number | | | | The courier's price. |
| `destination` | string | | "WAREHOUSE", "PROVIDER" | | Where the courier takes it. |
| `lastError` | string | | | | Why the last booking attempt failed. |
| `shipments` | array | | | | One per carton: { cartonNo, trackNo, refCode, vendorOrderId, cancelled }. |
| `bookedAt` | string | | | | When the shipment was created. |
| `cancelDeadline` | string | | | | Until when DELETE may still cancel it. |
| `labelRequired` | boolean | | | | false: the courier needs no printed label. |
**Response example**
```json
[
{
"id": "8c1d2e3f-4a5b-4c6d-8e7f-90a1b2c3d4e5",
"orderId": "3f9a1c62-8d47-4a1e-9b0c-2e5f6a7b8c90",
"status": "BOOKED",
"courierCode": "DPKERRY",
"trackNo": "KEX123456789TH",
"quotedPriceThb": 45,
"destination": "WAREHOUSE",
"lastError": null,
"shipments": [
{
"cartonNo": 1,
"trackNo": "KEX123456789TH",
"refCode": "BKK-01",
"vendorOrderId": "IS-889120",
"cancelled": false
}
],
"bookedAt": "2026-11-04T02:20:41Z",
"cancelDeadline": "2026-11-04T10:00:00Z",
"labelRequired": true
}
]
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | A JSON array of bookings (empty [] when none). |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 403 | Forbidden | The member who created this key may not do this (the role lacks the permission), or the workspace may not. |
| 404 | Not Found | No order with that id belongs to your workspace, or the booking is not one of this order's. |
| 503 | Service Unavailable | The order service or API-key verification is temporarily unavailable. Retry shortly. |
### Book the courier
`POST https://api-sandbox.parcelradar.io/api/partner/v1/orders/{id}/pickup/{pickupId}/book`
Create the shipment at the courier for a reserved (PENDING) booking: one shipment per carton, each with a real tracking number, so the courier label prints (→ BOOKED). A courier that needs no label is asked to collect at the same time. Booking a BOOKED row returns it unchanged. This is a real shipment at the courier.
**Request**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `pickupFrom` | object | ✓ | | | Where the courier collects; the label prints it as the sender. |
| `pickupFrom.name` | string | ✓ | | | Contact name. |
| `pickupFrom.phone` | string | ✓ | | | Phone the courier calls, e.g. "0812345678". |
| `pickupFrom.address` | string | ✓ | | | House number, building, street. |
| `pickupFrom.subDistrict` | string | ✓ | | | Tambon / khwaeng (ตำบล / แขวง), in Thai. |
| `pickupFrom.district` | string | ✓ | | | Amphoe / khet (อำเภอ / เขต), in Thai. |
| `pickupFrom.province` | string | ✓ | | | Province (จังหวัด), in Thai. |
| `pickupFrom.zipcode` | string | ✓ | 5 digits | | Postcode. |
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `id` | uuid | ✓ | | | The booking (pickupId). |
| `orderId` | uuid | ✓ | | | The order. |
| `status` | string | ✓ | "PENDING", "BOOKED", "PICKUP_REQUESTED", "COLLECTED", "CANCELLED", "FAILED" | | PENDING = reserved; BOOKED = the shipment exists at the courier and the label prints. |
| `courierCode` | string | | | | The courier. |
| `trackNo` | string | | | | The courier's tracking number (first carton) once BOOKED. |
| `quotedPriceThb` | number | | | | The courier's price. |
| `destination` | string | | "WAREHOUSE", "PROVIDER" | | Where the courier takes it. |
| `lastError` | string | | | | Why the last booking attempt failed. |
| `shipments` | array | | | | One per carton: { cartonNo, trackNo, refCode, vendorOrderId, cancelled }. |
| `bookedAt` | string | | | | When the shipment was created. |
| `cancelDeadline` | string | | | | Until when DELETE may still cancel it. |
| `labelRequired` | boolean | | | | false: the courier needs no printed label. |
**Request example**
```json
{
"pickupFrom": {
"name": "Green Parker",
"phone": "0973331702",
"address": "514 Sukhumvit 55",
"subDistrict": "คลองตันเหนือ",
"district": "วัฒนา",
"province": "กรุงเทพมหานคร",
"zipcode": "10110"
}
}
```
**Response example**
```json
{
"id": "8c1d2e3f-4a5b-4c6d-8e7f-90a1b2c3d4e5",
"orderId": "3f9a1c62-8d47-4a1e-9b0c-2e5f6a7b8c90",
"status": "BOOKED",
"courierCode": "DPKERRY",
"trackNo": "KEX123456789TH",
"quotedPriceThb": 45,
"destination": "WAREHOUSE",
"lastError": null,
"shipments": [
{
"cartonNo": 1,
"trackNo": "KEX123456789TH",
"refCode": "BKK-01",
"vendorOrderId": "IS-889120",
"cancelled": false
}
],
"bookedAt": "2026-11-04T02:20:41Z",
"cancelDeadline": "2026-11-04T10:00:00Z",
"labelRequired": true
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | The booking, BOOKED with its tracking numbers. |
| 400 | Bad Request | pickupFrom is missing or incomplete (error.pickup.address), the booking is not PENDING (error.pickup.notBooked), or no courier was reserved (error.pickup.noCourier). |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 403 | Forbidden | The member who created this key may not do this (the role lacks the permission), or the workspace may not. |
| 404 | Not Found | No order with that id belongs to your workspace, or the booking is not one of this order's. |
| 409 | Conflict | The order is not checked out yet (error.pickup.checkoutFirst). |
| 503 | Service Unavailable | The order service or API-key verification is temporarily unavailable. Retry shortly. |
### Get the Shipment Label
`GET https://api-sandbox.parcelradar.io/api/partner/v1/orders/{id}/pickup/{pickupId}/label`
The end of the flow: the Parcel Radar carton mark plus the courier's label, one HTML sheet per carton with its page size in mm. Render each sheet at that size (e.g. print to PDF with a headless browser) and stick them on the cartons. Before BOOKED the courier sheet is a `preview`; a cancelled booking's is `voided`.
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `sheets` | array | ✓ | | | One sheet per carton and kind. |
| `sheets[].kind` | string | ✓ | "parcelradar", "courier" | | parcelradar = the Parcel Radar carton mark; courier = the courier's label. |
| `sheets[].html` | string | ✓ | | | The sheet, as self-contained HTML. Render it at widthMm × heightMm. |
| `sheets[].widthMm` | number | ✓ | | | Page width, mm. |
| `sheets[].heightMm` | number | ✓ | | | Page height, mm. |
| `sheets[].copy` | number | ✓ | | | This sheet's carton number (1-based). |
| `sheets[].copies` | number | ✓ | | | How many cartons. |
| `sheets[].preview` | boolean | | | | true before the booking is BOOKED: the barcode is a placeholder (the order number). Book first, then print. |
| `sheets[].voided` | boolean | | | | true for a cancelled or failed booking: nothing on it may be used. Do not print it. |
| `sheets[].compact` | object | | | | The same sheet for a 100×65 mm roll ({ html, widthMm, heightMm }), or null. |
| `missing` | array | ✓ | | | Kinds with no template (string[]); empty when every sheet rendered. |
**Response example**
```json
{
"sheets": [
{
"kind": "parcelradar",
"html": "<div class=\"label\">…</div>",
"widthMm": 100,
"heightMm": 150,
"copy": 1,
"copies": 1,
"preview": false,
"voided": false,
"compact": null
},
{
"kind": "courier",
"html": "<div class=\"label\">…</div>",
"widthMm": 100,
"heightMm": 150,
"copy": 1,
"copies": 1,
"preview": false,
"voided": false,
"compact": null
}
],
"missing": []
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | The sheets. |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 403 | Forbidden | The member who created this key may not do this (the role lacks the permission), or the workspace may not. |
| 404 | Not Found | No order with that id belongs to your workspace, or the booking is not one of this order's. |
| 503 | Service Unavailable | The order service or API-key verification is temporarily unavailable. Retry shortly. |
### Get the carton mark
`GET https://api-sandbox.parcelradar.io/api/partner/v1/orders/{id}/carton-mark`
The drop-off branch's label: the Parcel Radar carton mark alone (with a checked-out drop-off's claim code and its QR). Nothing is booked.
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `sheets` | array | ✓ | | | One sheet per carton and kind. |
| `sheets[].kind` | string | ✓ | "parcelradar", "courier" | | parcelradar = the Parcel Radar carton mark; courier = the courier's label. |
| `sheets[].html` | string | ✓ | | | The sheet, as self-contained HTML. Render it at widthMm × heightMm. |
| `sheets[].widthMm` | number | ✓ | | | Page width, mm. |
| `sheets[].heightMm` | number | ✓ | | | Page height, mm. |
| `sheets[].copy` | number | ✓ | | | This sheet's carton number (1-based). |
| `sheets[].copies` | number | ✓ | | | How many cartons. |
| `sheets[].preview` | boolean | | | | true before the booking is BOOKED: the barcode is a placeholder (the order number). Book first, then print. |
| `sheets[].voided` | boolean | | | | true for a cancelled or failed booking: nothing on it may be used. Do not print it. |
| `sheets[].compact` | object | | | | The same sheet for a 100×65 mm roll ({ html, widthMm, heightMm }), or null. |
| `missing` | array | ✓ | | | Kinds with no template (string[]); empty when every sheet rendered. |
**Response example**
```json
{
"sheets": [
{
"kind": "parcelradar",
"html": "<div class=\"label\">…</div>",
"widthMm": 100,
"heightMm": 100,
"copy": 1,
"copies": 1,
"preview": false,
"voided": false,
"compact": null
}
],
"missing": []
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | The sheets. |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 403 | Forbidden | The member who created this key may not do this (the role lacks the permission), or the workspace may not. |
| 404 | Not Found | No order with that id belongs to your workspace, or the booking is not one of this order's. |
| 503 | Service Unavailable | The order service or API-key verification is temporarily unavailable. Retry shortly. |
### Cancel the booking
`DELETE https://api-sandbox.parcelradar.io/api/partner/v1/orders/{id}/pickup/{pickupId}`
Cancel the courier collection and every carton's shipment. Idempotent. Allowed until the booking's cancelDeadline; never once collected.
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `cancelled` | boolean | ✓ | | | true. |
**Response example**
```json
{
"cancelled": true
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | Cancelled. |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 403 | Forbidden | The member who created this key may not do this (the role lacks the permission), or the workspace may not. |
| 404 | Not Found | No order with that id belongs to your workspace, or the booking is not one of this order's. |
| 409 | Conflict | Past the cancel deadline, or already collected. |
| 503 | Service Unavailable | The order service or API-key verification is temporarily unavailable. Retry shortly. |
### Track the first mile
`GET https://api-sandbox.parcelradar.io/api/partner/v1/orders/{id}/pickup/{pickupId}/tracking`
The courier's timeline for this booking, fetched now. `trackNo` picks one carton's number (default: the first).
**Query parameters**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `trackNo` | string | | | | One of this booking's tracking numbers. |
| `lang` | string | | "en", "th" | | The language the courier's feed answers in, where it has one. |
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `events` | array | ✓ | | | { statusCode, statusText, occurredAt, currentLocation, nextLocation, driver }, newest first. |
| `eddMin` | string | | | | Earliest estimated delivery. |
| `eddMax` | string | | | | Latest estimated delivery. |
**Response example**
```json
{
"events": [
{
"statusCode": "PICKED_UP",
"statusText": "Picked up by courier",
"occurredAt": "2026-11-04T07:41:00Z",
"currentLocation": null,
"nextLocation": null,
"driver": null
}
],
"eddMin": null,
"eddMax": null
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | The timeline. |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 403 | Forbidden | The member who created this key may not do this (the role lacks the permission), or the workspace may not. |
| 404 | Not Found | No order with that id belongs to your workspace, or the booking is not one of this order's. |
| 503 | Service Unavailable | The order service or API-key verification is temporarily unavailable. Retry shortly. |
## Tracking & export documents
Follow the order — its public tracking link and timeline — and read the data its export documents print from.
### Get the tracking link
`GET https://api-sandbox.parcelradar.io/api/partner/v1/orders/{id}/tracking`
The order's public tracking page — made to be handed to your customer — and the carriers following it.
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `state` | string | ✓ | "READY", "PENDING", "NONE", "HIDDEN", "DISABLED" | | READY once the link exists; trackingUrl is null until then. |
| `trackingNo` | string | | | | The order's tracking number. |
| `trackingUrl` | string | | | | The public tracking page. |
| `carrierName` | string | | | | The main carrier. |
| `carrierTrackingNo` | string | | | | Its tracking number. |
| `carrierLegs` | array | | | | { eventType, carrierName, trackingNo, watching } per leg. |
**Response example**
```json
{
"state": "READY",
"trackingNo": "PX4K7Q2M9",
"trackingUrl": "https://paxel.app/t/PX4K7Q2M9",
"carrierName": "DHL Express",
"carrierTrackingNo": "1234567890",
"carrierLegs": []
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | The link. |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 403 | Forbidden | The member who created this key may not do this (the role lacks the permission), or the workspace may not. |
| 404 | Not Found | No order with that id belongs to your workspace, or the booking is not one of this order's. |
| 503 | Service Unavailable | The order service or API-key verification is temporarily unavailable. Retry shortly. |
### Get the tracking timeline
`GET https://api-sandbox.parcelradar.io/api/partner/v1/orders/{id}/tracking/timeline`
The checkpoints and events the tracking page shows your customer.
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `trackingNo` | string | | | | The order's tracking number. |
| `trackingUrl` | string | | | | The public tracking page. |
| `checkpoints` | array | ✓ | | | { eventType, name, checkpointStatus, courierName, courierTrackingNo, events[{ name, detail, occurredAt }] }. |
**Response example**
```json
{
"trackingNo": "PX4K7Q2M9",
"trackingUrl": "https://paxel.app/t/PX4K7Q2M9",
"checkpoints": [
{
"eventType": "FIRST_MILE",
"name": "Picked up",
"checkpointStatus": "DONE",
"courierName": "Kerry Express",
"courierTrackingNo": "KEX123456789TH",
"events": [
{
"name": "Picked up by courier",
"detail": null,
"occurredAt": "2026-11-04T07:41:00Z"
}
]
}
]
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | The timeline. |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 403 | Forbidden | The member who created this key may not do this (the role lacks the permission), or the workspace may not. |
| 404 | Not Found | No order with that id belongs to your workspace, or the booking is not one of this order's. |
| 503 | Service Unavailable | The order service or API-key verification is temporarily unavailable. Retry shortly. |
### Get the export documents' data
`GET https://api-sandbox.parcelradar.io/api/partner/v1/orders/{id}/export-documents`
What the order's export documents (commercial invoice, packing list, …) print from: the order, its goods and costs, and each document's template as layout blocks with a page size. Export orders only.
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `exportOrder` | boolean | ✓ | | | Whether the order is an export. |
| `goodsDeclared` | boolean | ✓ | | | Whether the goods lines are filled in. |
| `order` | object | | | | The order as the documents print it. Its route carries exporterOfRecord / importerOfRecord when the order names them. |
| `costs` | array | | | | The cost lines. |
| `templates` | array | | | | { code, blocks, pageWidthMm, pageHeightMm } per document: the ones Parcel Radar has switched on for this order's destination and provider, e.g. "proforma-invoice", "commercial-invoice", "packing-list", "loa". |
**Response example**
```json
{
"exportOrder": true,
"goodsDeclared": true,
"order": {
"orderNo": "RDOR202611000042"
},
"costs": [],
"templates": [
{
"code": "commercial-invoice",
"blocks": [],
"pageWidthMm": 210,
"pageHeightMm": 297
},
{
"code": "packing-list",
"blocks": [],
"pageWidthMm": 210,
"pageHeightMm": 297
}
]
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | The data. |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 403 | Forbidden | The member who created this key may not do this (the role lacks the permission), or the workspace may not. |
| 404 | Not Found | No order with that id belongs to your workspace, or the booking is not one of this order's. |
| 503 | Service Unavailable | The order service or API-key verification is temporarily unavailable. Retry shortly. |
## GPS tracker
Put a Paxel GPS tracker on an order so its tracking page shows where the parcel is: send the serial number printed on the tracker with the order — in the path as its order number (RDOR…, as on the label, any case) or its id. A tracker can be on one order at a time, and an order carries one tracker at a time — either way the second is refused until the first is taken off. The order needs its tracking page first, which it gets at checkout.
### Put a tracker on an order
`PUT https://api-sandbox.parcelradar.io/api/partner/v1/orders/{order}/tracking-device`
Bind the tracker with this serial number to the order's tracking page. The serial must be a Parcel Radar tracker that is activated and on no other order, and the order must carry no other tracker — take that one off first (DELETE). Sending the same tracker again changes nothing. The key's member needs the Orders edit permission.
**Request**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `serialNumber` | string | ✓ | letters and digits, ≤ 64 | | The serial number printed on the tracker, e.g. "220606000473". Letters may be in any case. |
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `orderNo` | string | ✓ | | | The order. |
| `shipmentReady` | boolean | ✓ | | | Whether the order has its tracking page yet. It gets one at checkout; a tracker can be added only after that. |
| `attached` | boolean | ✓ | | | Whether a tracker is on the order now. |
| `serialNumber` | string | | | | The tracker's serial number. null when none is attached. |
| `name` | string | | | | The tracker's model name. |
| `status` | string | | "ACTIVATED", "DEACTIVATED", "EXPIRED" | | The tracker's status. |
| `latitude` | string | | | | Its last reported position, decimal degrees. null until it has reported. |
| `longitude` | string | | | | Its last reported position, decimal degrees. |
| `lastSeen` | string | | ISO-8601 UTC | | When it last reported its position. |
**Request example**
```json
{
"serialNumber": "220606000473"
}
```
**Response example**
```json
{
"orderNo": "RDOR202611000103",
"shipmentReady": true,
"attached": true,
"serialNumber": "220606000473",
"name": "PaXel Tracker (Pro)",
"status": "ACTIVATED",
"latitude": "13.7387779",
"longitude": "100.5670745",
"lastSeen": "2026-11-06T06:17:45Z"
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | The tracker is on the order. |
| 400 | Bad Request | serialNumber is missing or not letters and digits (error.tracking.device.serialInvalid). |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 403 | Forbidden | The member who created this key may not edit orders, or the workspace is a super portal (read-only on orders). |
| 404 | Not Found | No order with that number or id in your workspace (error.order.notfound), or no tracker with that serial number (error.tracking.device.notFound). |
| 409 | Conflict | The tracker is on another order (error.tracking.device.inUse — take it off there first), the order already has another tracker (error.tracking.device.orderHasDevice — take that one off first), the tracker is not activated (error.tracking.device.notActive), the order has no tracking page yet (error.tracking.device.noShipment — check out first), or is cancelled (error.tracking.device.orderClosed). |
| 502 | Bad Gateway | The tracking provider did not answer (error.tracking.paxelUnavailable). Retry shortly. |
| 503 | Service Unavailable | The order service or API-key verification is temporarily unavailable. Retry shortly. |
**Error example**
```json
{
"ok": false,
"status": 409,
"error": "This tracker is already on another order. Take it off that order first.",
"code": "error.tracking.device.inUse"
}
```
### Read the tracker on an order
`GET https://api-sandbox.parcelradar.io/api/partner/v1/orders/{order}/tracking-device`
The tracker on the order now, with its last reported position. attached is false when none is on it. The key's member needs the Orders view permission.
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `orderNo` | string | ✓ | | | The order. |
| `shipmentReady` | boolean | ✓ | | | Whether the order has its tracking page yet. It gets one at checkout; a tracker can be added only after that. |
| `attached` | boolean | ✓ | | | Whether a tracker is on the order now. |
| `serialNumber` | string | | | | The tracker's serial number. null when none is attached. |
| `name` | string | | | | The tracker's model name. |
| `status` | string | | "ACTIVATED", "DEACTIVATED", "EXPIRED" | | The tracker's status. |
| `latitude` | string | | | | Its last reported position, decimal degrees. null until it has reported. |
| `longitude` | string | | | | Its last reported position, decimal degrees. |
| `lastSeen` | string | | ISO-8601 UTC | | When it last reported its position. |
**Response example**
```json
{
"orderNo": "RDOR202611000103",
"shipmentReady": true,
"attached": true,
"serialNumber": "220606000473",
"name": "PaXel Tracker (Pro)",
"status": "ACTIVATED",
"latitude": "13.7387779",
"longitude": "100.5670745",
"lastSeen": "2026-11-06T06:17:45Z"
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | The order's tracker, or attached: false. |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 403 | Forbidden | The member who created this key may not view orders. |
| 404 | Not Found | No order with that number or id in your workspace (error.order.notfound). |
| 502 | Bad Gateway | The tracking provider did not answer (error.tracking.paxelUnavailable). Retry shortly. |
| 503 | Service Unavailable | The order service or API-key verification is temporarily unavailable. Retry shortly. |
### Take the tracker off an order
`DELETE https://api-sandbox.parcelradar.io/api/partner/v1/orders/{order}/tracking-device`
Take the tracker off the order, so it is free for another one. Calling it again, or on an order with no tracker, changes nothing. The key's member needs the Orders edit permission.
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `orderNo` | string | ✓ | | | The order. |
| `shipmentReady` | boolean | ✓ | | | Whether the order has its tracking page yet. It gets one at checkout; a tracker can be added only after that. |
| `attached` | boolean | ✓ | | | Whether a tracker is on the order now. |
| `serialNumber` | string | | | | The tracker's serial number. null when none is attached. |
| `name` | string | | | | The tracker's model name. |
| `status` | string | | "ACTIVATED", "DEACTIVATED", "EXPIRED" | | The tracker's status. |
| `latitude` | string | | | | Its last reported position, decimal degrees. null until it has reported. |
| `longitude` | string | | | | Its last reported position, decimal degrees. |
| `lastSeen` | string | | ISO-8601 UTC | | When it last reported its position. |
**Response example**
```json
{
"orderNo": "RDOR202611000103",
"shipmentReady": true,
"attached": false,
"serialNumber": null,
"name": null,
"status": null,
"latitude": null,
"longitude": null,
"lastSeen": null
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | No tracker is on the order now. |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 403 | Forbidden | The member who created this key may not edit orders, or the workspace is a super portal. |
| 404 | Not Found | No order with that number or id in your workspace (error.order.notfound). |
| 502 | Bad Gateway | The tracking provider did not answer (error.tracking.paxelUnavailable). Retry shortly. |
| 503 | Service Unavailable | The order service or API-key verification is temporarily unavailable. Retry shortly. |
## Wallet top-up
Top up your workspace's prepaid wallet by QR, the way the Member Portal's Wallet menu does: open a QR for an amount, show it to the payer with its countdown, then read the status until it leaves PENDING. The wallet is credited once, the first time the payment is seen — by your status call, the Member Portal, or Parcel Radar's own check every 30 seconds — so a payment still lands if you stop asking. One QR can be open per workspace at a time. On the sandbox environment the QR is a TEST QR: scanning it with a phone camera (or opening its testPayUrl) pays it, with no real money.
### Open a top-up QR
`POST https://api-sandbox.parcelradar.io/api/partner/v1/wallet/topups`
Open a QR that tops up the workspace's prepaid wallet by `amount` THB. Show `qrImageDataUri` (or draw `qrPayload`) to the payer with a countdown from `expiresInSeconds`; the QR can be paid with any Thai banking app for 30 minutes. Then read GET /wallet/topups/{merchantOrderNo} every few seconds until the status leaves PENDING. The key's member needs the Top up wallet permission.
**Request**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `amount` | number | ✓ | 10.00 – 1,000,000.00, ≤ 2 decimals | | The THB amount to add to the prepaid wallet. |
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `merchantOrderNo` | string | ✓ | RDQR… | | The top-up's number. Keep it: read the status with it. |
| `status` | string | ✓ | "PENDING", "SUCCESS", "EXPIRED", "CANCELLED", "FAILED" | | PENDING = the QR can be paid until expiresAt. SUCCESS = paid and credited to the prepaid wallet. EXPIRED / CANCELLED / FAILED = not paid; open a new QR. |
| `amount` | number | ✓ | | | The amount the QR charges, THB. |
| `currency` | string | ✓ | "THB" | | Always THB. |
| `paymentMethod` | string | ✓ | "QR" | | How it is paid. |
| `qrImageDataUri` | string | | data:image/png;base64,… | | The QR as a PNG, ready for an <img src>. Only while PENDING; null after. |
| `qrPayload` | string | | | | The QR's text (Thai QR / PromptPay), to draw the QR yourself. Only while PENDING. On a TEST QR it is the testPayUrl. |
| `expiresAt` | string | | ISO-8601 UTC | | When the QR stops being payable — 30 minutes after it was opened. |
| `expiresInSeconds` | number | ✓ | >= 0 | | The countdown: seconds left until expiresAt, counted by Parcel Radar when it answered (so your users' clocks do not matter). 0 once the top-up is not PENDING. |
| `serverTime` | string | ✓ | ISO-8601 UTC | | Parcel Radar's clock when it answered — pairs with expiresInSeconds. |
| `createdAt` | string | | ISO-8601 UTC | | When the QR was opened. |
| `confirmedAt` | string | | ISO-8601 UTC | | When the payment was credited. null until SUCCESS. |
| `receiptNo` | string | | RDTR… | | The top-up receipt's number. null until SUCCESS. |
| `providerTradeNo` | string | | | | The payment gateway's reference. null until SUCCESS. |
| `mock` | boolean | ✓ | | | true for a TEST QR — the sandbox environment's test gateway (no real money). Always false in production. |
| `testPayUrl` | string | | | | TEST QR only: the public link the QR encodes. Opening it — by scanning the QR with a phone camera, or in any browser, no sign-in — pays the top-up. Forward it to whoever plays the payer. null on a real QR. |
**Request example**
```json
{
"amount": 500
}
```
**Response example**
```json
{
"merchantOrderNo": "RDQR20261104120000123A1B2C3",
"status": "PENDING",
"amount": 500,
"currency": "THB",
"paymentMethod": "QR",
"qrImageDataUri": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUAAAAFACAAAAADo+/p2AAAH…",
"qrPayload": "00020101021230830016A00000067701011201150107536000315080214KB000002171593…6304A1B2",
"expiresAt": "2026-11-04T12:30:00Z",
"expiresInSeconds": 1800,
"serverTime": "2026-11-04T12:00:00Z",
"createdAt": "2026-11-04T12:00:00Z",
"confirmedAt": null,
"receiptNo": null,
"providerTradeNo": null,
"mock": false,
"testPayUrl": null
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | The QR is open (status PENDING). |
| 400 | Bad Request | The amount is missing, below 10.00 (error.wallet.min), above the ceiling (error.wallet.max) or has more than two decimals (error.wallet.decimals); another QR of the workspace is still open (error.wallet.alreadyOpen — pay or cancel it first); or the payment gateway could not open a QR (error.wallet.gateway — retry). |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 403 | Forbidden | The member who created this key may not top up the wallet (the role lacks Top up wallet). |
| 409 | Conflict | The workspace is awaiting approval. |
| 503 | Service Unavailable | The wallet service or API-key verification is temporarily unavailable. Retry shortly. |
**Error example**
```json
{
"ok": false,
"status": 400,
"error": "You already have a top-up waiting for payment.",
"code": "error.wallet.alreadyOpen"
}
```
### Read a top-up's status
`GET https://api-sandbox.parcelradar.io/api/partner/v1/wallet/topups/{merchantOrderNo}`
The top-up's status. While it is PENDING, Parcel Radar asks the payment gateway first, so this call can be the one that credits the wallet; poll every 3–5 seconds while you show the QR. SUCCESS carries the receipt number. A payment the bank confirms a little after the QR expired is still credited: an EXPIRED top-up can turn SUCCESS within about 15 minutes. The key's member needs View wallet.
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `merchantOrderNo` | string | ✓ | RDQR… | | The top-up's number. Keep it: read the status with it. |
| `status` | string | ✓ | "PENDING", "SUCCESS", "EXPIRED", "CANCELLED", "FAILED" | | PENDING = the QR can be paid until expiresAt. SUCCESS = paid and credited to the prepaid wallet. EXPIRED / CANCELLED / FAILED = not paid; open a new QR. |
| `amount` | number | ✓ | | | The amount the QR charges, THB. |
| `currency` | string | ✓ | "THB" | | Always THB. |
| `paymentMethod` | string | ✓ | "QR" | | How it is paid. |
| `qrImageDataUri` | string | | data:image/png;base64,… | | The QR as a PNG, ready for an <img src>. Only while PENDING; null after. |
| `qrPayload` | string | | | | The QR's text (Thai QR / PromptPay), to draw the QR yourself. Only while PENDING. On a TEST QR it is the testPayUrl. |
| `expiresAt` | string | | ISO-8601 UTC | | When the QR stops being payable — 30 minutes after it was opened. |
| `expiresInSeconds` | number | ✓ | >= 0 | | The countdown: seconds left until expiresAt, counted by Parcel Radar when it answered (so your users' clocks do not matter). 0 once the top-up is not PENDING. |
| `serverTime` | string | ✓ | ISO-8601 UTC | | Parcel Radar's clock when it answered — pairs with expiresInSeconds. |
| `createdAt` | string | | ISO-8601 UTC | | When the QR was opened. |
| `confirmedAt` | string | | ISO-8601 UTC | | When the payment was credited. null until SUCCESS. |
| `receiptNo` | string | | RDTR… | | The top-up receipt's number. null until SUCCESS. |
| `providerTradeNo` | string | | | | The payment gateway's reference. null until SUCCESS. |
| `mock` | boolean | ✓ | | | true for a TEST QR — the sandbox environment's test gateway (no real money). Always false in production. |
| `testPayUrl` | string | | | | TEST QR only: the public link the QR encodes. Opening it — by scanning the QR with a phone camera, or in any browser, no sign-in — pays the top-up. Forward it to whoever plays the payer. null on a real QR. |
**Response example**
```json
{
"merchantOrderNo": "RDQR20261104120000123A1B2C3",
"status": "SUCCESS",
"amount": 500,
"currency": "THB",
"paymentMethod": "QR",
"qrImageDataUri": null,
"qrPayload": null,
"expiresAt": "2026-11-04T12:30:00Z",
"expiresInSeconds": 0,
"serverTime": "2026-11-04T12:04:10Z",
"createdAt": "2026-11-04T12:00:00Z",
"confirmedAt": "2026-11-04T12:03:51Z",
"receiptNo": "RDTR202611000042",
"providerTradeNo": "FP2026110412035100017",
"mock": false,
"testPayUrl": null
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | The top-up. |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 403 | Forbidden | The member who created this key may not view the wallet. |
| 404 | Not Found | No top-up with that number belongs to your workspace (error.wallet.topup.notfound). An invoice paid by QR is not a top-up and answers 404 here. |
| 503 | Service Unavailable | The wallet service or API-key verification is temporarily unavailable. Retry shortly. |
**Error example**
```json
{
"ok": false,
"status": 404,
"error": "top-up not found",
"code": "error.wallet.topup.notfound"
}
```
### Cancel a top-up QR
`POST https://api-sandbox.parcelradar.io/api/partner/v1/wallet/topups/{merchantOrderNo}/cancel`
Close a QR nobody paid, so a new one can be opened. Parcel Radar asks the gateway once more first: a payment that already landed is credited and the answer reads SUCCESS — check the status in the answer. Calling it again, or on a settled top-up, changes nothing.
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `merchantOrderNo` | string | ✓ | RDQR… | | The top-up's number. Keep it: read the status with it. |
| `status` | string | ✓ | "PENDING", "SUCCESS", "EXPIRED", "CANCELLED", "FAILED" | | PENDING = the QR can be paid until expiresAt. SUCCESS = paid and credited to the prepaid wallet. EXPIRED / CANCELLED / FAILED = not paid; open a new QR. |
| `amount` | number | ✓ | | | The amount the QR charges, THB. |
| `currency` | string | ✓ | "THB" | | Always THB. |
| `paymentMethod` | string | ✓ | "QR" | | How it is paid. |
| `qrImageDataUri` | string | | data:image/png;base64,… | | The QR as a PNG, ready for an <img src>. Only while PENDING; null after. |
| `qrPayload` | string | | | | The QR's text (Thai QR / PromptPay), to draw the QR yourself. Only while PENDING. On a TEST QR it is the testPayUrl. |
| `expiresAt` | string | | ISO-8601 UTC | | When the QR stops being payable — 30 minutes after it was opened. |
| `expiresInSeconds` | number | ✓ | >= 0 | | The countdown: seconds left until expiresAt, counted by Parcel Radar when it answered (so your users' clocks do not matter). 0 once the top-up is not PENDING. |
| `serverTime` | string | ✓ | ISO-8601 UTC | | Parcel Radar's clock when it answered — pairs with expiresInSeconds. |
| `createdAt` | string | | ISO-8601 UTC | | When the QR was opened. |
| `confirmedAt` | string | | ISO-8601 UTC | | When the payment was credited. null until SUCCESS. |
| `receiptNo` | string | | RDTR… | | The top-up receipt's number. null until SUCCESS. |
| `providerTradeNo` | string | | | | The payment gateway's reference. null until SUCCESS. |
| `mock` | boolean | ✓ | | | true for a TEST QR — the sandbox environment's test gateway (no real money). Always false in production. |
| `testPayUrl` | string | | | | TEST QR only: the public link the QR encodes. Opening it — by scanning the QR with a phone camera, or in any browser, no sign-in — pays the top-up. Forward it to whoever plays the payer. null on a real QR. |
**Response example**
```json
{
"merchantOrderNo": "RDQR20261104120000123A1B2C3",
"status": "CANCELLED",
"amount": 500,
"currency": "THB",
"paymentMethod": "QR",
"qrImageDataUri": null,
"qrPayload": null,
"expiresAt": "2026-11-04T12:30:00Z",
"expiresInSeconds": 0,
"serverTime": "2026-11-04T12:00:00Z",
"createdAt": "2026-11-04T12:00:00Z",
"confirmedAt": null,
"receiptNo": null,
"providerTradeNo": null,
"mock": false,
"testPayUrl": null
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | The top-up after the cancel: CANCELLED, or SUCCESS if it had been paid. |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 403 | Forbidden | The member who created this key may not view the wallet. |
| 404 | Not Found | No top-up with that number belongs to your workspace (error.wallet.topup.notfound). An invoice paid by QR is not a top-up and answers 404 here. |
| 503 | Service Unavailable | The wallet service or API-key verification is temporarily unavailable. Retry shortly. |
### Pay a TEST QR (sandbox environment)
`POST https://api-sandbox.parcelradar.io/api/partner/v1/wallet/topups/{merchantOrderNo}/mock-pay`
Sandbox environment only: have the test gateway pay a TEST QR (`mock: true`) now, or `delaySeconds` from now, so you can test your status handling without a phone. Opening the top-up's `testPayUrl` does the same. The payment lands through the gateway's notification, as a real one does. A real QR is refused and never paid.
**Query parameters**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `delaySeconds` | number | | 0 – 600 | 0 | Seconds until the pretend payer pays. |
**Response**
| Field | Type | Required | Values | Default | Note |
| ----- | ---- | :------: | ------ | ------- | ---- |
| `merchantOrderNo` | string | ✓ | RDQR… | | The top-up's number. Keep it: read the status with it. |
| `status` | string | ✓ | "PENDING", "SUCCESS", "EXPIRED", "CANCELLED", "FAILED" | | PENDING = the QR can be paid until expiresAt. SUCCESS = paid and credited to the prepaid wallet. EXPIRED / CANCELLED / FAILED = not paid; open a new QR. |
| `amount` | number | ✓ | | | The amount the QR charges, THB. |
| `currency` | string | ✓ | "THB" | | Always THB. |
| `paymentMethod` | string | ✓ | "QR" | | How it is paid. |
| `qrImageDataUri` | string | | data:image/png;base64,… | | The QR as a PNG, ready for an <img src>. Only while PENDING; null after. |
| `qrPayload` | string | | | | The QR's text (Thai QR / PromptPay), to draw the QR yourself. Only while PENDING. On a TEST QR it is the testPayUrl. |
| `expiresAt` | string | | ISO-8601 UTC | | When the QR stops being payable — 30 minutes after it was opened. |
| `expiresInSeconds` | number | ✓ | >= 0 | | The countdown: seconds left until expiresAt, counted by Parcel Radar when it answered (so your users' clocks do not matter). 0 once the top-up is not PENDING. |
| `serverTime` | string | ✓ | ISO-8601 UTC | | Parcel Radar's clock when it answered — pairs with expiresInSeconds. |
| `createdAt` | string | | ISO-8601 UTC | | When the QR was opened. |
| `confirmedAt` | string | | ISO-8601 UTC | | When the payment was credited. null until SUCCESS. |
| `receiptNo` | string | | RDTR… | | The top-up receipt's number. null until SUCCESS. |
| `providerTradeNo` | string | | | | The payment gateway's reference. null until SUCCESS. |
| `mock` | boolean | ✓ | | | true for a TEST QR — the sandbox environment's test gateway (no real money). Always false in production. |
| `testPayUrl` | string | | | | TEST QR only: the public link the QR encodes. Opening it — by scanning the QR with a phone camera, or in any browser, no sign-in — pays the top-up. Forward it to whoever plays the payer. null on a real QR. |
**Response example**
```json
{
"merchantOrderNo": "RDQR20261104120000123A1B2C3",
"status": "SUCCESS",
"amount": 500,
"currency": "THB",
"paymentMethod": "QR",
"qrImageDataUri": null,
"qrPayload": null,
"expiresAt": "2026-11-04T12:30:00Z",
"expiresInSeconds": 0,
"serverTime": "2026-11-04T12:04:10Z",
"createdAt": "2026-11-04T12:00:00Z",
"confirmedAt": "2026-11-04T12:03:51Z",
"receiptNo": "RDTR202611000042",
"providerTradeNo": "FP2026110412035100017",
"mock": false,
"testPayUrl": null
}
```
**Response codes**
| Code | Status | Description |
| ---- | ------ | ----------- |
| 200 | OK | Payment simulated (with 0 the answer already reads SUCCESS). |
| 400 | Bad Request | delaySeconds is out of range. |
| 401 | Unauthorized | The X-API-Key header is missing, invalid, revoked, or expired. |
| 404 | Not Found | No top-up with that number belongs to your workspace (error.wallet.topup.notfound). An invoice paid by QR is not a top-up and answers 404 here. |
| 409 | Conflict | Not a TEST QR (error.wallet.mock.notMock — production), or no longer PENDING (error.wallet.mock.notPending). |
| 503 | Service Unavailable | The wallet service or API-key verification is temporarily unavailable. Retry shortly. |