检查子商户开票功能状态
服务商检查子商户的电子发票功能状态是否正常,若商户已经开通API开票功能并已对服务商授权,则返回成功。
请求参数 | 类型 | 描述 |
---|---|---|
sub_mchid | string | 子商户号 |
php
$instance->v3->newTaxControlFapiao->merchant->_sub_mchid_->checkStatus->getAsync([
'sub_mchid' => '1900000109',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/new-tax-control-fapiao/merchant/{sub_mchid}/check-status')->getAsync([
'sub_mchid' => '1900000109',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/new-tax-control-fapiao/merchant/{sub_mchid}/check-status']->getAsync([
'sub_mchid' => '1900000109',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->newTaxControlFapiao->merchant->_sub_mchid_->checkStatus->get([
'sub_mchid' => '1900000109',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/new-tax-control-fapiao/merchant/{sub_mchid}/check-status')->get([
'sub_mchid' => '1900000109',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/new-tax-control-fapiao/merchant/{sub_mchid}/check-status']->get([
'sub_mchid' => '1900000109',
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
sub_mchid | string | 子商户号 |
third_mode | object | 第三方开票模式 |
status | string | 第三方/自建发票能力接入状态DISABLED | ENABLED 枚举值之一 |
digital_tax_mode | object | 数电发票模式 |
status | string | 接入状态APPROVAL_PENDING | ACCESS_CONFIRMED_PENDING | ABILITY_CONFIRMED_PENDING | BILLING_PERSON_REGISTER_PENDING | BILLING_PERSON_CONFIRMED_PENDING | SECURITY_SETTING_PENDING | APPLY_FAILED | DISABLED | ENABLED | RESOURCE_EXPIRED 枚举值之一 |
billing_person_info | object | 开票人信息 |
id | string | 开票人ID |
name | string | 开票人姓名 |
access_time | string | 接入时间 |
expired_time | string | 过期时间 |
access_fail_reason | string | 接入失败原因 |
ability_info | object[] | 能力信息 |
type | string | 能力类型BASE_ABILITY | REAL_ESTATE_ABILITY 枚举值之一 |
status | string | 能力授权状态AUTHORIZED | AUTHORIZE_PENDING | DEAUTHORIZED | AUTHORIZE_FAILED 枚举值之一 |
authorize_fail_reason | string | 能力授权失败原因 |
参阅 官方文档