Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

往订单中添加完产品后,我们就可以将订单的状态修改为待处理,待处理即表示提交给仓库处理。

...

接口说明:

URL
http://test.birdsystem.com/client/Consignment/Batch-Update-Status

method

post

body

form 参数如下:

ids

订单ID

/

接口功能
修改到"待处理"

支持格式JSON开发人员
请求方式POST发布日期

参数说明:

参数必选说明类型
idsY需要修改订单状态的的订单ID(与sales_references, custom_identity_reference三选一)VARCHAR(255)
,多个ID以下划线"_"分隔
status
目标状态
Y
 必填
订单状态VARCHAR(10)
, 固定为PENDING
sales_referencesY销售跟踪号
(与ids, custom_identity_reference三选一)VARCHAR(
50), 多个跟踪号以竖线"|"分割
255)
custom_identity_referencesY客户唯一识别码
(与ids, sales_references三选一)VARCHAR(
50), 多个跟踪号以竖线"|"分割返回
255)

接口请求示例

Headers

content-type

application/json

api_key

248ccb90dff2b99465b54c113765360c

company_id

36


Code Block
languagexml
title-H 'content-type: application/json
linenumberstrue
collapsetrue
{
    "ids": 2012090360000378,
    "status": "PENDING"
}

接口返回示例:

Code Block
language

...

xml
linenumberstrue
collapsetrue
{
    "success": true,
    "refresh": false,
    "moduleName": "client"
}

样例返回异常示例:(本地订单修改状态前,需先给订单添加产品)

# api_key和company_id和提交数据中的delivery_service_id需要替换成实际数据 curl -X POST \ https://test.birdsystem.com/client/Consignment/Batch-Update-Status \ -H 'api_key: 248ccb90dff2b99465b54c113765360c' \ -H 'company_id: 36' \ -H 'content-type: application/x-www-form-urlencoded' \ -d 'ids=1904160360000015&status=PENDING'
Code Block
bash
languagexml
firstline#报错原因,本地订单内,没有添加产品
title报错原因,本地订单内,没有添加产品
linenumberstrue
collapsetrue
{
    "success": false,
    "message": "You consignment 2012090360000378 does not have product associated, please add product first before changing the consignment status to Pending."
}