Skip to content

更新出租车信息

商户可通过调用该接口新增、更新出租车信息,出租车所在的公司必须已经成为服务商的特约商户,否则新增失败

请求参数类型描述
jsonobject声明请求的JSON数据结构
plate_numberstring车牌号
company_namestring公司名称
mchidstring商户号
main_licensestring主班司机资格证号
deputy_licensestring副班司机资格证号
region_idinteger行政区划ID
invoice_flagstring开票标记
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_numberstring车牌号
company_namestring公司名称
mchidstring商户号
main_licensestring主班司机资格证号
deputy_licensestring副班司机资格证号
region_idinteger行政区划ID

参阅 官方文档

Published on the GitHub by TheNorthMemory