查询速住订单
前置条件:商户下单待受理后。
请求参数 | 类型 | 描述 |
---|---|---|
xml | object | 声明请求的XML 数据结构 |
version | string | 接口版本号 |
appid | string | 公众账号ID |
mch_id | string | 商户号 |
sign_type | string | 签名类型 |
out_order_no | string | 商户服务订单号 |
return_query_id | string | 回跳查询id |
service_id | string | 服务ID |
security | boolean | 声明加载商户API证书 固定值 true |
php
$instance->v2->wxv->queryhotelbill->postAsync([
'xml' => [
'version' => '1.0',
'appid' => 'wxd678efh567hg6787',
'mch_id' => '1230000109',
'sign_type' => 'HMAC-SHA256',
'out_order_no' => '1234323JKHDFE1243252',
'return_query_id' => '微信侧回跳到商户前端时用于查单的单据查询id.',
'service_id' => '',
],
'security' => true,
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$instance->chain('v2/wxv/queryhotelbill')->postAsync([
'xml' => [
'version' => '1.0',
'appid' => 'wxd678efh567hg6787',
'mch_id' => '1230000109',
'sign_type' => 'HMAC-SHA256',
'out_order_no' => '1234323JKHDFE1243252',
'return_query_id' => '微信侧回跳到商户前端时用于查单的单据查询id.',
'service_id' => '',
],
'security' => true,
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$instance['v2/wxv/queryhotelbill']->postAsync([
'xml' => [
'version' => '1.0',
'appid' => 'wxd678efh567hg6787',
'mch_id' => '1230000109',
'sign_type' => 'HMAC-SHA256',
'out_order_no' => '1234323JKHDFE1243252',
'return_query_id' => '微信侧回跳到商户前端时用于查单的单据查询id.',
'service_id' => '',
],
'security' => true,
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$response = $instance->v2->wxv->queryhotelbill->post([
'xml' => [
'version' => '1.0',
'appid' => 'wxd678efh567hg6787',
'mch_id' => '1230000109',
'sign_type' => 'HMAC-SHA256',
'out_order_no' => '1234323JKHDFE1243252',
'return_query_id' => '微信侧回跳到商户前端时用于查单的单据查询id.',
'service_id' => '',
],
'security' => true,
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance->chain('v2/wxv/queryhotelbill')->post([
'xml' => [
'version' => '1.0',
'appid' => 'wxd678efh567hg6787',
'mch_id' => '1230000109',
'sign_type' => 'HMAC-SHA256',
'out_order_no' => '1234323JKHDFE1243252',
'return_query_id' => '微信侧回跳到商户前端时用于查单的单据查询id.',
'service_id' => '',
],
'security' => true,
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance['v2/wxv/queryhotelbill']->post([
'xml' => [
'version' => '1.0',
'appid' => 'wxd678efh567hg6787',
'mch_id' => '1230000109',
'sign_type' => 'HMAC-SHA256',
'out_order_no' => '1234323JKHDFE1243252',
'return_query_id' => '微信侧回跳到商户前端时用于查单的单据查询id.',
'service_id' => '',
],
'security' => true,
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
返回字典 | 类型 | 描述 |
---|---|---|
return_code | string | 返回状态码 |
return_msg | string | 返回结果 |
sign | string | 签名 |
nonce_str | string | 随机字符串 |
result_code | string | 业务结果 |
err_code | string | 错误代码 |
err_code_des | string | 错误描述 |
appid | string | 公众账号ID |
mch_id | string | 商户号 |
out_order_no | string | 商户服务订单号 |
service_id | string | 服务ID |
state | string | 单据状态 |
room | string | 房间 |
start_time | string | 入住时间 |
end_time | string | 预定离店时间 |
service_location | string | 酒店 |
deposit_amount | integer | 押金 |
room_rate | integer | 房费 |
room_rate_desc | string | 房费说明 |
real_end_time | string | 实际离店时间 |
checked_in | boolean | 是否入住 |
other_fee | integer | 其他费用 |
other_fee_desc | string | 其他费用说明 |
compensation_fee | integer | 赔偿金费用 |
compensation_fee_desc | string | 赔偿金说明 |
overdue_fine | integer | 延迟退房费 |
overdue_fine_desc | string | 延迟退房说明 |
cancel_fee | integer | 取消费用 |
cancel_fee_desc | string | 取消费用说明 |
order_id | string | 微信支付服务订单号 |
finish_ticket | string | 完结凭证 |
attach | string | 回调数据包 |
finish_transaction_id | string | 结单交易单号 |
pay_type | string | 支付方式 |
参阅 官方文档