Value conventions
- Money is a string combining amount and ISO 4217 currency code:
"150 SGD","2491 JPY". Amounts allow up to 2 decimal places. - Measurements are strings combining value and unit:
"15 cm","1.5 kg". Dimensions are converted and stored in centimeters. - Timestamps are ISO 8601; a value without timezone is interpreted as UTC. See timestamps.
- Phone numbers use
+followed by country calling code and number:+6598765432. - Country can be given as
country(a name, resolved through a country identifier) orcountry_code(ISO 3166-1 alpha-2) — either one. - Identifiers (
shipment_id,order_id,document_id,tracking_number) acceptA–Z a–z 0–9 _ - .with no spaces (tracking_numberalso accepts/and requires at least 6 characters including one digit).
Shipment
Address
Line item
Shipping cost
All entries in one request must use the same currency.
Linked shipment
Events retrieved for a linked shipment are incorporated into the main shipment’s events.