系统-自定义税费-更新

税费 - 编辑自定义税费方案名称

接口信息

  • 接口地址: {your-site-url}/api/skill/tax/update-custom-tax
  • 基础 URL: {your-site-url} 需替换为你自己的独立站 URL 地址,如 https://your-domain.com/apimanager666
  • 请求方式: POST
  • Content-Type: application/json
  • 说明: 此接口用于修改自定义税费方案的名称

认证

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

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

请求参数 (JSON Body)

字段 类型 必填 说明
id int ✅ 必填 自定义税费方案 ID
title string ✅ 必填 新的方案名称

请求示例

cURL

curl --location --request POST '{your-site-url}/api/skill/tax/update-custom-tax' \
--header 'skill-access-token: {your-skill-access-token}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "id": 23,
    "title": "terry custom tax2"
}'

返回结果

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

成功响应

{
    "code": 200,
    "data": {
        "id": 23,
        "shop_id": 15,
        "title": "terry custom tax2",
        "product_count": 0,
        "country_state_count": 0,
        "created_at": "2026-06-01 13:56:01",
        "updated_at": "2026-06-01 13:57:37"
    },
    "message": "success"
}

返回字段说明

字段 类型 说明
code Number 状态码,200 表示成功
message String 执行结果的文字描述
data Object 更新后的方案信息
data.id int 自定义税费方案 ID
data.shop_id int 店铺 ID
data.title string 方案名称
data.product_count int 关联的商品数量
data.country_state_count int 已配置的国家/州数量
data.created_at string 创建时间
data.updated_at string 最后更新时间

注意事项

  1. idtitle 均为必填
  2. 此接口仅修改方案名称,不涉及税率配置
Copyright © fecify.com 2025 all right reserved,powered by Gitbook该文件修订时间: 2026-06-01 13:58:18

results matching ""

    No results matching ""