Skip to content

根据凭证查询乘客行程单

服务商可以凭“凭证”查询对应的“乘客行程单”。

请求参数类型描述
queryobject声明请求的查询参数
tokenstring获取乘客行程单详情的凭证
openidstring用户标识
appidstring应用ID
region_idinteger行政区划代码
auth_modestring授权模式
php
$instance->v3->taxiInvoice->userTaxiOrder->findByToken->getAsync([
  'query' => [
    'token'     => 'ESvqG19gjw0qiiy1eeRA4VusLrOmIYQOMJ8rXX2V-ztUUuQvu_YBEZg9FAht0Y15r71mft9rcaMIjn7y6x0KSg',
    'openid'    => 'oUypO5fUvaUkyuc6ueOwgwDMjCiM',
    'appid'     => 'wxb1170446a4c0a5a2',
    'region_id' => 310100,
    'auth_mode' => 'ORDER_AUTH',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/taxi-invoice/user-taxi-order/find-by-token')->getAsync([
  'query' => [
    'token'     => 'ESvqG19gjw0qiiy1eeRA4VusLrOmIYQOMJ8rXX2V-ztUUuQvu_YBEZg9FAht0Y15r71mft9rcaMIjn7y6x0KSg',
    'openid'    => 'oUypO5fUvaUkyuc6ueOwgwDMjCiM',
    'appid'     => 'wxb1170446a4c0a5a2',
    'region_id' => 310100,
    'auth_mode' => 'ORDER_AUTH',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/taxi-invoice/user-taxi-order/find-by-token']->getAsync([
  'query' => [
    'token'     => 'ESvqG19gjw0qiiy1eeRA4VusLrOmIYQOMJ8rXX2V-ztUUuQvu_YBEZg9FAht0Y15r71mft9rcaMIjn7y6x0KSg',
    'openid'    => 'oUypO5fUvaUkyuc6ueOwgwDMjCiM',
    'appid'     => 'wxb1170446a4c0a5a2',
    'region_id' => 310100,
    'auth_mode' => 'ORDER_AUTH',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->taxiInvoice->userTaxiOrder->findByToken->get([
  'query' => [
    'token'     => 'ESvqG19gjw0qiiy1eeRA4VusLrOmIYQOMJ8rXX2V-ztUUuQvu_YBEZg9FAht0Y15r71mft9rcaMIjn7y6x0KSg',
    'openid'    => 'oUypO5fUvaUkyuc6ueOwgwDMjCiM',
    'appid'     => 'wxb1170446a4c0a5a2',
    'region_id' => 310100,
    'auth_mode' => 'ORDER_AUTH',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/taxi-invoice/user-taxi-order/find-by-token')->get([
  'query' => [
    'token'     => 'ESvqG19gjw0qiiy1eeRA4VusLrOmIYQOMJ8rXX2V-ztUUuQvu_YBEZg9FAht0Y15r71mft9rcaMIjn7y6x0KSg',
    'openid'    => 'oUypO5fUvaUkyuc6ueOwgwDMjCiM',
    'appid'     => 'wxb1170446a4c0a5a2',
    'region_id' => 310100,
    'auth_mode' => 'ORDER_AUTH',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/taxi-invoice/user-taxi-order/find-by-token']->get([
  'query' => [
    'token'     => 'ESvqG19gjw0qiiy1eeRA4VusLrOmIYQOMJ8rXX2V-ztUUuQvu_YBEZg9FAht0Y15r71mft9rcaMIjn7y6x0KSg',
    'openid'    => 'oUypO5fUvaUkyuc6ueOwgwDMjCiM',
    'appid'     => 'wxb1170446a4c0a5a2',
    'region_id' => 310100,
    'auth_mode' => 'ORDER_AUTH',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
plate_numberstring车牌号
driver_licensestring营运资格证号
up_timestring上车时间
region_idinteger行政区划代码
sourcestring乘客行程单来源
pay_timestring面对面付款时间
pay_amountinteger面对面付款金额

参阅 官方文档

Published on the GitHub by TheNorthMemory