Skip to content

获取用户填写的抬头

商户调用本接口,检查用户是否已完成抬头填写,并获取用户填写的抬头信息。在微信支付场景下,若该笔订单在下单时指定在支付凭证上展示开票入口,则也可以调用本接口查询用户填写的抬头。

请求参数类型描述
queryobject声明请求的查询参数
sub_mchidstring子商户号
scenestring开票场景
fapiao_apply_idstring发票申请单号
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));
返回字典类型描述
typestring购买方类型
namestring名称
taxpayer_idstring纳税人识别号
addressstring地址
telephonestring电话
bank_namestring开户银行
bank_accountstring银行账号
phonestring手机号
emailstring邮箱地址

参阅 官方文档

Published on the GitHub by TheNorthMemory