International fulfillment overview
Product reads retrieve real data. Order preview and shipping quotes estimate costs without creating or paying an order. Procurement creation creates a real business order; procurement payment and shipment payment can spend real funds. Inbound notices create warehouse records, and shipment creation requests warehouse processing. Confirm production activation, the intended order, amount and account before each business mutation. Persist business identifiers and use
Idempotency-Keywhere documented; query the existing result after an uncertain response instead of submitting a new payment.
One Channel, One Seller, One Order
Each purchase order can contain multiple products or SKUs, but all items must belong to the same channel and seller.
If your customer purchases products from different sellers or channels, your application must split them into separate purchase orders before calling the HIOBuy Order API.
HIOBuy does not automatically split purchase orders and does not expose a Batch Order API for this workflow.
See purchase creation and manual procurement for seller identity, correct/incorrect examples, error codes, and Warehouse responsibilities. Procurement orders remain separate when their packages are later consolidated into one shipment. Persist every returned order_list[].order_id; top-level order_id is only the first ID.
/v1/fulfillment/* covers international logistics after goods are in the HIOBuy warehouse. Domestic buying: Procurement orders.
Requires warehouse fulfillment on your app (Portal authorization). Self-fulfillment apps get 403 FULFILLMENT_MODE_NOT_SUPPORTED.
For inbound create, shipment create, and shipment pay, the optional Idempotency-Key header protects retries and concurrent calls. Use a new key for each logical operation and reuse it only for the identical request. Duplicate conflicts may include the existing package, shipment, or payment in error.details.existing_resource.
Monetary unit
Standard JSON responses on money-bearing fulfillment routes include top-level monetary_unit: "CNY_minor". All { amount, currency } fields are CNY fen (1 yuan = 100 fen). See Fulfillment response models.
API availability
Production warehouse access requires an active eligible paid subscription, approved launch application and successfully activated production account. HIOBuy manages marketplace credentials and warehouse binding. Follow the developer center fulfillment guide; new integrations do not obtain warehouse codes or perform personal marketplace OAuth.
| Endpoint | Fulfillment |
|---|---|
/v1/fulfillment/inbounds/create | Available after production activation |
/v1/fulfillment/packages | Available after production activation |
/v1/fulfillment/packages/{package_id} | Available after production activation |
/v1/fulfillment/packages/{package_id}/tracking | Available after production activation |
/v1/fulfillment/unclaimed-packages | Available after production activation |
/v1/fulfillment/locations | Available after production activation |
/v1/fulfillment/value-added-services | Available after production activation |
/v1/fulfillment/shipments | Available after production activation |
/v1/fulfillment/shipments/{id}/intercept | Available after production activation |
/v1/fulfillment/shipping/channels | Available after production activation |
/v1/fulfillment/shipping/quotes | Available after production activation |
/v1/fulfillment/balance | Available after production activation |
/v1/fulfillment/transactions | Available after production activation |
/v1/fulfillment/returns | Production implementation pending |
/v1/fulfillment/service-requests | Production implementation pending |
/v1/fulfillment/invoices | Production implementation pending |
/v1/fulfillment/transactions/{transaction_id} | Production implementation pending |
End-to-end flow
- Create procurement order → seller ships to warehouse
or Inbound notice for parcels you already control - Package detail / tracking → warehouse measurements / exceptions / VAS / fulfillment timeline
or Order detail →tracking_numbers[]when inbound from procurement - Shipping channels for capabilities, then Shipping quotes → pick
quotes[].channel.code - Create shipment →
id/order_sn(PENDING) - Warehouse packing & final measurement →
boxes[], final weight / dimensions, final freight - Shipment ready for payment (
WAIT_PAYMENT) → see detail; paying earlier returns409 SHIPMENT_NOT_READY_FOR_PAYMENT - Pay shipment → deduct wallet
- List / detail → lightweight rows, or boxes / packing files /
timeline/ first/last-mile numbers
Optional: Intercept if you need to hold aWAIT_SHIP/SHIPPEDshipment - International tracking → scan events
Endpoint guide
| Topic | Path | Doc |
|---|---|---|
| Inbound notice | POST .../inbounds/create | Inbounds |
| Package detail / tracking / unclaimed | GET .../packages/* · unclaimed-packages | Packages |
| Returns | POST/GET .../returns · confirm/cancel | Returns |
| Locations | GET .../locations | Locations |
| Value-added services | GET .../value-added-services | VAS |
| Service requests | POST/GET .../service-requests · confirm | Service requests |
| Shipping channels | GET .../shipping/channels | Shipping channels |
| Shipping quotes | POST .../shipping/quotes | Shipping quotes |
| Create / pay / cancel / intercept | POST .../shipments/create · {id}/pay · {id}/cancel · {id}/intercept | Shipments |
| Shipment list | GET .../shipments | Shipments · list |
| Shipment detail | GET .../shipments/{id} | Shipments · detail |
| International tracking | GET .../shipments/{id}/tracking | Tracking |
| Wallet balance | GET /v1/fulfillment/balance | Balance |
| Response fields | — | Fulfillment response models |
| Item attributes | GET .../item-attributes | Freight estimate |
Warehouse-mode procurement
/v1/orders/* paths unchanged; Gateway forwards to HIOBuy. Product APIs still call marketplaces directly.
Domestic trace: order logistics trace (proxied in warehouse mode).
Lifecycle diagrams
State diagrams: Packages, Shipments, Returns.
Errors
FULFILLMENT_MODE_NOT_SUPPORTED, SHIPMENT_CREATE_EXCEPTION, SHIPMENT_CREATE_FAILED, PARCEL_NOT_FOUND, EXTERNAL_ORDER_ID_ALREADY_EXISTS, SHIPMENT_NOT_READY_FOR_PAYMENT, SHIPMENT_ALREADY_PAID, INSUFFICIENT_BALANCE, NOT_FOUND (SHIPMENT_NOT_EXISTS), intercept codes (SHIPMENT_NOT_FOUND, SHIPMENT_NOT_INTERCEPTABLE, SHIPMENT_INTERCEPTION_ALREADY_REQUESTED) — see Errors and Shipments.
Production warehouse access requires an active eligible paid subscription, approved launch application and successfully activated production account. HIOBuy manages marketplace credentials and warehouse binding. Follow the developer center fulfillment guide; new integrations do not obtain warehouse codes or perform personal marketplace OAuth.
Get Support
Need integration help? Contact Developer Support at support@hiobuy.com · Response within 1–2 business days