RSA-OAEP-AES-256-GCM。| 错误码 | 触发条件 |
|---|---|
VALIDATION.INVALID_PARAMETER | cardCount 无效,或开卡设置不受产品支持、不允许自定义。 |
RESOURCE.NOT_FOUND | 卡产品组、产品分配关系或对应币种的钱包不存在。 |
REQUEST.CONFLICT | 卡产品未启用。 |
REQUEST.CONFLICT | 同一幂等请求仍在处理中,或幂等键已用于不同请求。 |
{
"userCardProductGroupBizId": "UCPG_ABCDEF1234567890",
"platformCardProductBizId": "PLCP_ABCDEF1234567890",
"cardDisplayName": "Operations Card",
"settings": {
"spendingConstraint": {
"spendingRule": {
"utilizationLimit": {
"preset": "daily",
"limitAmount": {
"amountCents": 0
},
"timezone": "Asia/Shanghai",
"startDate": "2026-08-12"
},
"transactionSizeLimit": {
"minimum": {
"amountCents": 0
},
"maximum": {
"amountCents": 0
}
}
},
"merchantRule": {
"merchants": [
"string"
],
"restriction": "string"
},
"countryRule": {
"countries": [
"string"
],
"restriction": "string"
}
},
"isSingleUse": true
},
"cardCount": 3
}curl --location '/card-products/10010105/cards/create' \
--header 'X-API-VERSION: 1' \
--header 'X-Api-Key: {{api_key}}' \
--header 'X-Timestamp;' \
--header 'X-Nonce;' \
--header 'X-Signature;' \
--header 'X-Signature-Algorithm;' \
--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": {
"spendingConstraint": {
"spendingRule": {
"utilizationLimit": {
"preset": "daily",
"limitAmount": {
"amountCents": 0
},
"timezone": "Asia/Shanghai",
"startDate": "2026-08-12"
},
"transactionSizeLimit": {
"minimum": {
"amountCents": 0
},
"maximum": {
"amountCents": 0
}
}
},
"merchantRule": {
"merchants": [
"string"
],
"restriction": "string"
},
"countryRule": {
"countries": [
"string"
],
"restriction": "string"
}
},
"isSingleUse": true
},
"cardCount": 3
}'{
"version": "string",
"timestamp": 0,
"success": true,
"code": "string",
"message": "string",
"data": {
"batchBizId": "CCB_ABCDEF1234567890",
"requestedCount": 3,
"acceptedCount": 3,
"outcome": "ACCEPTED"
}
}