出库管理
添加出库单附件
上传出库附件。
生产环境
https://ssl.glitzcloud.com/agent/v1/orders/order/addAttachment测试环境
http://gztest.glitzcloud.com/agent/v1/orders/order/addAttachment说明
1、功能名称:添加出库单附件
2、功能描述:添加出库单附件
请参阅鉴权签名说明。
请求参数
| 名称 | 类型 | 必填 | 示例值 | 描述 |
|---|---|---|---|---|
| outflow_sn | String | 是 | Amy Yao-keigo202009170005 | 出库单编号 |
| model | String | 是 | outbound | 文件model, 例如:快递面单shipping_label、包裹清单packing_list、其他other 等 |
| attachment | Array | 是 | {"name": "12312.pdf","content": "base64content"} | 当前要上传的附件(base64编码) 无须参与签名 |
返回字段
| 参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| outflow_id | String | 11466 | 出库单ID |
| outflow_sn | String | Amy Yao-keigo202009170005 | 出库单编号 |
| attach_ids | Array | [{"Chrysanthemum.jpg": "2824"}] | 上传成功后, 附件名对应附件ID |
示例
请求示例
{
"format": "json",
"apikey": "d661bb3e817111e693f100163123045f",
"outflow_sn": "test-order-number",
"model": "outbound",
"attachment": {
"name": "12312.pdf",
"content": "base64content"
}
}返回示例
{
"status": 200,
"reqMsg": "ok",
"result": {
"outflow_id": "12312314",
"outflow_sn": "test-order-number",
"attach_ids": "611165162"
}
}示例 3
{
"status": 2582,
"reqMsg": "Invalid Outflow Sn",
"result": []
}