RSA-OAEP-AES-256-GCM。| 错误码 | 触发条件 |
|---|---|
VALIDATION.INVALID_PARAMETER | 消费规则或 initialAmount 无效,或规则不符合卡产品组预设。 |
RESOURCE.NOT_FOUND | 卡产品组、产品分配、产品、钱包或服务商资源不存在。 |
REQUEST.CONFLICT | 所选卡产品或服务商资源未启用。 |
REQUEST.CONFLICT | 同一幂等请求仍在处理中、幂等键已用于不同请求,或已超过 24 小时结果重放期;可通过 X-Operation-Id 查询处理状态。 |
{
"userCardProductGroupBizId": "UCPG_ABCDEF1234567890",
"platformCardProductBizId": "PLCP_ABCDEF1234567890",
"cardDisplayName": "Travel Card",
"cardCount": 1,
"settings": {
"limits": [
{
"period": "DAILY",
"amountMinor": 50000
},
{
"period": "MONTHLY",
"amountMinor": 500000
}
],
"transaction": {
"maxMinor": 10000
}
}
}curl --location '/card-products/10010106/shared/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-Signature-Version: 2' \
--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": "Travel Card",
"cardCount": 1,
"settings": {
"limits": [
{
"period": "DAILY",
"amountMinor": 50000
},
{
"period": "MONTHLY",
"amountMinor": 500000
}
],
"transaction": {
"maxMinor": 10000
}
}
}'{
"version": "string",
"timestamp": 0,
"success": true,
"code": "string",
"message": "string",
"data": {
"batchBizId": "CCB_ABCDEF1234567890",
"requestedCount": 3,
"acceptedCount": 2,
"outcome": "ACCEPTED",
"stopReason": "BALANCE_INSUFFICIENT"
}
}