Skip to content

新增出租车公司

新增出租车公司,主要用于服务商绑定特约商户,为出租车公司开通电子发票功能,提交开票信息等

请求参数类型描述
jsonobject声明请求的JSON数据结构
company_namestring公司名称
tax_idstring税号
addressstring公司地址
phonestring公司电话
bank_namestring开户行
bank_accountstring银行账号
invoice_modestring开票渠道
legal_personstring企业法人姓名
short_namestring公司简称
region_idinteger行政区划ID
enterprise_typestring企业类型
php
$instance->v3->taxiInvoice->taxiCompany->createTaxiCompany->postAsync([
  'json' => [
    'company_name'    => '深圳市未来有限公司',
    'tax_id'          => '12345678901234567J',
    'address'         => '广东省深圳市南山区高新科技园科技中一路腾讯大厦',
    'phone'           => '075586013388',
    'bank_name'       => '中国工商银行南山支行',
    'bank_account'    => '12345678901234',
    'invoice_mode'    => 'JIAO_WEI',
    'legal_person'    => '张三',
    'short_name'      => '深圳未来',
    'region_id'       => 510100,
    'enterprise_type' => 'ENTERPRISE',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/taxi-invoice/taxi-company/create-taxi-company')->postAsync([
  'json' => [
    'company_name'    => '深圳市未来有限公司',
    'tax_id'          => '12345678901234567J',
    'address'         => '广东省深圳市南山区高新科技园科技中一路腾讯大厦',
    'phone'           => '075586013388',
    'bank_name'       => '中国工商银行南山支行',
    'bank_account'    => '12345678901234',
    'invoice_mode'    => 'JIAO_WEI',
    'legal_person'    => '张三',
    'short_name'      => '深圳未来',
    'region_id'       => 510100,
    'enterprise_type' => 'ENTERPRISE',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/taxi-invoice/taxi-company/create-taxi-company']->postAsync([
  'json' => [
    'company_name'    => '深圳市未来有限公司',
    'tax_id'          => '12345678901234567J',
    'address'         => '广东省深圳市南山区高新科技园科技中一路腾讯大厦',
    'phone'           => '075586013388',
    'bank_name'       => '中国工商银行南山支行',
    'bank_account'    => '12345678901234',
    'invoice_mode'    => 'JIAO_WEI',
    'legal_person'    => '张三',
    'short_name'      => '深圳未来',
    'region_id'       => 510100,
    'enterprise_type' => 'ENTERPRISE',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->taxiInvoice->taxiCompany->createTaxiCompany->post([
  'json' => [
    'company_name'    => '深圳市未来有限公司',
    'tax_id'          => '12345678901234567J',
    'address'         => '广东省深圳市南山区高新科技园科技中一路腾讯大厦',
    'phone'           => '075586013388',
    'bank_name'       => '中国工商银行南山支行',
    'bank_account'    => '12345678901234',
    'invoice_mode'    => 'JIAO_WEI',
    'legal_person'    => '张三',
    'short_name'      => '深圳未来',
    'region_id'       => 510100,
    'enterprise_type' => 'ENTERPRISE',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/taxi-invoice/taxi-company/create-taxi-company')->post([
  'json' => [
    'company_name'    => '深圳市未来有限公司',
    'tax_id'          => '12345678901234567J',
    'address'         => '广东省深圳市南山区高新科技园科技中一路腾讯大厦',
    'phone'           => '075586013388',
    'bank_name'       => '中国工商银行南山支行',
    'bank_account'    => '12345678901234',
    'invoice_mode'    => 'JIAO_WEI',
    'legal_person'    => '张三',
    'short_name'      => '深圳未来',
    'region_id'       => 510100,
    'enterprise_type' => 'ENTERPRISE',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/taxi-invoice/taxi-company/create-taxi-company']->post([
  'json' => [
    'company_name'    => '深圳市未来有限公司',
    'tax_id'          => '12345678901234567J',
    'address'         => '广东省深圳市南山区高新科技园科技中一路腾讯大厦',
    'phone'           => '075586013388',
    'bank_name'       => '中国工商银行南山支行',
    'bank_account'    => '12345678901234',
    'invoice_mode'    => 'JIAO_WEI',
    'legal_person'    => '张三',
    'short_name'      => '深圳未来',
    'region_id'       => 510100,
    'enterprise_type' => 'ENTERPRISE',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
mchidstring商户号
company_namestring公司名称

参阅 官方文档

Published on the GitHub by TheNorthMemory