根据凭证查询乘客行程单
服务商可以凭“凭证”查询对应的“乘客行程单”。
请求参数 | 类型 | 描述 |
---|---|---|
query | object | 声明请求的查询参数 |
token | string | 获取乘客行程单详情的凭证 |
openid | string | 用户标识 |
appid | string | 应用ID |
region_id | integer | 行政区划代码 |
auth_mode | string | 授权模式 |
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_number | string | 车牌号 |
driver_license | string | 营运资格证号 |
up_time | string | 上车时间 |
region_id | integer | 行政区划代码 |
source | string | 乘客行程单来源 |
pay_time | string | 面对面付款时间 |
pay_amount | integer | 面对面付款金额 |
参阅 官方文档