获取用户填写的抬头
商户调用本接口,检查用户是否已完成抬头填写,并获取用户填写的抬头信息。在微信支付场景下,若该笔订单在下单时指定在支付凭证上展示开票入口,则也可以调用本接口查询用户填写的抬头。
| 请求参数 | 类型 | 描述 |
|---|---|---|
| query | object | 声明请求的查询参数 |
| sub_mchid | string | 子商户号 |
| scene | string | 开票场景WITH_WECHATPAY | WITHOUT_WECHATPAY 枚举值之一 |
| fapiao_apply_id | string | 发票申请单号 |
php
$instance->v3->newTaxControlFapiao->userTitle->getAsync([
'query' => [
'sub_mchid' => '1900000109',
'scene' => 'WITH_WECHATPAY',
'fapiao_apply_id' => '4200000444201910177461284488',
],
])
->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/user-title')->getAsync([
'query' => [
'sub_mchid' => '1900000109',
'scene' => 'WITH_WECHATPAY',
'fapiao_apply_id' => '4200000444201910177461284488',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance['v3/new-tax-control-fapiao/user-title']->getAsync([
'query' => [
'sub_mchid' => '1900000109',
'scene' => 'WITH_WECHATPAY',
'fapiao_apply_id' => '4200000444201910177461284488',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$response = $instance->v3->newTaxControlFapiao->userTitle->get([
'query' => [
'sub_mchid' => '1900000109',
'scene' => 'WITH_WECHATPAY',
'fapiao_apply_id' => '4200000444201910177461284488',
],
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance->chain('v3/new-tax-control-fapiao/user-title')->get([
'query' => [
'sub_mchid' => '1900000109',
'scene' => 'WITH_WECHATPAY',
'fapiao_apply_id' => '4200000444201910177461284488',
],
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance['v3/new-tax-control-fapiao/user-title']->get([
'query' => [
'sub_mchid' => '1900000109',
'scene' => 'WITH_WECHATPAY',
'fapiao_apply_id' => '4200000444201910177461284488',
],
]);
print_r(json_decode((string) $response->getBody(), true));| 返回字典 | 类型 | 描述 |
|---|---|---|
| type | string | 购买方类型INDIVIDUAL | ORGANIZATION 枚举值之一 |
| name | string | 名称 |
| taxpayer_id | string | 纳税人识别号 |
| address | string | 地址 |
| telephone | string | 电话 |
| bank_name | string | 开户银行 |
| bank_account | string | 银行账号 |
| phone | string | 手机号 |
| string | 邮箱地址 | |
| amount | integer | 订单金额 |
| out_trade_no | string | 商户订单号 |
| fapiao_bill_type | string | 开具的发票类型COMM_FAPIAO | VAT_FAPIAO 枚举值之一 |
| user_apply_message | string | 留言信息 |