| Code | When |
|---|---|
VALIDATION.INVALID_PARAMETER | spending controls are unsupported, non-customizable, or have invalid rule structure |
RESOURCE.NOT_FOUND | card not found or belongs to another workspace |
REQUEST.CONFLICT | linked Slash resource is unavailable |
curl --location 'https://api.lampay.app/api/v1/consumer/card-products/10010105/cards/spending-controls/update' \
--header 'X-Timestamp;' \
--header 'X-Nonce;' \
--header 'X-Signature;' \
--header 'X-Signature-Algorithm;' \
--header 'X-Idempotency-Key;' \
--header 'X-Workspace-Id;' \
--header 'X-Api-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"cardInfoBizId": "VC_ABCDEF1234567890",
"spendingRule": {
"utilizationLimitV2": [
{
"preset": "string",
"limitAmount": {
"amountCents": 0
},
"timezone": "string",
"startDate": "string"
}
],
"transactionSizeLimit": {
"minimum": {
"amountCents": 0
},
"maximum": {
"amountCents": 0
}
}
},
"merchantRule": {
"merchants": [
"string"
],
"restriction": "string"
},
"countryRule": {
"countries": [
"string"
],
"restriction": "string"
}
}'{
"version": "string",
"timestamp": 0,
"success": true,
"code": "string",
"message": "string",
"data": {
"bizId": "VC_ABCDEF1234567890",
"cardBinGroupBizId": "CPG_ABCDEF1234567890",
"cardBinProductBizId": "CBP_ABCDEF1234567890",
"cardWalletBizId": "CW_ABCDEF1234567890",
"cardDisplayName": "Operations Card",
"platformCardDisplayName": "Operations Card",
"cardNetwork": {
"code": "ACTIVE",
"value": 35010102,
"label": "Active"
},
"cardType": {
"code": "ACTIVE",
"value": 35010102,
"label": "Active"
},
"currency": {
"code": "ACTIVE",
"value": 35010102,
"label": "Active",
"scale": 2,
"isFiat": true,
"isStablecoin": false
},
"maskedPan": "**** 4242",
"last4": "4242",
"status": {
"code": "ACTIVE",
"value": 35010102,
"label": "Active"
},
"providerOperationStatus": {
"code": "ACTIVE",
"value": 35010102,
"label": "Active"
},
"providerLastOperationError": "Insufficient wallet balance",
"providerOperationAttempts": 3,
"providerLastOperationAt": 1713629600,
"infoSyncStatus": {
"code": "ACTIVE",
"value": 35010102,
"label": "Active"
},
"providerType": 10010105,
"createdAt": 1713628800,
"updatedAt": 1713629600
}
}