Declare shipment value in 17 currencies
Besides HKD and USD, a shipment can now be declared in 15 more currencies, with the original currency and amounts kept on the order for those currencies (an HKD request is the exception, see below). The new currency values are accepted once multi-currency declaration is enabled on the platform; until then they return 400 `INVALID_FIELD`. Separately from that switch, carriers now always receive the declared value in USD, and this takes effect as soon as this release is deployed, for HKD shipments too.
- added
POST /api/v1/shipments (and the MCP create_shipment tool, which calls it): declared_currency accepts HKD, USD, EUR, GBP, JPY, AUD, CNY, CAD, SGD, NZD, TWD, MXN, BRL, COP, CLP, MYR and THB. For any currency other than HKD, every item must carry unit_price in that currency; an item with only unit_price_hkd, or with both price fields, returns 400 INVALID_FIELD (the same rule as an explicit "USD"). KRW and other currencies are not supported. insured_amount is read in the declared currency. The currency applies to the whole shipment. For USD and the 15 additional currencies the original currency and amounts are stored on the order; an HKD request is the exception described below. - addedBilling stays in HKD. For the 15 additional currencies the HKD billing value is the declared amount converted at two rates frozen when the order is placed: the currency to USD rate, then the USD to HKD rate. Each of the two rates is chosen independently: the platform's daily rate is used, falling back to the monthly average rate, then to the last known good rate (
stale is true when the last known good rate is used); if no rate can be resolved the request returns 503 FX_RATE_UNAVAILABLE, and it is safe to retry with the same Idempotency-Key. - added
POST /api/v1/shipments, GET /api/v1/shipments and GET /api/v1/shipments/{id}: a new optional declared_conversion object, { version, source_currency, source_to_usd: { rate, rate_type, fetched_at, stale }, frozen_at }, holds the currency to USD rate frozen for the order (1 unit of source_currency = rate USD). It is present only when declared_currency is one of the 15 additional currencies and is omitted for HKD, USD and older shipments. declared_fx keeps its meaning on every order: the frozen USD to HKD rate. - changed
declared_currency in shipment responses can now be any of the 17 currencies above. If your client validates it against HKD/USD only, accept the others. - changedThe carrier always receives the declared value in USD, whichever currency you declare in (HKD included). This is independent of the multi-currency switch and takes effect immediately when this release is deployed: a new or re-dispatched HKD shipment is now sent to every carrier in USD, converted at the rate frozen on the order (some carriers previously received HKD). For a shipment in one of the 15 additional currencies the USD value is each unit price converted at the frozen currency to USD rate and rounded to 2 decimal places.
- changedNot affected on the API request side: requests that omit
declared_currency, or send HKD or USD, are accepted, billed and stored exactly as before, including how an omitted declared_currency is read from the price field you use. A request in HKD is still converted to USD at the frozen rate and stored as a USD shipment (declared_currency reads back "USD"), and billing still uses the HKD figure you sent.