Portal authorization

After your app is approved, authorize channels in the developer portal  before calling procurement or fulfillment APIs.

There are two layers of choice:

  1. Fulfillment mode — whether HioBuy warehouses and ships internationally
  2. Procurement mode (only when warehouse fulfillment is on) — who buys on Taobao / 1688 / Weidian

Fulfillment mode (per app)

ModeWho holds warehouse bindingInternational shipping (/v1/fulfillment/*)
Self fulfillment (default)None — you handle logistics yourselfNot available (403)
HioBuy warehouseOne warehouse developer codeAvailableFulfillment overview

Public API paths stay the same (/v1/products/*, /v1/orders/*, …). The Gateway routes by your app’s modes.

Procurement under warehouse fulfillment

When you choose HioBuy warehouse, procurement supports two options. International warehousing and shipping work in both; only who places marketplace purchase orders differs.

Procurement modeWho buys on the marketplaceChannel tokens/v1/orders/*/v1/products/*
HioBuy procurement (default)HioBuy buys for youIssued by warehouse authorize; Gateway stores themRouted via HioBuy warehouse procurementGateway uses stored tokens → marketplace
Self procurementYou buy with your own accountsYou manage OAuth / credentials in the portalGateway → marketplace with your tokens (same as classic self flow)Same — your tokens
CapabilityHioBuy procurementSelf procurement
Bind warehouse code onceYesYes
Warehouse inbound / packages / VAS / returnsYesYes
International shipments & walletYesYes
Marketplace OAuth managed by youNoYes (per channel)

Switching between these two procurement options may clear or re-issue channel tokens; the portal will ask you to confirm.

Self fulfillment (no HioBuy warehouse)

For each enabled channel (Taobao, 1688, Weidian, …):

  1. Open Authorizations → select app → Authorize
  2. Paste OAuth credentials or complete OAuth when available
  3. Portal shows status, account name, expiry — never full tokens

/v1/fulfillment/* is not available in this mode.

HioBuy warehouse fulfillment (setup)

Plans: HioBuy warehouse fulfillment and dedicated support require a paid plan (Growth / Enterprise). Free plans include self-service documentation and Sandbox access. Dedicated integration and fulfillment support are available on paid plans.

  1. Obtain a warehouse developer code from HioBuy ops
  2. Portal → Authorizations → choose Use HioBuy fulfillment
  3. Pick procurement mode: HioBuy procurement or self procurement
  4. Enter the warehouse code once — binding is app-level (not per channel)
  5. If HioBuy procurement: portal lists each channel’s status and expires_at (tokens are not visible or editable)
  6. If self procurement: complete normal per-channel OAuth / credential entry yourself; warehouse binding only unlocks fulfillment APIs

Switching back to self fulfillment clears the warehouse binding; you will be prompted to confirm.

What you never send in API calls

  • Marketplace access tokens
  • Warehouse developer code (Gateway attaches it server-side)

Only Authorization: Bearer hio_live_… (or hio_test_…) on https://api.hiobuy.com.

Next: Fulfillment overview · Orders

Get Support

Need integration help? Contact Developer Support at support@hiobuy.com · Response within 1–2 business days

Email support