Ủy quyền Portal

Sau khi app của bạn được approved, hãy ủy quyền kênh trong developer portal trước khi gọi API procurement hoặc fulfillment.

hai lớp lựa chọn:

  1. Fulfillment mode — HioBuy có lưu kho và vận chuyển quốc tế hay không
  2. Procurement mode (chỉ khi bật warehouse fulfillment) — ai mua trên Taobao / 1688 / Weidian

Fulfillment mode (theo app)

Chế độAi giữ warehouse bindingVận chuyển quốc tế (/v1/fulfillment/*)
Self fulfillment (mặc định)Không — bạn tự xử lý logisticsKhông khả dụng (403)
HioBuy warehouseMột warehouse developer codeKhả dụngFulfillment overview

Đường dẫn Public API giữ nguyên (/v1/products/*, /v1/orders/*, …). Gateway định tuyến theo mode của app.

Procurement trong warehouse fulfillment

Khi chọn HioBuy warehouse, procurement hỗ trợ hai tùy chọn. Lưu kho và vận chuyển quốc tế hoạt động ở cả hai; chỉ khác ai đặt đơn mua trên marketplace.

Procurement modeAi mua trên marketplaceChannel tokens/v1/orders/*/v1/products/*
HioBuy procurement (mặc định)HioBuy mua hộ bạnCấp qua warehouse authorize; Gateway lưuĐịnh tuyến qua HioBuy warehouse procurementGateway dùng token đã lưu → marketplace
Self procurementBạn mua bằng tài khoản của mìnhBạn tự quản lý OAuth / credentials trong portalGateway → marketplace với token của bạn (giống luồng self cổ điển)Tương tự — token của bạn
Khả năngHioBuy procurementSelf procurement
Bind warehouse code một lần
Warehouse inbound / packages / VAS / returns
International shipments & wallet
Marketplace OAuth do bạn quản lýKhông (theo từng kênh)

Chuyển giữa hai tùy chọn procurement có thể xóa hoặc cấp lại channel tokens; portal sẽ yêu cầu bạn xác nhận.

Self fulfillment (không dùng kho HioBuy)

Với mỗi kênh được bật (Taobao, 1688, Weidian, …):

  1. Mở Authorizations → chọn app → Authorize
  2. Dán thông tin OAuth hoặc hoàn tất OAuth khi khả dụng
  3. Portal hiển thị trạng thái, tên tài khoản, thời hạn — không bao giờ hiển thị đầy đủ token

/v1/fulfillment/* không khả dụng trong chế độ này.

HioBuy warehouse fulfillment (thiết lập)

  1. Lấy warehouse developer code từ ops HioBuy
  2. Portal → Authorizations → chọn Use HioBuy fulfillment
  3. Chọn procurement mode: HioBuy procurement hoặc self procurement
  4. Nhập warehouse code một lần — binding theo app (không theo từng kênh)
  5. Nếu HioBuy procurement: portal liệt kê trạng thái từng kênh và expires_at (token không hiển thị hoặc chỉnh sửa được)
  6. Nếu self procurement: tự hoàn tất OAuth / nhập credential theo từng kênh như bình thường; warehouse binding chỉ mở khóa fulfillment APIs

Chuyển lại self fulfillment sẽ xóa warehouse binding; bạn sẽ được yêu cầu xác nhận.

Những gì bạn không bao giờ gửi trong API calls

  • Marketplace access tokens
  • Warehouse developer code (Gateway tự gắn phía server)

Chỉ dùng Authorization: Bearer hio_live_… (hoặc hio_test_…) trên https://api.hiobuy.com.

Tiếp theo: Fulfillment overview · Orders

Get Support

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

Email support