查询指定日期入库单信息

1、功能名称:查询指定日期入库单信息

2、功能描述:查询指定日期入库单信息

3、请求地址:https://ssl.glitzcloud.com/agent/v1/asn/storage/getrecord

      测试地址:http://gztest.glitzcloud.com/agent/v1/asn/storage/getrecord

4、请求方式:POST

5、请求参数

名称 类型 必填 示例值 更多示例 描述
store_name String The Warehouse USA 仓库名称
date String 2017-08-22 2017,2017-02,2017-08-22,2017-08-22 08:00:00 2017(2017-08-22当天的日期),2017-02(2017-02-01),2017-08-22 08:00:00(2017-08-22)

6、请求示例

           array(
                    'format'=>'json',
                    'apikey'=>'85082f5f62a811e684f500163e06045f',
                    'randoms'=>1234,
                    'sign'=>'656d6fbe6b7dec6c2e77ffe27f04bd6d',
                    'store_name'=>'The Warehouse USA',
                    'date'=>'2017-08-21',
             );
        

7、返回格式:JSON

8、返回示例:

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

{"status":200,"reqMsg":"ok","result":[{"sn":"GCI17082200001","status":"Reconciled","receive_time":"2017-08-22 15:14:06","info":[{"product_sn":"testk833","exp_piece_qty":"33","act_piece_qty":"33","good_qty":"33","bad_qty":0},{"product_sn":"testk822","exp_piece_qty":"22","act_piece_qty":"22","good_qty":"22","bad_qty":0}]},{"sn":"GCI17082200002","status":"Pending","receive_time":"","info":[{"product_sn":"testk822","exp_piece_qty":"22","act_piece_qty":null,"good_qty":null,"bad_qty":0},{"product_sn":"testk833","exp_piece_qty":"33","act_piece_qty":null,"good_qty":null,"bad_qty":0}]},{"sn":"GCI17082200003","status":"Pending","receive_time":"","info":[{"product_sn":"testk833","exp_piece_qty":"3","act_piece_qty":null,"good_qty":null,"bad_qty":0},{"product_sn":"testk822","exp_piece_qty":"5","act_piece_qty":null,"good_qty":null,"bad_qty":0}]},{"sn":"GCI17082200004","status":"Pending","receive_time":"","info":[{"product_sn":"EZX002","exp_piece_qty":"20","act_piece_qty":null,"good_qty":null,"bad_qty":0},{"product_sn":"EZX001","exp_piece_qty":"10","act_piece_qty":null,"good_qty":null,"bad_qty":0}]},{"sn":"GCI17082200005","status":"Pending","receive_time":"","info":[{"product_sn":"testk1","exp_piece_qty":"1","act_piece_qty":null,"good_qty":null,"bad_qty":0}]}]}

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

{"status":2045,"reqMsg":"Invalid DateFormat","result":[]}

9、返回参数说明:

参数 类型 示例值 描述
sn String GCI16091800002 入库单号
status String Reconciled 入库单状态
Pending:待入库
Received:已收货
Cancelled:已取消
Reconciled:已完成
receive_time String 2017-07-01 12:10:11 收货时间
product_sn String testk833 产品编号
exp_piece_qty Integer 10 产品预报数量
act_piece_qty Integer 9 产品实际数量
good_qty Integer 5 产品合格数量
bad_qty Integer 4 产品不合格数量

全局返回码说明