settings 不传或传 {},不接受 initialAmount。| 错误码 | 触发条件 |
|---|---|
RESOURCE.NOT_FOUND | 卡产品组、产品、钱包或服务商资源不存在。 |
VALIDATION.INVALID_PARAMETER | 产品不是预付卡、settings 不为空或请求参数无效。 |
REQUEST.CONFLICT | 所选卡产品或服务商资源未启用。 |
{
"userCardProductGroupBizId": "UCPG_ABCDEF1234567890",
"platformCardProductBizId": "PLCP_ABCDEF1234567890",
"cardDisplayName": "Travel Card",
"settings": null,
"cardCount": 1
}curl --location 'https://api.lampays.com/card-products/10010107/prepaid/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": "Travel Card",
"settings": null,
"cardCount": 1
}'{
"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
}
]
}
}