Skip to content

获取出租车公司商户信息

获取出租车公司商户信息

请求参数类型描述
company_mchidstring商户号
queryobject声明请求的查询参数
region_idinteger行政区划ID
php
$instance->v3->taxiInvoice->taxiCompanies->_company_mchid_->getAsync([
  'company_mchid' => '1900000109',
  '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/taxi-companies/{company_mchid}')->getAsync([
  'company_mchid' => '1900000109',
  '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/taxi-companies/{company_mchid}']->getAsync([
  'company_mchid' => '1900000109',
  '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->taxiCompanies->_company_mchid_->get([
  'company_mchid' => '1900000109',
  'query' => [
    'region_id' => 510100,
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/taxi-invoice/taxi-companies/{company_mchid}')->get([
  'company_mchid' => '1900000109',
  'query' => [
    'region_id' => 510100,
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/taxi-invoice/taxi-companies/{company_mchid}']->get([
  'company_mchid' => '1900000109',
  'query' => [
    'region_id' => 510100,
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
company_mchidstring商户号
enterprise_typestring企业类型
company_namestring公司名称
short_namestring公司简称
tax_idstring税号
addressstring公司地址
phonestring公司电话
bank_namestring开户行
bank_accountstring银行账号
legal_personstring企业法人姓名
invoice_modestring开票渠道
region_idinteger行政区划代码

参阅 官方文档

Published on the GitHub by TheNorthMemory