更新出租车信息
商户可通过调用该接口新增、更新出租车信息,出租车所在的公司必须已经成为服务商的特约商户,否则新增失败
请求参数 | 类型 | 描述 |
---|---|---|
json | object | 声明请求的JSON 数据结构 |
plate_number | string | 车牌号 |
company_name | string | 公司名称 |
mchid | string | 商户号 |
main_license | string | 主班司机资格证号 |
deputy_license | string | 副班司机资格证号 |
region_id | integer | 行政区划ID |
invoice_flag | string | 开票标记 |
php
$instance->v3->taxiInvoice->taxi->updateTaxi->postAsync([
'json' => [
'plate_number' => '粤B12345',
'company_name' => '深圳市未来有限公司',
'mchid' => '1900000109',
'main_license' => '6298416',
'deputy_license' => '6298416',
'region_id' => 510100,
'invoice_flag' => 'INVOICE',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/taxi-invoice/taxi/update-taxi')->postAsync([
'json' => [
'plate_number' => '粤B12345',
'company_name' => '深圳市未来有限公司',
'mchid' => '1900000109',
'main_license' => '6298416',
'deputy_license' => '6298416',
'region_id' => 510100,
'invoice_flag' => 'INVOICE',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/taxi-invoice/taxi/update-taxi']->postAsync([
'json' => [
'plate_number' => '粤B12345',
'company_name' => '深圳市未来有限公司',
'mchid' => '1900000109',
'main_license' => '6298416',
'deputy_license' => '6298416',
'region_id' => 510100,
'invoice_flag' => 'INVOICE',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->taxiInvoice->taxi->updateTaxi->post([
'json' => [
'plate_number' => '粤B12345',
'company_name' => '深圳市未来有限公司',
'mchid' => '1900000109',
'main_license' => '6298416',
'deputy_license' => '6298416',
'region_id' => 510100,
'invoice_flag' => 'INVOICE',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/taxi-invoice/taxi/update-taxi')->post([
'json' => [
'plate_number' => '粤B12345',
'company_name' => '深圳市未来有限公司',
'mchid' => '1900000109',
'main_license' => '6298416',
'deputy_license' => '6298416',
'region_id' => 510100,
'invoice_flag' => 'INVOICE',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/taxi-invoice/taxi/update-taxi']->post([
'json' => [
'plate_number' => '粤B12345',
'company_name' => '深圳市未来有限公司',
'mchid' => '1900000109',
'main_license' => '6298416',
'deputy_license' => '6298416',
'region_id' => 510100,
'invoice_flag' => 'INVOICE',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
plate_number | string | 车牌号 |
company_name | string | 公司名称 |
mchid | string | 商户号 |
main_license | string | 主班司机资格证号 |
deputy_license | string | 副班司机资格证号 |
region_id | integer | 行政区划ID |
参阅 官方文档