1. 卡片更新
Wayflow
  • 默认模块
    • 接入指南
    • 认证与签名
    • 加密与解密
    • Webhook 通知
    • 错误码与重试
    • 关于SDK
      • SDK 使用指南
      • PHP 快速开始
      • Java 快速开始
      • Node.js / TypeScript 快速开始
      • Python 快速开始
      • Go 快速开始
    • 卡产品组
      • 卡产品组列表(分页)
        POST
      • 卡产品组列表(非分页)
        POST
      • 卡产品组详情
        POST
    • 卡产品
      • 卡产品相关字典
        • 费用模型字典
        • 舍入模式字典
      • 卡产品列表(分页)
        POST
      • 卡产品列表(非分页)
        POST
      • 卡产品详情
        POST
    • 卡钱包
      • 卡钱包划转
        • 卡钱包转出
        • 卡钱包转入
      • 卡钱包相关字典
        • 交易订单状态字典
        • 交易订单流向字典
        • 交易订单审批状态字典
      • 卡钱包查询
        • 卡钱包列表(分页)
        • 卡钱包列表(非分页)
        • 卡钱包详情
    • 卡片交易
      • 交易查询
        • 卡片交易列表(分页)
        • 卡片交易列表(非分页)
        • 卡片交易详情
      • 卡片交易相关字典
        • 交易类型字典
        • 交易状态字典
        • 交易商户国家字典
        • 交易资金流向字典
    • 卡钱包交易
      • 卡钱包交易订单
        • 卡钱包转账订单列表(分页)
        • 卡钱包转账订单列表(非分页)
        • 卡钱包转账订单详情
        • 取消卡钱包转账订单
      • 卡钱包交易流水
        • 卡钱包流水列表(分页)
        • 卡钱包流水列表(非分页)
        • 卡钱包流水详情
    • 卡片
      • 卡片查询
        • 卡片列表(分页)
        • 卡片列表(非分页)
        • 卡片详情
        • 查询卡片敏感信息
      • 卡片发行
        • 发卡预检
        • 发卡
      • 卡片更新
        • 消费控制配置示例
        • 更新卡片消费规则
          POST
        • 更新卡片别名
          POST
      • 卡片状态操作
        • 卡片冻结
        • 卡片解冻
        • 卡片注销
      • 卡片任务
        • 发卡任务详情
        • 发卡任务明细(分页)
        • 批量修改卡片状态
        • 卡片状态任务明细(分页)
        • 卡片状态任务详情
      • 商户查询
        • 商户列表(分页)
        • 商户详情
      • 卡片相关字典
        • 卡片状态字典
        • 国家字典
        • 消费限制类型字典
        • 消费限额周期字典
        • 时区字典
  1. 卡片更新

更新卡片消费规则

POST
/card-products/10010105/cards/spending-controls/update
通过 settings 更新 Slash 卡片消费规则。允许自定义的维度整体替换,锁定维度保留当前值。
本接口要求幂等键,重试同一业务操作时复用原值。
常见错误
错误码触发条件
VALIDATION.INVALID_PARAMETER消费规则不受支持、不允许自定义或结构无效。
RESOURCE.NOT_FOUND卡片不存在或不属于当前工作区。
REQUEST.CONFLICT关联的 Slash 资源不可用。
REQUEST.CONFLICT同一幂等请求仍在处理中、幂等键已用于不同请求,或已超过 24 小时结果重放期;可通过 X-Operation-Id 查询处理状态。

请求参数

Header 参数

Body 参数application/json必填

示例
{
    "cardInfoBizId": "VC_ABCDEF1234567890",
    "settings": {
        "limits": [
            {
                "period": "DAILY",
                "amountMinor": 50000,
                "timezone": "Asia/Shanghai",
                "startDate": "2026-09-01"
            }
        ],
        "transaction": {
            "minMinor": 100,
            "maxMinor": 100000
        },
        "merchantRule": {
            "mode": "ALLOW",
            "merchantIds": [
                "string"
            ]
        },
        "countryRule": {
            "mode": "ALLOW",
            "countries": [
                "string"
            ]
        }
    }
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location 'https://api.lampays.com/card-products/10010105/cards/spending-controls/update' \
--header 'X-API-VERSION: 2' \
--header 'X-Api-Key: {{api_key}}' \
--header 'X-Timestamp;' \
--header 'X-Nonce;' \
--header 'X-Signature;' \
--header 'X-Signature-Algorithm: RSA-SHA256' \
--header 'X-Idempotency-Key;' \
--header 'Content-Type: application/json' \
--data '{
    "cardInfoBizId": "VC_ABCDEF1234567890",
    "settings": {
        "limits": [
            {
                "period": "DAILY",
                "amountMinor": 50000,
                "timezone": "Asia/Shanghai",
                "startDate": "2026-09-01"
            }
        ],
        "transaction": {
            "minMinor": 100,
            "maxMinor": 100000
        },
        "merchantRule": {
            "mode": "ALLOW",
            "merchantIds": [
                "string"
            ]
        },
        "countryRule": {
            "mode": "ALLOW",
            "countries": [
                "string"
            ]
        }
    }
}'

返回响应

🟢200成功
application/json
请求成功。
Headers

Bodyapplication/json

示例
{
    "version": "string",
    "timestamp": 0,
    "success": true,
    "code": "string",
    "message": "string",
    "data": {
        "bizId": "VC_ABCDEF1234567890",
        "userCardProductGroupBizId": "UCPG_ABCDEF1234567890",
        "platformCardProductBizId": "PLCP_ABCDEF1234567890",
        "cardWalletBizId": "UCPGW_ABCDEF1234567890",
        "cardDisplayName": "Operations Card",
        "platformCardDisplayName": "Operations Card",
        "cardNetwork": {
            "code": "ACTIVE",
            "value": 35010102,
            "label": "Active"
        },
        "cardType": {
            "code": "ACTIVE",
            "value": 35010102,
            "label": "Active"
        },
        "cardFundingModel": {
            "code": "ACTIVE",
            "value": 35010102,
            "label": "Active"
        },
        "currency": {
            "code": "ACTIVE",
            "value": 35010102,
            "label": "Active",
            "scale": 2,
            "isFiat": true,
            "isStablecoin": false
        },
        "maskedPan": "**** 4242",
        "last4": "4242",
        "status": {
            "code": "ACTIVE",
            "value": 35010102,
            "label": "Active"
        },
        "providerOperationStatus": {
            "code": "ACTIVE",
            "value": 35010102,
            "label": "Active"
        },
        "infoSyncStatus": {
            "code": "ACTIVE",
            "value": 35010102,
            "label": "Active"
        },
        "providerType": 10010105,
        "spentAmount": 0,
        "limitAmount": 0,
        "availableAmount": 0,
        "createdAt": 1713628800000,
        "updatedAt": 1713629600000
    }
}
修改于 2026-09-18 15:16:39
上一页
消费控制配置示例
下一页
更新卡片别名
Built with