settings 提交。RSA-OAEP-AES-256-GCM。| 错误码 | 触发条件 |
|---|---|
VALIDATION.INVALID_PARAMETER | cardCount 无效,或 settings 不受产品支持、不允许自定义。 |
RESOURCE.NOT_FOUND | 卡产品组、产品分配关系或对应币种的钱包不存在。 |
REQUEST.CONFLICT | 所选卡产品未启用。 |
REQUEST.CONFLICT | 同一幂等请求仍在处理中、幂等键已用于不同请求,或已超过 24 小时结果重放期;可通过 X-Operation-Id 查询处理状态。 |
{
"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
}curl --location 'https://api.lampays.com/card-products/10010105/cards/create' \
--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 'X-Request-Id;' \
--header 'X-Platform-Encryption-Key-Id;' \
--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
}'{
"version": "string",
"timestamp": 0,
"success": true,
"code": "string",
"message": "string",
"data": {
"batchBizId": "CCB_ABCDEF1234567890",
"requestedCount": 3,
"acceptedCount": 2,
"outcome": "ACCEPTED",
"stopReason": "BALANCE_INSUFFICIENT"
}
}