Skip to content

查询订单

请求参数类型描述
out_trade_nostring商户系统内部订单号
queryobject声明请求的查询参数
sub_mchidstring微信支付分配的子商户号
php
$instance->v3->qrcode->transactions->outTradeNo->_out_trade_no_->getAsync([
  'out_trade_no' => '20150806125346',
  'query' => [
    'sub_mchid' => '1900000109',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/qrcode/transactions/out-trade-no/{out_trade_no}')->getAsync([
  'out_trade_no' => '20150806125346',
  'query' => [
    'sub_mchid' => '1900000109',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/qrcode/transactions/out-trade-no/{out_trade_no}']->getAsync([
  'out_trade_no' => '20150806125346',
  'query' => [
    'sub_mchid' => '1900000109',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->qrcode->transactions->outTradeNo->_out_trade_no_->get([
  'out_trade_no' => '20150806125346',
  'query' => [
    'sub_mchid' => '1900000109',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/qrcode/transactions/out-trade-no/{out_trade_no}')->get([
  'out_trade_no' => '20150806125346',
  'query' => [
    'sub_mchid' => '1900000109',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/qrcode/transactions/out-trade-no/{out_trade_no}']->get([
  'out_trade_no' => '20150806125346',
  'query' => [
    'sub_mchid' => '1900000109',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
appidstring
sub_appidstring
sp_mchidstring
sub_mchidstring
descriptionstring
create_timestring
out_trade_nostring
transaction_idstring
trade_statestringSUCCESS | ACCEPTED | PAY_FAIL | REFUND 枚举值之一
trade_state_descriptionstring
success_timestring
bank_typestring
user_repay_statestringNOT_REPAY | REPAID | ALL_REFUND 枚举值之一
repay_transaction_idstring
repay_timestring
attachstring
contract_idstring
trade_scenestring
bus_infoobject
start_timestring用户乘车时间(上车)
line_namestring乘车路线
plate_numberstring车牌号。
metro_infoobject
start_timestring用户乘车时间(上车)
end_timestring用户下车时间
start_stationstring乘车起始站
end_stationstring乘车终点站
amountobject
promotion_detailobject[]
coupon_idstring
namestring
scopestringGLOBAL | SINGLE 枚举值之一
typestringCASH | NOCASH 枚举值之一
stock_idstring
amountinteger
wechatpay_contributeinteger
merchant_contributeinteger
other_contributeinteger
currencystring

参阅 息

Published on the GitHub by TheNorthMemory