v1
latestOpenAPI 3.1.0Copyright Pismo2026-07-247702,7523.1 MBRules
Create rules
Create rules for a primary card.
post/flex_credentials/v1/vfc/rules/cards/{cardId}
Path parameters
cardIdstring required
Card ID
Headers
access_tokenstring required
Access token. Tokens can expire quickly, which can result in a 401 Unauthorized error.
Request body
Example request
{
"rules": [
{
"cardId": 6743052,
"name": "My Debit Card",
"rulePriority": 1,
"scope": {
"controlType": "TCT_AUTO_PAY",
"cardHolderBillAmount": {
"maxAmount": 20.5,
"minAmount": 10.5
},
"timeRange": {
"startTime": "2025-05-13T23:30:52.123Z",
"endTime": "2025-05-13T23:30:52.123Z"
}
}
}
]
}Response
Success
Example response
{
"cardId": 6743052,
"rules": [
{
"cardId": 6743052,
"rulePriority": 1,
"scope": {
"controlType": "TCT_AUTO_PAY",
"cardHolderBillAmount": {
"maxAmount": 20.5,
"minAmount": 10.5
},
"timeRange": {
"startTime": "2025-05-13T23:30:52.123Z",
"endTime": "2025-05-13T23:30:52.123Z"
}
},
"definedBy": "CARDHOLDER",
"ruleId": "v-301-b0c3dfae-0dd7-40b6-9272-5fa466804a8a"
}
]
}