---
title: Set card controls
slug: crossriver-apis/cards/apis/card-controls/set-card-controls
description: The page explains how to update a card’s spending and authorization rules via API, covering control types, usage limits, restrictions, and request examples.
icon: {"apiMethod":"PUT"}
createdAt: 2026-09-29T15:33:39.893Z
---

## API reference

Limit the amount of money that can be spent through different channels in a given period.

You can update controls on existing card without reissuing the card.

:::ApiMethodV2
```json
{
  "name": "Endpoint: /cardmanagement/v1/cards/{cardId}/controls",
  "method": "PUT",
  "url": "https://sandbox.crbcos.com/cardmanagement/v1/cards/{cardId}/controls",
  "description": "",
  "tab": "examples",
  "examples": {
    "languages": [
      {
        "id": "hIyb6HxBZBiF03IHcJXah",
        "language": "curl",
        "code": "curl --location --request PUT 'https://sandbox.crbcos.com/cardmanagement/v1/cards/cc25620c-d865-4801-9128-b44700ccb94c/controls' \\\n--data '{\n  \"authorizationControls\": [\n    {\n      \"type\": \"country\",\n      \"action\": \"ALLOW\",\n      \"list\": [\n        \"string\"\n      ]\n    }\n  ],\n  \"velocityControls\": [\n    {\n      \"type\": \"pos\",\n      \"action\": \"ALLOW\",\n      \"list\": [\n        {\n          \"period\": \"DAY\",\n          \"amount\": 0,\n          \"usageLimit\": 0\n        }\n      ],\n      \"cashback\": \"ALLOW\"\n    }\n  ]\n}'",
        "customLabel": ""
      },
      {
        "id": "ft5vKqVLm1iBRbf8XC9I5",
        "language": "nodejs",
        "code": "var https = require('follow-redirects').https;\nvar fs = require('fs');\n\nvar options = {\n  'method': 'PUT',\n  'hostname': 'sandbox.crbcos.com',\n  'path': '/cardmanagement/v1/cards/cc25620c-d865-4801-9128-b44700ccb94c/controls',\n  'headers': {\n  },\n  'maxRedirects': 20\n};\n\nvar req = https.request(options, function (res) {\n  var chunks = [];\n\n  res.on(\"data\", function (chunk) {\n    chunks.push(chunk);\n  });\n\n  res.on(\"end\", function (chunk) {\n    var body = Buffer.concat(chunks);\n    console.log(body.toString());\n  });\n\n  res.on(\"error\", function (error) {\n    console.error(error);\n  });\n});\n\nvar postData =  \"{\\r\\n  \\\"authorizationControls\\\": [\\r\\n    {\\r\\n      \\\"type\\\": \\\"country\\\",\\r\\n      \\\"action\\\": \\\"ALLOW\\\",\\r\\n      \\\"list\\\": [\\r\\n        \\\"string\\\"\\r\\n      ]\\r\\n    }\\r\\n  ],\\r\\n  \\\"velocityControls\\\": [\\r\\n    {\\r\\n      \\\"type\\\": \\\"pos\\\",\\r\\n      \\\"action\\\": \\\"ALLOW\\\",\\r\\n      \\\"list\\\": [\\r\\n        {\\r\\n          \\\"period\\\": \\\"DAY\\\",\\r\\n          \\\"amount\\\": 0,\\r\\n          \\\"usageLimit\\\": 0\\r\\n        }\\r\\n      ],\\r\\n      \\\"cashback\\\": \\\"ALLOW\\\"\\r\\n    }\\r\\n  ]\\r\\n}\";\n\nreq.write(postData);\n\nreq.end();",
        "customLabel": ""
      },
      {
        "id": "IKG44Td3ZAx081w4orXVV",
        "language": "python",
        "code": "import requests\n\nurl = \"https://sandbox.crbcos.com/cardmanagement/v1/cards/cc25620c-d865-4801-9128-b44700ccb94c/controls\"\n\npayload = \"{\\r\\n  \\\"authorizationControls\\\": [\\r\\n    {\\r\\n      \\\"type\\\": \\\"country\\\",\\r\\n      \\\"action\\\": \\\"ALLOW\\\",\\r\\n      \\\"list\\\": [\\r\\n        \\\"string\\\"\\r\\n      ]\\r\\n    }\\r\\n  ],\\r\\n  \\\"velocityControls\\\": [\\r\\n    {\\r\\n      \\\"type\\\": \\\"pos\\\",\\r\\n      \\\"action\\\": \\\"ALLOW\\\",\\r\\n      \\\"list\\\": [\\r\\n        {\\r\\n          \\\"period\\\": \\\"DAY\\\",\\r\\n          \\\"amount\\\": 0,\\r\\n          \\\"usageLimit\\\": 0\\r\\n        }\\r\\n      ],\\r\\n      \\\"cashback\\\": \\\"ALLOW\\\"\\r\\n    }\\r\\n  ]\\r\\n}\"\nheaders = {\n\n}\n\nresponse = requests.request(\"PUT\", url, headers=headers, data=payload)\n\nprint(response.text)\n",
        "customLabel": ""
      },
      {
        "id": "JmUimA3fR9SBHutatvEsD",
        "language": "ruby",
        "code": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"https://sandbox.crbcos.com/cardmanagement/v1/cards/cc25620c-d865-4801-9128-b44700ccb94c/controls\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Put.new(url)\nrequest.body = \"{\\r\\n  \\\"authorizationControls\\\": [\\r\\n    {\\r\\n      \\\"type\\\": \\\"country\\\",\\r\\n      \\\"action\\\": \\\"ALLOW\\\",\\r\\n      \\\"list\\\": [\\r\\n        \\\"string\\\"\\r\\n      ]\\r\\n    }\\r\\n  ],\\r\\n  \\\"velocityControls\\\": [\\r\\n    {\\r\\n      \\\"type\\\": \\\"pos\\\",\\r\\n      \\\"action\\\": \\\"ALLOW\\\",\\r\\n      \\\"list\\\": [\\r\\n        {\\r\\n          \\\"period\\\": \\\"DAY\\\",\\r\\n          \\\"amount\\\": 0,\\r\\n          \\\"usageLimit\\\": 0\\r\\n        }\\r\\n      ],\\r\\n      \\\"cashback\\\": \\\"ALLOW\\\"\\r\\n    }\\r\\n  ]\\r\\n}\"\n\nresponse = https.request(request)\nputs response.read_body\n",
        "customLabel": ""
      },
      {
        "id": "afy7cWT-4C2c6vnWR5eOB",
        "language": "go",
        "code": "package main\n\nimport (\n  \"fmt\"\n  \"strings\"\n  \"net/http\"\n  \"io\"\n)\n\nfunc main() {\n\n  url := \"https://sandbox.crbcos.com/cardmanagement/v1/cards/cc25620c-d865-4801-9128-b44700ccb94c/controls\"\n  method := \"PUT\"\n\n  payload := strings.NewReader(`{`+\"\n\"+`\n  \"authorizationControls\": [`+\"\n\"+`\n    {`+\"\n\"+`\n      \"type\": \"country\",`+\"\n\"+`\n      \"action\": \"ALLOW\",`+\"\n\"+`\n      \"list\": [`+\"\n\"+`\n        \"string\"`+\"\n\"+`\n      ]`+\"\n\"+`\n    }`+\"\n\"+`\n  ],`+\"\n\"+`\n  \"velocityControls\": [`+\"\n\"+`\n    {`+\"\n\"+`\n      \"type\": \"pos\",`+\"\n\"+`\n      \"action\": \"ALLOW\",`+\"\n\"+`\n      \"list\": [`+\"\n\"+`\n        {`+\"\n\"+`\n          \"period\": \"DAY\",`+\"\n\"+`\n          \"amount\": 0,`+\"\n\"+`\n          \"usageLimit\": 0`+\"\n\"+`\n        }`+\"\n\"+`\n      ],`+\"\n\"+`\n      \"cashback\": \"ALLOW\"`+\"\n\"+`\n    }`+\"\n\"+`\n  ]`+\"\n\"+`\n}`)\n\n  client := &http.Client {\n  }\n  req, err := http.NewRequest(method, url, payload)\n\n  if err != nil {\n    fmt.Println(err)\n    return\n  }\n  res, err := client.Do(req)\n  if err != nil {\n    fmt.Println(err)\n    return\n  }\n  defer res.Body.Close()\n\n  body, err := io.ReadAll(res.Body)\n  if err != nil {\n    fmt.Println(err)\n    return\n  }\n  fmt.Println(string(body))\n}",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "hIyb6HxBZBiF03IHcJXah"
  },
  "results": {
    "languages": [
      {
        "id": "kcRcUaYhEpL8DHVEgmP34",
        "language": "200",
        "code": "",
        "customLabel": ""
      },
      {
        "id": "LlihbtH7gA8XaUtFWFayL",
        "language": "202",
        "code": ""
      }
    ],
    "selectedLanguageId": "LlihbtH7gA8XaUtFWFayL"
  },
  "request": {
    "pathParameters": [
      {
        "name": "cardId",
        "kind": "required",
        "type": "string",
        "description": "UID format card ID in the Cross River system, which is the id attribute value of the response to Create a card. This is not the number that appears on the card."
      }
    ],
    "queryParameters": [],
    "headerParameters": [],
    "bodyDataParameters": [
      {
        "name": "controlConfigInfo",
        "kind": "required",
        "type": "object",
        "description": "",
        "children": [
          {
            "name": "authorizationControls",
            "kind": "optional",
            "type": "object",
            "description": "Establish rules for card transaction validation",
            "children": [
              {
                "name": "type",
                "kind": "optional",
                "type": "string",
                "description": "- country \n- currency \n- mcc \n- mid "
              },
              {
                "name": "action",
                "kind": "optional",
                "type": "string",
                "description": "- ALLOW \n- DENY "
              },
              {
                "name": "list",
                "kind": "optional",
                "type": "string",
                "description": ""
              }
            ]
          },
          {
            "name": "velocityControls",
            "kind": "optional",
            "type": "object",
            "description": "Spending limits over time periods",
            "children": [
              {
                "name": "type",
                "kind": "optional",
                "type": "string",
                "description": "- pos\n- ecomm\n- gwp\n- withdrawal\n- general_spend"
              },
              {
                "name": "action",
                "kind": "optional",
                "type": "string",
                "description": "- ALLOW\n- DENY"
              },
              {
                "name": "list",
                "kind": "optional",
                "type": "object",
                "description": "",
                "children": [
                  {
                    "name": "period",
                    "kind": "optional",
                    "type": "string",
                    "description": "- DAY\n- WEEK\n- MONTH\n- YEAR\n- TOTAL"
                  },
                  {
                    "name": "amount",
                    "kind": "optional",
                    "type": "integer",
                    "description": "Maximum cumulative transaction amount allowed within the period. "
                  },
                  {
                    "name": "usageLimit",
                    "kind": "optional",
                    "type": "integer",
                    "description": "Number of transactions allowed within the velocity window. Block high-frequency fraud attempts, even when each transaction is small."
                  }
                ]
              },
              {
                "name": "cashback",
                "kind": "optional",
                "type": "string",
                "description": "Controls whether cashback amounts are included in velocity control amount calculations. \nOptions:\n- ALLOW (Cashback amount is included in the velocity control limit calculation)\n- DENY (Cashback amount is excluded from the velocity control limit calculation)"
              }
            ]
          }
        ]
      }
    ],
    "formDataParameters": []
  },
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "response": [],
  "hasTryItOut": false,
  "autoGeneratedAnchorSlug": "endpoint-cardmanagementv1cardscardidcontrols",
  "legacyHash": "x--SPHGtvjW6sA3Mdft10"
}
```
:::

### Combining multiple authorization controls

You can combine multiple authorization control types on a single card. All controls must pass for transaction approval.

**Example - comprehensive control set:**

:::BlockQuote
\{
&#x20; "authorizationControls": \[
&#x20;   \{
&#x20;     "type": "country",
&#x20;     "action": "ALLOW",
&#x20;     "list": \["US"]
&#x20;   },
&#x20;   \{
&#x20;     "type": "currency",
&#x20;     "action": "ALLOW",
&#x20;     "list": \["USD"]
&#x20;   },
&#x20;   \{
&#x20;     "type": "mcc",
&#x20;     "action": "ALLOW",
&#x20;     "list": \["5172", "5541", "5542", "5552"]
&#x20;   },
&#x20;   \{
&#x20;     "type": "mid",
&#x20;     "action": "DENY",
&#x20;     "list": \["BLOCKED\_MERCHANT\_123"]
&#x20;   }
&#x20; ]
}
:::

**Evaluation logic:**

1. ✅ Country must be US
2. ✅ Currency must be USD
3. ✅ MCC must be fuel-related (5172, 5541, 5542, 5552)
4. ✅ MID must exclude BLOCKED\_MERCHANT\_123

All conditions must be satisfied for approval.

