Qeasy Cloud
Get Started
GEThttps://api.kingdee.com/jdy/v2/scm/sal_order_listapp-token + X-Api-* 签名头

Sales Order List Query (/jdy/v2/scm/sal_order_list)

金蝶云星辰销售订单列表接口,GET 分页查询销售订单头信息,支持按时间、单据状态过滤,用于订单同步与财务核算取数。

## Overview /jdy/v2/scm/sal_order_list is the Cosmic-Star supply-chain (scm) sales-order list API: a paged GET returning order headers (billno, customer, bill date, amounts, status); entry rows come from the detail endpoint /jdy/v2/scm/sal_order by id. ### Request essentials 1. Auth: exchange an app-token first, then build the X-Api-* headers plus X-GW-Router-Addr per the signing rules (see the auth doc). 2. Pagination: page and page_size (100 or fewer recommended); the total field drives paging. 3. Common filters: bill_no, create_time range, modify_time range (the incremental cursor), bill_status and customer_id. 4. On errcode = 0, data.rows (or data.list by version) holds the orders; normalize currency and tax-inclusive semantics before writing downstream. ### Integration scenarios - After writing private-domain/dealer orders into Cosmic-Star sales orders (reverse direction: POST /jdy/v2/scm/sal_order), pull them back here for verification. - Finance: filter approved orders to build the receivables base table. - Increment on modify_time and use bill_no + entry sequence as the idempotency key into the warehouse. ### Version compatibility Cosmic-Star has two API generations — this page documents the current jdy/v2 gateway and auth. Legacy integrations on the V1 gateway must re-authorize with app_key/app_secret during migration; old V1 tokens are not portable. Plan a credential cutover window so synchronization does not silently stop when the gateway is switched.

Code examples

curl
curl -G "https://api.kingdee.com/jdy/v2/scm/sal_order_list" \
  --data-urlencode "page=1" --data-urlencode "page_size=100" \
  --data-urlencode "modify_time_start=2026-06-01 00:00:00" \
  -H "X-Api-ClientID: xxx" -H "X-Api-TimeStamp: 1780000000000" \
  -H "X-Api-Nonce: 1234567" -H "X-Api-SignHeaders: X-Api-TimeStamp,X-Api-Nonce" \
  -H "X-Api-Auth-Version: 2.0" -H "X-Api-Signature: SIGN" \
  -H "app-token: TOKEN" -H "X-GW-Router-Addr: DOMAIN"

Error codes

CodeMessageMeaning
1030002006授权信息错误app-token 失效,重新换 token
401验签失败X-Api-Signature 错误,按签名规则重算
404接口不存在检查路径与 X-GW-Router-Addr