查询租借订单
前置条件:商户下单待受理后。
请求参数 | 类型 | 描述 |
---|---|---|
security | true | 声明加载商户API证书 |
xml | object | 声明请求的XML 数据结构 |
version | string | 接口版本号1.0 枚举值 |
appid | string | 公众账号ID |
mch_id | string | 商户号 |
sign_type | string | 签名类型HMAC-SHA256 枚举值 |
out_order_no | string | 商户服务订单号 |
return_query_id | string | 回跳查询id |
service_id | string | 服务ID |
php
$instance->v2->wxv->queryrentbill->postAsync([
'security' => true,
'xml' => [
'version' => '1.0',
'appid' => 'wxd678efh567hg6787',
'mch_id' => '1230000109',
'sign_type' => 'HMAC-SHA256',
'out_order_no' => '1234323JKHDFE1243252',
'return_query_id' => '微信侧回跳到商户前端时用于查单的单据查询id.',
'service_id' => '',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$instance->chain('v2/wxv/queryrentbill')->postAsync([
'security' => true,
'xml' => [
'version' => '1.0',
'appid' => 'wxd678efh567hg6787',
'mch_id' => '1230000109',
'sign_type' => 'HMAC-SHA256',
'out_order_no' => '1234323JKHDFE1243252',
'return_query_id' => '微信侧回跳到商户前端时用于查单的单据查询id.',
'service_id' => '',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$instance['v2/wxv/queryrentbill']->postAsync([
'security' => true,
'xml' => [
'version' => '1.0',
'appid' => 'wxd678efh567hg6787',
'mch_id' => '1230000109',
'sign_type' => 'HMAC-SHA256',
'out_order_no' => '1234323JKHDFE1243252',
'return_query_id' => '微信侧回跳到商户前端时用于查单的单据查询id.',
'service_id' => '',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$response = $instance->v2->wxv->queryrentbill->post([
'security' => true,
'xml' => [
'version' => '1.0',
'appid' => 'wxd678efh567hg6787',
'mch_id' => '1230000109',
'sign_type' => 'HMAC-SHA256',
'out_order_no' => '1234323JKHDFE1243252',
'return_query_id' => '微信侧回跳到商户前端时用于查单的单据查询id.',
'service_id' => '',
],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance->chain('v2/wxv/queryrentbill')->post([
'security' => true,
'xml' => [
'version' => '1.0',
'appid' => 'wxd678efh567hg6787',
'mch_id' => '1230000109',
'sign_type' => 'HMAC-SHA256',
'out_order_no' => '1234323JKHDFE1243252',
'return_query_id' => '微信侧回跳到商户前端时用于查单的单据查询id.',
'service_id' => '',
],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance['v2/wxv/queryrentbill']->post([
'security' => true,
'xml' => [
'version' => '1.0',
'appid' => 'wxd678efh567hg6787',
'mch_id' => '1230000109',
'sign_type' => 'HMAC-SHA256',
'out_order_no' => '1234323JKHDFE1243252',
'return_query_id' => '微信侧回跳到商户前端时用于查单的单据查询id.',
'service_id' => '',
],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
返回字典 | 类型 | 描述 |
---|---|---|
return_code | string | 返回状态码SUCCESS | FAIL 枚举值之一 |
return_msg | string | 返回结果 |
sign | string | 签名 |
nonce_str | string | 随机字符串 |
result_code | string | 业务结果SUCCESS | FAIL 枚举值之一 |
err_code | string | 错误代码 |
err_code_des | string | 错误描述 |
appid | string | 公众账号ID |
mch_id | string | 商户号 |
out_order_no | string | 商户服务订单号 |
service_id | string | 服务ID |
state | string | 单据状态CREATED | USER_ACCEPTED | FINISHED | USER_PAID | REVOKED | EXPIRED 枚举值之一 |
goods_name | string | 商品名称 |
returned | string | 是否归还 |
start_time | string | 租用时间 |
service_location | string | 租用地点 |
deposit_amount | integer | 押金总额 |
rent_unit | string | 租金规则 计费单位FEN_YEAR | FEN_MONTH | FEN_DAY | FEN_HOUR | FEN_MINUTE | FEN_ONCE 枚举值之一 |
rent_unit_fee | integer | 租金规则 计费单价费用 |
rent_fee_desc | string | 租金规则 计费说明 |
real_end_time | string | 实际归还时间 |
rent_fee | integer | 租金费用 |
compensation_fee | integer | 赔偿金费用 |
compensation_fee_desc | string | 赔偿金说明 |
service_end_location | string | 归还地点 |
order_id | string | 微信支付服务订单号 |
finish_ticket | string | 完结凭证 |
attach | string | 回调数据包 |
finish_transaction_id | string | 结单交易单号 |
pay_type | string | 支付方式MchChannelPayType 枚举值 |
参阅 官方文档