Skip to content

获取商品和服务税收分类对照表

查询商户在微信支付商户平台中配置的电子发票税收分类编码对照表。

请求参数类型描述
queryobject声明请求的查询参数
sub_mchidstring子商户号
offsetinteger本次查询的起始位置
limitinteger本次查询的最大数量
php
$instance->v3->newTaxControlFapiao->merchant->taxCodes->getAsync([
  'query' => [
    'sub_mchid' => '1900000109',
    'offset'    => 0,
    'limit'     => 5,
  ],
])
->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/tax-codes')->getAsync([
  'query' => [
    'sub_mchid' => '1900000109',
    'offset'    => 0,
    'limit'     => 5,
  ],
])
->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/tax-codes']->getAsync([
  'query' => [
    'sub_mchid' => '1900000109',
    'offset'    => 0,
    'limit'     => 5,
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->newTaxControlFapiao->merchant->taxCodes->get([
  'query' => [
    'sub_mchid' => '1900000109',
    'offset'    => 0,
    'limit'     => 5,
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/new-tax-control-fapiao/merchant/tax-codes')->get([
  'query' => [
    'sub_mchid' => '1900000109',
    'offset'    => 0,
    'limit'     => 5,
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/new-tax-control-fapiao/merchant/tax-codes']->get([
  'query' => [
    'sub_mchid' => '1900000109',
    'offset'    => 0,
    'limit'     => 5,
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
offsetinteger本次查询的起始位置
limitinteger本次查询的最大数量
linksobject相关链接
nextstring下一页链接
prevstring上一页链接
selfstring当前链接
dataobject[]本次查询到的数据
goods_namestring由商户自定义的货物或应税劳务、服务名称
goods_idnumber企业侧维护的货物或应税劳务、服务编码
goods_categorystring税局侧规定的货物或应税劳务、服务分类名称
tax_codestring货物或应税劳务、服务编码
tax_rateinteger税率
tax_prefer_markstring税收优惠政策标识
total_countinteger总记录数

参阅 官方文档

Published on the GitHub by TheNorthMemory