添加出库单附件

1、功能名称:添加出库单附件

2、功能描述:添加出库单附件

3、请求地址:https://ssl.glitzcloud.com/agent/v1/orders/order/addAttachment

      测试地址:http://gztest.glitzcloud.com/agent/v1/orders/order/addAttachment

4、请求方式:POST

5、请求参数

名称 类型 必填 示例值 描述
outflow_sn String Amy Yao-keigo202009170005 出库单编号
model String outbound 文件model, 例如:快递面单shipping_label、包裹清单packing_list、其他other 等
attachment Object {"name": "12312.pdf","content": "base64content"} 当前要上传的附件(base64编码) 无须参与签名

6、请求示例

        {
          "format": "json",
          "apikey": "d661bb3e817111e693f100163123045f",
          "outflow_sn": "test-order-number",
          "model": "outbound",
          "attachment": {
            "name": "12312.pdf",
            "content": "base64content"
          }
        }
        

7、返回格式:JSON

8、返回示例:

正确时的返回JSON数据包如下:

        {
            "status": 200,
            "reqMsg": "ok",
            "result": {
                "outflow_id": "12312314",
                "outflow_sn": "test-order-number",
                "attach_ids": "611165162"
            }
        }
        

错误时的返回JSON数据包如下:

        {
            "status": 2582,
            "reqMsg": "Invalid Outflow Sn",
            "result": []
        }
        

9、返回参数说明:

参数 类型 示例值 描述
outflow_id String 11466 出库单ID
outflow_sn String Amy Yao-keigo202009170005 出库单编号
attach_ids array [{"Chrysanthemum.jpg": "2824"}] 上传成功后, 附件名对应附件ID

全局返回码说明