v1

latestOpenAPI 3.1.0Copyright Pismo2026-07-247702,7523.1 MB
Rules

Update card rules

Update rules for a given primary card.

put/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

cardIdinteger required

Primary card ID

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"
    }
  ]
}