获取出租车信息
获取出租车信息
请求参数 | 类型 | 描述 |
---|---|---|
plate_number | string | 车牌号 |
query | object | 声明请求的查询参数 |
region_id | integer | 行政区划代码 |
php
$instance->v3->taxiInvoice->taxies->_plate_number_->getAsync([
'plate_number' => '粤B12345',
'query' => [
'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/taxies/{plate_number}')->getAsync([
'plate_number' => '粤B12345',
'query' => [
'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/taxies/{plate_number}']->getAsync([
'plate_number' => '粤B12345',
'query' => [
'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->taxies->_plate_number_->get([
'plate_number' => '粤B12345',
'query' => [
'region_id' => 510100,
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/taxi-invoice/taxies/{plate_number}')->get([
'plate_number' => '粤B12345',
'query' => [
'region_id' => 510100,
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/taxi-invoice/taxies/{plate_number}']->get([
'plate_number' => '粤B12345',
'query' => [
'region_id' => 510100,
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
plate_number | string | 车牌号 |
company_name | string | 公司名称 |
company_mchid | string | 公司商户号 |
main_license | string | 主班司机资格证号 |
deputy_license | string | 副班司机资格证号 |
region_id | integer | 行政区划代码 |
support_invoice | boolean | 是否支持开票 |
taxi_state | string | 出租车状态 |
参阅 官方文档