获取乘客行程单列表
服务商可以凭“用户openid”查询该乘客对应的“出租车行程单”,微信支付返回该“openid”下最多最近半年内的“出租车行程单”
请求参数 | 类型 | 描述 |
---|---|---|
query | object | 声明请求的查询参数 |
limit | integer | 最大资源条数 |
offset | integer | 请求资源起始位置 |
openid | string | 小程序用户的微信openid |
appid | string | 小程序appid |
begin_date | string | 起始日期 |
end_date | string | 结束日期 |
region_id | integer | 行政区划id |
php
$instance->v3->taxiInvoice->userTaxiOrders->getAsync([
'query' => [
'limit' => 5,
'offset' => 10,
'openid' => 'oUypO5fUvaUkyuc6ueOwgwDMjCiM',
'appid' => 'wxb1170446a4c0a5a2',
'begin_date' => '20200307',
'end_date' => '20200407',
'region_id' => 510100,
],
])
->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-orders')->getAsync([
'query' => [
'limit' => 5,
'offset' => 10,
'openid' => 'oUypO5fUvaUkyuc6ueOwgwDMjCiM',
'appid' => 'wxb1170446a4c0a5a2',
'begin_date' => '20200307',
'end_date' => '20200407',
'region_id' => 510100,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/taxi-invoice/user-taxi-orders']->getAsync([
'query' => [
'limit' => 5,
'offset' => 10,
'openid' => 'oUypO5fUvaUkyuc6ueOwgwDMjCiM',
'appid' => 'wxb1170446a4c0a5a2',
'begin_date' => '20200307',
'end_date' => '20200407',
'region_id' => 510100,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->taxiInvoice->userTaxiOrders->get([
'query' => [
'limit' => 5,
'offset' => 10,
'openid' => 'oUypO5fUvaUkyuc6ueOwgwDMjCiM',
'appid' => 'wxb1170446a4c0a5a2',
'begin_date' => '20200307',
'end_date' => '20200407',
'region_id' => 510100,
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/taxi-invoice/user-taxi-orders')->get([
'query' => [
'limit' => 5,
'offset' => 10,
'openid' => 'oUypO5fUvaUkyuc6ueOwgwDMjCiM',
'appid' => 'wxb1170446a4c0a5a2',
'begin_date' => '20200307',
'end_date' => '20200407',
'region_id' => 510100,
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/taxi-invoice/user-taxi-orders']->get([
'query' => [
'limit' => 5,
'offset' => 10,
'openid' => 'oUypO5fUvaUkyuc6ueOwgwDMjCiM',
'appid' => 'wxb1170446a4c0a5a2',
'begin_date' => '20200307',
'end_date' => '20200407',
'region_id' => 510100,
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
data | object[] | 乘客行程单详情 |
plate_number | string | 车牌号 |
driver_license | string | 营运资格证号 |
up_time | string | 上车时间 |
offset | integer | 请求资源起始位置 |
limit | integer | 最大资源条数 |
total_count | integer | 资源总条数 |
links | object | 相关链接 |
next | string | 下一页链接 |
prev | string | 上一页链接 |
self | string | 当前链接 |
参阅 官方文档