Create Daigou Order

Submit a daigou (purchasing agent) order to HioBuy with product and SKU details—typically after Product Details. For marketplace fee preview before third-party checkout, use Order Preview instead.

PUThttps://open.hiobuy.com/api/client/daigou-open/create-order

If your deployment uses a different base URL, replace `https://open.hiobuy.com` accordingly.

Request headers

NameRequiredTypeDescription
X-UuidYesstringMerchant UUID assigned to your account
CurrencyNostringSettlement currency code, e.g. `CNY` (RMB), `USD`. Exchange rates must be configured in the merchant backend.

Request body

NameRequiredTypeDescription
warehouse_idYesstringWarehouse ID
user_idYesstringEnd-customer user ID in your HioBuy integration
shop_idYesstringSeller shop ID
shop_nameYesstringSeller shop name
platformYesstringMarketplace: `taobao`, `1688`, `weidian`
platform_urlYesstringProduct listing URL
nameYesstringProduct title
title_cnNostringChinese product title
goods_amountNostringTotal product amount
freight_feeYesstringDomestic shipping fee. Default: `0`
remarkNostringOrder remark
skusYesarraySKU line items (see below)
addressYesobjectShipping address (see below)
express_line_idNostringInternational shipping line ID

skus[]

NameRequiredTypeDescription
priceYesnumber | stringUnit price for this SKU
platform_skuYesstringMarketplace SKU ID
quantityYesstringQuantity
freight_feeNostringPer-line shipping fee (when applicable)
sku_infoYesobjectSKU metadata (see below)

skus[].sku_info

NameRequiredTypeDescription
shop_idYesstringShop ID
shop_nameYesstringShop name
sku_imgYesstringSKU main image URL
imgsYesarraySKU image URLs
spec_idNostring1688 specification ID (required for 1688)
min_order_quantityNostring1688 minimum order quantity
batch_numberNostring1688 batch quantity
specsNoarrayVariant options (`label`, `value`)
priceRangeListNoarray1688 tiered pricing (`startQuantity`, `price`)

skus[].sku_info.specs[]

NameRequiredTypeDescription
labelYesstringAttribute name (e.g. Color, Size)
valueYesstringAttribute value

address

NameRequiredTypeDescription
receiver_nameYesstringRecipient name
addressYesstringDetailed address
provinceYesstringProvince / state
cityYesstringCity
districtYesstringDistrict
streetNostringStreet
companyYesstringForwarding warehouse or agent company name
postcodeYesstringPostal code
timezoneYesstringTime zone
phoneYesstringPhone number
emailNostringEmail address
country_nameYesstringCountry display name
countryYesobjectCountry object (see below)

address.country

NameRequiredTypeDescription
country_codeYesstringISO country code (e.g. `CN`)
nameYesstringCountry name

Example request

{
  "warehouse_id": "3",
  "user_id": "161037",
  "shop_id": "BBBZSESFJBTCxhL370nJnRUjQ",
  "shop_name": "Example Shop",
  "platform": "1688",
  "platform_url": "https://detail.1688.com/offer/682292125022.html",
  "name": "Product title",
  "title_cn": "商品中文标题",
  "goods_amount": "480",
  "freight_fee": "8",
  "remark": "Order note",
  "skus": [
    {
      "price": "120",
      "platform_sku": "4881544500911",
      "quantity": "2",
      "sku_info": {
        "shop_id": "BBBZSESFJBTCxhL370nJnRUjQ",
        "shop_name": "Example Shop",
        "sku_img": "https://cbu01.alicdn.com/img/ibank/example.jpg",
        "spec_id": "7f74e9dcb448177df9404cb65f6bad1e",
        "min_order_quantity": "2",
        "batch_number": "1",
        "imgs": [
          "https://cbu01.alicdn.com/img/ibank/example.jpg"
        ],
        "specs": [
          {
            "label": "颜色",
            "value": "白色"
          },
          {
            "label": "尺码",
            "value": "XL"
          }
        ]
      }
    }
  ],
  "address": {
    "receiver_name": "Zhang San",
    "address": "Building A, Room 101",
    "province": "广东省",
    "city": "深圳市",
    "district": "龙华区",
    "street": "Tech Park",
    "company": "Forwarding Co.",
    "postcode": "518054",
    "timezone": "0086",
    "phone": "18512345678",
    "email": "user@example.com",
    "country_name": "中国",
    "country": {
      "country_code": "CN",
      "name": "中国"
    }
  }
}

Sample response

{
  "ret": 1,
  "msg": "success",
  "data": {
    "id": 1572,
    "order_sn": "DG646",
    "goods_amount": 3516.52,
    "freight_fee": 58.61,
    "amount": 3575.13,
    "status": 1,
    "status_name": "已付款",
    "skus": [
      {
        "id": 1595,
        "platform_sku": "4881544500911",
        "code": "TG2503310010"
      }
    ],
    "created_at": "2025-03-31 18:23:52"
  }
}
The live response includes warehouse, services, coupons, and more. Only commonly used fields are listed below.

Response fields

Top level

NameTypeDescription
retnumberStatus code. `1` indicates success
msgstringStatus message
dataobjectCreated order

data (key fields)

NameTypeDescription
idintegerInternal order ID
order_snstringDaigou order number
user_idstringEnd-user ID
goods_amountnumberProduct subtotal
freight_feenumberShipping fee
amountnumberOrder total
statusintegerOrder status code
status_namestringOrder status label
currencystringSettlement currency
ratestringExchange rate applied
addressobjectShipping address echoed from request
skusarrayCreated SKU line items
created_atstringCreation timestamp

data.skus[] (line item)

NameTypeDescription
idintegerLine item ID
platform_skustringMarketplace SKU ID
quantityintegerQuantity
pricenumberUnit price
amountnumberLine subtotal
codestringLine item reference code

Related endpoints