系统-自定义税费-国家税费-列表

税费 - 获取自定义税费方案的国家税率列表

接口信息

  • 接口地址: {your-site-url}/api/skill/tax/get-custom-tax-country-taxs
  • 基础 URL: {your-site-url} 需替换为你自己的独立站 URL 地址,如 https://your-domain.com/apimanager666
  • 请求方式: GET
  • 说明: 此接口用于获取指定自定义税费方案已配置的国家/省税率列表

认证

请求头中需要携带 skill-access-token

Header
skill-access-token {your-skill-access-token} (请替换为你自己的 token)

请求参数 (Query String)

字段 类型 必填 说明
tax_custom_id int ✅ 必填 自定义税费方案 ID
pageNum int 页码,默认 1
pageSize int 每页记录数

请求示例

cURL

curl --location --request GET '{your-site-url}/api/skill/tax/get-custom-country-tax-list?tax_custom_id=20' \
--header 'skill-access-token: {your-skill-access-token}'

返回结果

code200 表示调用成功;code 不为 200 表示调用失败。

成功响应

{
    "code": 200,
    "data": {
        "tax_list": [
            {
                "id": 80,
                "shop_id": 15,
                "tax_custom_id": 20,
                "type": 1,
                "country_code": "GB",
                "state_code": "",
                "tax": "2.60",
                "created_at": "2026-06-01 15:54:55",
                "updated_at": "2026-06-01 15:59:19"
            },
            {
                "id": 81,
                "shop_id": 15,
                "tax_custom_id": 20,
                "type": 1,
                "country_code": "US",
                "state_code": "",
                "tax": "2.90",
                "created_at": "2026-06-01 15:54:55",
                "updated_at": "2026-06-01 15:59:19"
            },
            {
                "id": 82,
                "shop_id": 15,
                "tax_custom_id": 20,
                "type": 2,
                "country_code": "US",
                "state_code": "AS",
                "tax": "2.34",
                "created_at": "2026-06-01 15:54:55",
                "updated_at": "2026-06-01 15:59:19"
            }
        ]
    },
    "message": "success"
}

返回字段说明

字段 类型 说明
code Number 状态码,200 表示成功
message String 执行结果的文字描述
data.tax_list Array[Object] 国家/省税率列表
data.tax_list[].id int 记录 ID
data.tax_list[].shop_id int 店铺 ID
data.tax_list[].tax_custom_id int 所属自定义税费方案 ID
data.tax_list[].type int 类型。1 = 国家默认税率,2 = 省/州税率
data.tax_list[].country_code string 国家简码
data.tax_list[].state_code string 省/州简码。type=1 时为空字符串
data.tax_list[].tax string 税率值
data.tax_list[].created_at string 创建时间
data.tax_list[].updated_at string 最后更新时间

注意事项

  1. tax_custom_id 必填,pageNumpageSize 选填(分页用)
  2. type=1 表示国家默认税率(state_code 为空),type=2 表示省/州级别税率
Copyright © fecify.com 2025 all right reserved,powered by Gitbook该文件修订时间: 2026-06-01 16:06:08

results matching ""

    No results matching ""