Lingxing
切换旧版

添加采购单物流信息

POST/erp/sc/routing/purchase/purchase/addLogistics

接口信息

支持对“待到货”或“已完成”状态的采购单,添加采购单物流信息

API Path请求协议请求方式令牌桶容量
/erp/sc/routing/purchase/purchase/addLogisticsHTTPSPOST1

请求参数

order_snstring必填
采购单号(待到货或已完成状态)
itemsarray<object>必填
物流信息
隐藏子属性
logistics_companystring必填
物流商
logistics_order_nostring必填
物流单号(支持字母、数字、下划线、短划线)

请求示例

{
    "order_sn": "POC240802001",
    "items": [
        {
            "logistics_company": "中通快递",
            "logistics_order_no": "ZT12456789"
        }
    ]
}

返回结果

Json Object

codeinteger必填
状态码,0 成功
示例 0
messagestring必填
响应消息
示例 操作成功
error_detailsarray<any>必填
错误信息
request_idstring必填
请求链路id
示例 8DFEE1CA-EC9B-F401-5D41-9F95251D5D50
response_timestring必填
响应时间
示例 2020-09-21 15:48:58
dataarray<any>必填
数据
totalinteger必填
示例 &nbsp;
{
    "code": 0,
    "message": "success",
    "error_details": [],
    "request_id": "8DFEE1CA-EC9B-F401-5D41-9F95251D5D50",
    "response_time": "2021-11-12 12:41:04",
    "data": [],
    "total": 0
}