Qeasy Cloud
Get Started
POSThttps://open-api.hupun.com/api/erp/opentrade/list/tradesAppKey + Secret MD5 签名

Trade List Query (/erp/opentrade/list/trades)

万里牛 ERP 销售订单查询接口,按单号/时间等条件分页拉取订单信息,是订单同步、发货状态跟踪与财务对账的取数口。

## Overview /erp/opentrade/list/trades queries sales orders inside Hupun ERP (the open-trade domain), returning headers, item lines, amounts and statuses. As an omnichannel order hub aggregating 30+ marketplaces, Hupun exposes those orders in one unified structure through this API — ideal for syncing into Kingdee/Yonyou as sales orders and receivables, or into a reconciliation store. ### Request essentials 1. Build _app/_t/_sign per the call convention; submit business parameters as form fields. 2. Paginate with page and limit; bill_code pins the query to one order. 3. Time/status filters follow the official docs; for incremental sync advance a modify-time window with a few minutes of overlap. 4. The data array carries internal bill number, platform order number, shop, status, paid amount and item lines (SKU, quantity, price); fulfillment tracking pairs with the order-flow API (/erp/opentrade/trade/commit) to read the state machine. ### Integration notes - After Hupun order splitting, one platform number may map to several internal bills — key idempotency on the internal bill number and keep the platform number as the join key. - Promotion peaks demand window slicing + retry + idempotent writes; the Qeasy blueprint ships all three by default. ### Fulfillment and after-sales linkage Later fulfillment events (shipment, receipt) flow back into the order status, while after-sales documents (refunds and returns) live in a separate domain and must be pulled through their own APIs, then joined on the original order number. Run matching only after forward orders, after-sales and platform settlement data are all present — otherwise the engine flags missing-after-sales as amount discrepancies and floods the work queue.

Code examples

curl
curl -X POST "https://open-api.hupun.com/api/erp/opentrade/list/trades" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "_app=AK&_t=1780000000&_sign=SIGN&page=1&limit=50"

Error codes

CodeMessageMeaning
0success成功
sign_error签名验证失败重算 _sign,核对 Secret 与时间戳
param_error业务参数错误检查分页与过滤参数取值