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-Key where 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.

EndpointFulfillment
/v1/fulfillment/inbounds/createAvailable after production activation
/v1/fulfillment/packagesAvailable after production activation
/v1/fulfillment/packages/{package_id}Available after production activation
/v1/fulfillment/packages/{package_id}/trackingAvailable after production activation
/v1/fulfillment/unclaimed-packagesAvailable after production activation
/v1/fulfillment/locationsAvailable after production activation
/v1/fulfillment/value-added-servicesAvailable after production activation
/v1/fulfillment/shipmentsAvailable after production activation
/v1/fulfillment/shipments/{id}/interceptAvailable after production activation
/v1/fulfillment/shipping/channelsAvailable after production activation
/v1/fulfillment/shipping/quotesAvailable after production activation
/v1/fulfillment/balanceAvailable after production activation
/v1/fulfillment/transactionsAvailable after production activation
/v1/fulfillment/returnsProduction implementation pending
/v1/fulfillment/service-requestsProduction implementation pending
/v1/fulfillment/invoicesProduction implementation pending
/v1/fulfillment/transactions/{transaction_id}Production implementation pending

End-to-end flow

  1. Create procurement order → seller ships to warehouse
    or Inbound notice for parcels you already control
  2. Package detail / tracking → warehouse measurements / exceptions / VAS / fulfillment timeline
    or Order detail → tracking_numbers[] when inbound from procurement
  3. Shipping channels for capabilities, then Shipping quotes → pick quotes[].channel.code
  4. Create shipment → id / order_sn (PENDING)
  5. Warehouse packing & final measurement → boxes[], final weight / dimensions, final freight
  6. Shipment ready for payment (WAIT_PAYMENT) → see detail; paying earlier returns 409 SHIPMENT_NOT_READY_FOR_PAYMENT
  7. Pay shipment → deduct wallet
  8. List / detail → lightweight rows, or boxes / packing files / timeline / first/last-mile numbers
    Optional: Intercept if you need to hold a WAIT_SHIP / SHIPPED shipment
  9. International tracking → scan events

Endpoint guide

TopicPathDoc
Inbound noticePOST .../inbounds/createInbounds
Package detail / tracking / unclaimedGET .../packages/* · unclaimed-packagesPackages
ReturnsPOST/GET .../returns · confirm/cancelReturns
LocationsGET .../locationsLocations
Value-added servicesGET .../value-added-servicesVAS
Service requestsPOST/GET .../service-requests · confirmService requests
Shipping channelsGET .../shipping/channelsShipping channels
Shipping quotesPOST .../shipping/quotesShipping quotes
Create / pay / cancel / interceptPOST .../shipments/create · {id}/pay · {id}/cancel · {id}/interceptShipments
Shipment listGET .../shipmentsShipments · list
Shipment detailGET .../shipments/{id}Shipments · detail
International trackingGET .../shipments/{id}/trackingTracking
Wallet balanceGET /v1/fulfillment/balanceBalance
Response fields—Fulfillment response models
Item attributesGET .../item-attributesFreight 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

Email support