Skip to content
On this page

6.6 批量获取订单状态

接口说明:

MethodURLContentType
POST/api/restful/order/states/queryapplication/json

请求入参说明:

类型说明是否必须描述
字符串数组必须预下订单号,多个单号以英文逗号分隔;可参考示例代码

返回结果说明:

参数类型说明描述
orderIdstring预下订单编号
stateint状态0:新建5:发货-2:取消-1:拒收1:签收4:退换货中

请求参数示例:

json
[
  "WY20200211002286","XZ20200207001522","WY20191230041606"
]

返回数据示例:

json
{
  "result": [
    {
      "orderId": "WY20200211002286",
      "state": 1
    },
    {
      "orderId": "XZ20200207001522",
      "state": 0
    },
    {
      "orderId": "WY20191230041606",
      "state": 1
    }
  ],
  "success": true,
  "errormsg": "",
  "errorcode": "0",
  "requestId": "5614c765-2379-4231-9aea-db1b852e6d83"
}