修改入库单
1、功能名称:修改入库单
2、功能描述:修改入库单
3、请求地址:https://ssl.glitzcloud.com/agent/v1/asn/storage/modify
测试地址:http://gztest.glitzcloud.com/agent/v1/asn/storage/modify
4、请求方式:POST
5、请求参数
| 名称 | 必填 | 类型 | 示例值 | 描述 |
|---|---|---|---|---|
| store_name | 是 | String | The Warehouse USA | 仓库名称 |
| storage_sn | 是 | String | GCI17031600002 | 入库单号 |
| weight | 否 | Float | 0.08 | 申报重量(kg) |
| length | 否 | Float | 2.13 | 申报长(cm) |
| width | 否 | Float | 3.12 | 申报宽(cm) |
| height | 否 | Float | 1.32 | 申报高(cm) |
| container_no | 否 | String | C156415621 | 箱子编号,商家自行定义 |
| seal_no | 否 | String | C56145621 | 封号,商家根据实际箱封号如实填写 |
| track_num | 否 | String | 5645621 | tracking #,如果source_type为FBA TRANSFER,必填,并且不能和以往的订单有重复 |
| etd | 否 | Date | 2016-08-15 | 预计离港时间 |
| eta | 否 | Date | 2016-08-15 | 预计到港时间,如果填写必须 小于等于schedule_time |
| schedule_time | 否 | Date | 2016-08-15 | 预计到达时间 |
| shipping_time | 否 | Date | 2016-08-15 | 发货时间 |
| carton_type | 否 | Integer | 1 | 箱子类型,1 20GP ,2 40GP,3 40HQ,4 45HQ,5 LCL,6 pallet,7 carton 8 pcs |
| carton_count | 否 | Integer | 1 | 箱子数量,如果选择了20GP到45HQ的海柜数字仅为1;如果是pallet,carton,pcs,可以输入自己需要的数量 |
| source_type | 否 | String | ||
| carrier | 否 | String | UPS,USPS,FEDEX | 承运商,物流公司 |
| products | 否 | json | [ { "product_sn":"string", "exp_carton_qty": 0, "exp_piece_qty": 0, "container_max_qty": 0 } ] | 产品列表,数组json格式 |
6、请求示例
array(
'format'=>'json',
'apikey'=>'85082f5f62a811e684f500163e06045f',
'randoms'=>1234,
'sign'=>'656d6fbe6b7dec6c2e77ffe27f04bd6d',
'store_name' => 'The Warehouse USA',
'storage_sn' => 'GCI17031600002',
'length' => 2.54,
'width' => 2.54,
'height' => 2.54,
'weight' => 0.02,
'container_no' => 'C123456',
'seal_no' => 'S123456',
'eta' => '2016-08-15',
'reference_no' => 'R123456',
'carton_type' => 1,
'carton_count' => 1,
'source_type' => 'NORMAL ASN',
'carrier' => 'UPS',
'products' => '[{"product_sn":"Amy001","exp_carton_qty":"1","exp_piece_qty":"4"},{"product_sn":"AMY002","exp_carton_qty":"2","exp_piece_qty":"6"}]'
);
7、返回格式:JSON
8、返回示例:
正确时的返回JSON数据包如下:
{"status":200,"reqMsg":"ok","result":{"asn_no":"20170703001","storage_sn":"GCI17070300001"}}-
错误时的返回JSON数据包如下:
{"status":"2028","reqMsg":"Inbound NO. doesn't exist","result":[]}
