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/create/precheck
检查产品分配、钱包、卡片额度、余额及 settings 消费规则,不会实际发卡。
常见错误
错误码触发条件
VALIDATION.INVALID_PARAMETERcardCount 无效,或 settings 不受产品支持、不允许自定义。
RESOURCE.NOT_FOUND卡产品组、产品分配关系或对应币种的钱包不存在。
REQUEST.CONFLICT所选卡产品未启用。

请求参数

Header 参数

Body 参数application/json必填

示例
{
    "userCardProductGroupBizId": "UCPG_ABCDEF1234567890",
    "platformCardProductBizId": "PLCP_ABCDEF1234567890",
    "cardDisplayName": "Operations Card",
    "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"
            ]
        },
        "singleUse": false
    },
    "cardCount": 3
}

请求示例代码

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/create/precheck' \
--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 'Content-Type: application/json' \
--data '{
    "userCardProductGroupBizId": "UCPG_ABCDEF1234567890",
    "platformCardProductBizId": "PLCP_ABCDEF1234567890",
    "cardDisplayName": "Operations Card",
    "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"
            ]
        },
        "singleUse": false
    },
    "cardCount": 3
}'

返回响应

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

示例
{
    "version": "string",
    "timestamp": 0,
    "success": true,
    "code": "string",
    "message": "string",
    "data": {
        "allowed": true,
        "requestedCount": 3,
        "quotaAllowed": true,
        "maxTotalCardCount": 100,
        "totalCreatedCardCount": 25,
        "remainingQuota": 75,
        "balanceAllowed": true,
        "issuanceFeePerCard": 200,
        "totalIssuanceFee": 600,
        "walletBalance": 50000,
        "balanceAfterIssuance": 49400,
        "initialAmountPerCard": 2550,
        "totalInitialAmount": 7650,
        "failureReason": "Insufficient quota",
        "initialRechargeFeePerCard": 100,
        "totalInitialRechargeFee": 300,
        "totalFee": 900,
        "totalRequiredAmount": 8550,
        "feeItems": [
            {
                "feeType": {
                    "code": "ACTIVE",
                    "value": 35010102,
                    "label": "Active"
                },
                "perCard": 25,
                "total": 50,
                "amount": 50
            }
        ]
    }
}
修改于 2026-09-18 15:16:51
上一页
查询卡片敏感信息
下一页
发卡
Built with