文档
测试

3.查询仓间调拨单

POST
https://api.jd.com/routerjson

接口描述

开发者可调用此接口查询仓间调拨单据状态及详情

数据格式及编码

>i ◆ Content_type:application/x-www-form-urlencoded ◆ Accept:application/json ◆ Charset:utf-8

请求参数

参数名
类型
描述
必填
method
string
接口方法名。请填写"jingdong.eclp.ib.queryOutsideMain"
必填
app_key
string
开发者应用app_key
必填
access_token
string
京东账户授权访问令牌码
必填
timestamp
string
请求时间, 京东网关允许误差为10分钟。 示例:2020-09-23 12:23:45
必填
format
string
数据格式。固定值"json"
必填
v
string
接口版本号,固定值“2.0”
必填
sign
string
签名值。签名算法请参考https://easydoc.xyz/doc/85914950/QULSrw7u/EnnJTVOz
必填
360buy_param_json
object
业务系统参数
必填
outsideMainNo
string(50)
eclp系统-仓间调拨单号
必填

响应参数

参数名
类型
描述
必填
jingdong_eclp_ib_queryOutsideMain_responce
object
数据字典
必填
code
string
示例:0
必填
queryOutsideMainResult
object
数据字典
必填
warehouseIdIn
int
示例:179
必填
productCode
string
示例:
必填
boxes
string
示例:{}
必填
outsideStatus
int
示例:20
必填
warehouseIdOut
int
示例:180
必填
chargeMode
string
示例:
必填
isvOutsideNo
string
示例:isvOutsideNo2
必填

请求示例

==json版本== ```json { "method":"jingdong.eclp.ib.queryOutsideMain", "app_key":"xxxxxxx", "access_token":"xxxxxxxxxxx", "timestamp":"2020-09-23 12:23:45", "format":"json", "v":"2.0", "sign":"xxxxxxxxxxxxx", "360buy_param_json":{ "outsideMainNo":"ENP123456789" } } ``` ==java版本== ```java public JdClient client=new DefaultJdClient(SERVER_URL,accessToken,appKey,appSecret); EclpIbQueryOutsideMainRequest request=new EclpIbQueryOutsideMainRequest(); request.setOutsideMainNo("ENP4418045678451"); EclpIbQueryOutsideMainResponse response=client.execute(request); ``` ==php版本== ```php $c = new JdClient(); $c->appKey = appKey; $c->appSecret = appSecret; $c->accessToken = accessToken; $c->serverUrl = SERVER_URL; $req = new EclpIbQueryOutsideMainRequest(); $req->setOutsideMainNo( "abc" ); $resp = $c->execute($req, $c->accessToken); ``` ==.net版本== ```.net IJdClient client = new DefaultJdClient(url, appkey, appsecret); EclpIbQueryOutsideMainRequest req = new EclpIbQueryOutsideMainRequest(); req.outsideMainNo = "abc" ; EclpIbQueryOutsideMainResponse response = client.Execute (req, token, DateTime.Now.ToLocalTime()); ``` ==python版本== ```python import jd.api import json from jd.api.rest.EclpIbQueryOutsideMainRequest import EclpIbQueryOutsideMainRequest jd.setDefaultAppInfo(appkey, secret) a = EclpIbQueryOutsideMainRequest(url,port) a.outsideMainNo = "abc" try: f= a.getResponse(sessionkey) print(json.dumps(f, ensure_ascii=False)) except Exception,e: print(e) ```

响应示例

>s 成功示例: ```json { "jingdong_eclp_ib_queryOutsideMain_response": { "queryOutsideMainResult": { "warehouseIdIn": "5442", "productCode": "产品1,产品2", "boxes": "'{'{\'boxNo\':\'E2018083117466677\',\'boxStatus\':10}':[{'goodsNo':'EMG4398059211824','realityNum':8,'InNum':0,'outNum':16,'batchInfo':'{\'isPackageBatch\':\'2018090411410824\',\'isLot\':\'2019090411410824\',\'production_date_lot\':\'2018-09-04\',\'expiration_date_lot\':\'2019-09-04\'}'}]}'", "outsideStatus": "80", "cancelStatus": "0", "warehouseIdOut": "8263", "chargeMode": "按箱计费", "isvOutsideNo": "201809111038" } } } ``` >d 错误示例: ```json { "error_response": { "code": "null 3,399", "zh_desc": "调拨出库单号【ENP123456789】无效,请核实!(解决方案参考:http://open.jd.com/home/home#/doc/common?listId=533)", "en_desc": "调拨出库单号【ENP123456789】无效,请核实!(Solution reference:http://open.jd.com/home/home#/doc/common?listId=533)" } } ```