Skip to content

获取乘客行程单列表

服务商可以凭“用户openid”查询该乘客对应的“出租车行程单”,微信支付返回该“openid”下最多最近半年内的“出租车行程单”

请求参数类型描述
queryobject声明请求的查询参数
limitinteger最大资源条数
offsetinteger请求资源起始位置
openidstring小程序用户的微信openid
appidstring小程序appid
begin_datestring起始日期
end_datestring结束日期
region_idinteger行政区划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));
返回字典类型描述
dataobject[]乘客行程单详情
plate_numberstring车牌号
driver_licensestring营运资格证号
up_timestring上车时间
offsetinteger请求资源起始位置
limitinteger最大资源条数
total_countinteger资源总条数
linksobject相关链接
nextstring下一页链接
prevstring上一页链接
selfstring当前链接

参阅 官方文档

Published on the GitHub by TheNorthMemory