Properties

$client_id

$client_id : 

Type

$username

$username : 

Type

$password_md5

$password_md5 : 

Type

$client_secret

$client_secret : 

Type

Methods

__construct()

__construct(  $client_id,   $username,   $password_md5,   $client_secret) 

Parameters

$client_id
$username
$password_md5
$client_secret

Req()

Req(\jd_vop\request\Request  $request, string  $response) : \jd_vop\response\Response

统一请求封装

Parameters

\jd_vop\request\Request $request

Request 对象 继承自request\Request

string $response

response 接收对象 实现 response\Response 接口

Throws

\jd_vop\exception\BizException
\jd_vop\exception\DataException
\jd_vop\exception\NetWorkException

Returns

\jd_vop\response\Response

GetFreight()

GetFreight(  $token, \jd_vop\request\order\GetFreightSkus  $skus,   $province,   $city,   $county,   $town,   $paymentType,   $queryExts) 

7.1 查询运费

Parameters

$token

string access token

\jd_vop\request\order\GetFreightSkus $skus

sku数组

$province

int 一级地址id

$city

int 二级地址id

$county

int 三级地址id

$town

int 四级地址id

$paymentType

int 京东支付方式 constant\PaymentType

$queryExts

string 扩展查询字段, conFreight //续重运费 todo 修改为扩展类库

Throws

\jd_vop\exception\NetWorkException
\jd_vop\exception\BizException
\jd_vop\exception\DataException

SubmitOrder()

SubmitOrder(\jd_vop\request\order\SubmitOrder  $request) : mixed

7.3 提交订单

Parameters

\jd_vop\request\order\SubmitOrder $request

7.3 提交订单 request

Throws

\jd_vop\exception\BizException
\jd_vop\exception\DataException
\jd_vop\exception\NetWorkException

Returns

mixed

SelectJdOrderIdByThirdOrder()

SelectJdOrderIdByThirdOrder(  $token,   $thirdOrder) : mixed

7.4 反查订单

Parameters

$token

string Access token

$thirdOrder

string 第三方订单号(非京东订单号)。

Throws

\jd_vop\exception\BizException
\jd_vop\exception\DataException
\jd_vop\exception\NetWorkException

Returns

mixed

ConfirmOrder()

ConfirmOrder(string  $token, integer  $jdOrderId, string  $poN0 = "") 

7.5 确认预占库存订单

Parameters

string $token

access token

integer $jdOrderId

京东的订单单号(下单返回的父订单号)

string $poN0

采购单号

Throws

\jd_vop\exception\BizException
\jd_vop\exception\DataException
\jd_vop\exception\NetWorkException

Cancel()

Cancel(string  $token, integer  $jdOrderId) 

7.6 取消未确认订单

Parameters

string $token

access token

integer $jdOrderId

京东的订单单号(下单返回的父订单号)

Throws

\jd_vop\exception\BizException
\jd_vop\exception\DataException
\jd_vop\exception\NetWorkException

SelectJdOrder()

SelectJdOrder(string  $token, integer  $jdOrderId, \jd_vop\request\order\SelectJdOrderQueryExt  $queryExts) : mixed

7.7 查询订单详情

Parameters

string $token

access token

integer $jdOrderId

京东的订单单号(下单返回的父订单号)

\jd_vop\request\order\SelectJdOrderQueryExt $queryExts

扩展参数

Throws

\jd_vop\exception\BizException
\jd_vop\exception\DataException
\jd_vop\exception\NetWorkException

Returns

mixed

OrderTrack()

OrderTrack(string  $token, string  $jdOrderId, integer  $waybillCodets) : mixed

7.8 查询配送信息

Parameters

string $token

access token

string $jdOrderId

京东的订单单号(下单返回的父订单号)

integer $waybillCodets

是否返回订单的配送信息

Throws

\jd_vop\exception\BizException
\jd_vop\exception\DataException
\jd_vop\exception\NetWorkException

Returns

mixed

ConfirmReceived()

ConfirmReceived(string  $token, string  $jdOrderId) : mixed

7.9 确认收货

Parameters

string $token

access token

string $jdOrderId

京东的订单单号(下单返回的父订单号)

Throws

\jd_vop\exception\BizException
\jd_vop\exception\DataException
\jd_vop\exception\NetWorkException

Returns

mixed

SaveOrUpdatePoNo()

SaveOrUpdatePoNo(string  $token, string  $jdOrderId, string  $poNo) : mixed

7.10 更新采购单号

Parameters

string $token

access token

string $jdOrderId

京东的订单单号(下单返回的父订单号)

string $poNo

采购单号,长度范围[1-26]

Throws

\jd_vop\exception\BizException
\jd_vop\exception\DataException
\jd_vop\exception\NetWorkException

Returns

mixed

CheckNewOrder()

CheckNewOrder(string  $token, string  $date, integer  $pageNo, integer  $pageSize, mixed  $jdOrderIdIndex, mixed  $endDate) : mixed

7.12 查询新建订单列表

Parameters

string $token

access token

string $date

查询日期

integer $pageNo

页码

integer $pageSize

页大小取值范围

mixed $jdOrderIdIndex

最小订单号索引游标

mixed $endDate

结束日期

Throws

\jd_vop\exception\BizException
\jd_vop\exception\DataException
\jd_vop\exception\NetWorkException

Returns

mixed

CheckDlokOrder()

CheckDlokOrder(string  $token, string  $date, integer  $pageNo, integer  $pageSize, mixed  $jdOrderIdIndex, mixed  $endDate) : mixed

7.13 查询妥投订单列表

Parameters

string $token

access token

string $date

查询日期

integer $pageNo

页码

integer $pageSize

页大小取值范围

mixed $jdOrderIdIndex

最小订单号索引游标

mixed $endDate

结束日期

Throws

\jd_vop\exception\BizException
\jd_vop\exception\DataException
\jd_vop\exception\NetWorkException

Returns

mixed

CheckRefuseOrder()

CheckRefuseOrder(string  $token, string  $date, integer  $pageNo, integer  $pageSize, mixed  $jdOrderIdIndex, mixed  $endDate) : mixed

7.14 查询拒收订单列表

Parameters

string $token

access token

string $date

查询日期

integer $pageNo

页码

integer $pageSize

页大小取值范围

mixed $jdOrderIdIndex

最小订单号索引游标

mixed $endDate

结束日期

Throws

\jd_vop\exception\BizException
\jd_vop\exception\DataException
\jd_vop\exception\NetWorkException

Returns

mixed

CheckCompleteOrder()

CheckCompleteOrder(string  $token, string  $date, integer  $pageNo, integer  $pageSize, mixed  $jdOrderIdIndex, mixed  $endDate) : mixed

7.15 查询完成订单列表

Parameters

string $token

access token

string $date

查询日期

integer $pageNo

页码

integer $pageSize

页大小取值范围

mixed $jdOrderIdIndex

最小订单号索引游标

mixed $endDate

结束日期

Throws

\jd_vop\exception\BizException
\jd_vop\exception\DataException
\jd_vop\exception\NetWorkException

Returns

mixed

GetPromiseTips()

GetPromiseTips(  $token, string  $skuId, string  $num,   $province,   $city,   $county,   $town) : mixed

7.16 查询配送预计送达时间

Parameters

$token

string access token

string $skuId

商品编号

string $num

数量

$province

int 一级地址id

$city

int 二级地址id

$county

int 三级地址id

$town

int 四级地址id

Throws

\jd_vop\exception\BizException
\jd_vop\exception\DataException
\jd_vop\exception\NetWorkException

Returns

mixed

BatchConfirmReceived()

BatchConfirmReceived(  $token, string  $jdOrderIds) : mixed

7.16 批量确认收货接口

Parameters

$token

string access token

string $jdOrderIds

京东子单号,请以,(英文逗号)分割。 例如:129408,129409 (最高支持50个订单)

Throws

\jd_vop\exception\BizException
\jd_vop\exception\DataException
\jd_vop\exception\NetWorkException

Returns

mixed