Inbound notice (create)

상품 조회는 실제 데이터를 반환합니다. 주문 미리보기와 배송 견적은 주문 생성이나 결제 없이 비용을 예상합니다. 구매 주문 생성은 실제 업무 주문을 만들며 구매 및 운송장 결제는 실제 자금을 사용할 수 있습니다. 입고 통지는 창고 기록을 만들고 운송장 생성은 창고 작업을 요청합니다. 운영 활성화, 주문, 금액과 계정을 확인하세요. 업무 식별자와 문서의 Idempotency-Key를 저장하고 결과가 불확실하면 재결제 전에 기존 작업을 조회하세요.

Identity: Create returns a single package_id (pkg_*). There is no separate inbound_id.

POST /v1/fulfillment/inbounds/create — submit an inbound notice so the warehouse can expect a domestic shipment (tracking number + items + optional value-added services).

Requires warehouse fulfillment (Portal authorization). Self-fulfillment → 403 FULFILLMENT_MODE_NOT_SUPPORTED.

Scope: shipment:create.

Request body

{
  "tracking_number": "YT1234567890",
  "carrier": "YTO",
  "package_count": 1,
  "total_value": 128.5,
  "currency": "CNY",
  "external_order_id": "MY-ORD-001",
  "supplier_order_id": "1688-xxx",
  "remark": "fragile",
  "sender": {
    "name": "Zhang San",
    "phone": "13800000000",
    "country_code": "CN",
    "province": "Zhejiang",
    "city": "Hangzhou",
    "district": "Yuhang",
    "postcode": "310000",
    "address": "…"
  },
  "items": [
    {
      "name": "Cotton T-Shirt",
      "quantity": "2",
      "unit_price": "64.25",
      "currency": "CNY",
      "hs_code": "610910",
      "image_url": "https://example.com/t.jpg"
    }
  ],
  "services": [
    {
      "service_code": "photo",
      "quantity": 1
    }
  ]
}
FieldRequiredNotes
tracking_numberYesDomestic carrier tracking number
package_countYesNumber of physical packages
total_valueYesDeclared total value (face value, not fen)
currencyNoDefault CNY. Supported: CNY, USD, KRW
items[]YesLine items; quantity and unit_price are strings
services[]No{ service_code, quantity } — inbound-stage VAS only
external_order_idNoUnique per app
carrier / sender / remark / supplier_order_idNoOptional metadata

Money: Submit face amounts + currency. Unlike shipment routes, this response does not use monetary_unit: CNY_minor and Gateway does not convert to fen.

Success response

HTTP 201:

{
  "success": true,
  "tracking_number": "YT1234567890",
  "status": "pending_receive",
  "package_count": 1,
  "external_order_id": null,
  "created_at": "2026-08-16T07:00:00.000Z",
  "request_id": "req_…"
}

Cancel inbound

DELETE /v1/fulfillment/inbounds/{id} accepts the HioBuy package ID or a developer external package/order identifier supported by the warehouse. The value is forwarded unchanged as packageNum. Numeric-only values are reserved for internal IDs; prefix developer identifiers, for example pkg_MY-ORD-001.

Errors

See Errors — Inbound / VAS group. Gate code: FULFILLMENT_MODE_NOT_SUPPORTED (maps draft FULFILLMENT_NOT_ENABLED).

Get Support

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

Email support