---
updatedAt: 2026-10-20T08:07:58.000Z
agentTools:
  projectIndex: https://developer.interlace.money/llms.txt
---

# Set Card BIN Spend Controls

Sets or updates spend controls that define whitelist/blacklist consumption scenarios and MCC rules for determining which transactions are permitted or restricted. </br> The configured controls apply to all applicable cards once updated.

# **Scope of Application**

* **When only** **`cardBinIds`** **are specified**, the whitelist/blacklist restrictions apply to all cards under the corresponding BINs.
* **When only** **`cardIds`** **are specified**, the whitelist/blacklist restrictions apply only to the specified cards.
* **When both** **`cardBinIds`** **and** **`cardIds`** **are specified**, the whitelist/blacklist restrictions apply to the union of the cards matched by the specified BINs and the specified card IDs.

***

* **In MOR mode**, whitelist/blacklist restrictions are configured at the account level by default.
* **In GATEWAY mode**, whitelist/blacklist restrictions can be configured at the sub-account level by specifying the `accountId` field. If `accountId` is not provided, the restrictions are configured at the master account level by default.

***

# **Important Note**

* **Use whitelists with caution.** When a whitelist is configured at the account, BIN, or card level, only the spending scenarios included in the whitelist are allowed at that level. All transactions outside the whitelist will be declined.
* If you only need to restrict specific spending scenarios, configure a **blacklist** at the corresponding level instead.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Infinity Card",
    "description": "Interface Developer Document",
    "version": "v3"
  },
  "externalDocs": {
    "description": "Interface Developer",
    "url": "https://developer.interlace.money/"
  },
  "servers": [
    {
      "url": "https://api-sandbox.interlace.money",
      "description": "Sandbox"
    }
  ],
  "paths": {
    "/open-api/v3/consumption-scenarios": {
      "post": {
        "tags": [
          "Card"
        ],
        "summary": "Set Card BIN Spend Controls",
        "description": "Sets or updates spend controls that define whitelist/blacklist consumption scenarios and MCC rules for determining which transactions are permitted or restricted. </br> The configured controls apply to all applicable cards once updated.",
        "operationId": "consumptionScenarios",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "Universally unique identifier idempotency key. This key is utilized to ensure exactly-once execution of mutating requests.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CardConsumptionLabelUpsertBlacklistOrWhitelistItemDTO"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CardMccAndScenesResponse"
                },
                "example": {
                  "code": "000000",
                  "message": "success",
                  "data": {
                    "id": "2018591701267480577",
                    "keywords": "0909",
                    "usage": "MCC",
                    "listType": "BLACKLIST"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResult"
                },
                "example": {
                  "code": "40001",
                  "message": "Invalid parameter"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "ErrorResult": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Error code",
            "example": "400001"
          },
          "message": {
            "type": "string",
            "description": "Error message",
            "example": "Invalid parameter"
          }
        }
      },
      "CardMccAndScenesResource": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "resource id",
            "format": "int64"
          },
          "keywords": {
            "type": "string",
            "description": "keywords"
          },
          "usage": {
            "type": "string",
            "description": "usage"
          },
          "listType": {
            "type": "string",
            "description": "list type"
          },
          "cardBinIds": {
            "type": "array",
            "description": "card bin list",
            "items": {
              "type": "string",
              "description": "card bin list"
            }
          },
          "cardIds": {
            "type": "array",
            "description": "card id list",
            "items": {
              "type": "string",
              "description": "card id list"
            }
          }
        },
        "description": "Returned data"
      },
      "CardMccAndScenesResponse": {
        "title": "Card MCC and Scenes Response",
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Return code"
          },
          "message": {
            "type": "string",
            "description": "Error message"
          },
          "data": {
            "type": "array",
            "description": "Returned data",
            "items": {
              "$ref": "#/components/schemas/CardMccAndScenesResource"
            }
          }
        },
        "description": "Card MCC and Scenes Response"
      },
      "CardConsumptionLabelUpsertBlacklistOrWhitelistItemDTO": {
        "title": "Card Consumption Label Upsert Blacklist Or Whitelist Item",
        "required": [
          "keywords",
          "listType",
          "usage"
        ],
        "type": "object",
        "properties": {
          "usage": {
            "type": "string",
            "description": "usage: `MCC`,`SCENARIO`,`TRANSACTION_CURRENCY`, if `id` is null then `usage` can not be null"
          },
          "keywords": {
            "type": "string",
            "description": "keywords<ul><li>if `usage` is <b>MCC</b>: keywords must be 4 digits string</li><li>if `usage` is <b>TRANSACTION_CURRENCY</b>: keywords must be 3 digits currency code</li><li>if `usage` is <b>SCENARIO</b>: keywords will be matched against transaction detail info, supports `%` as wildcard for fuzzy matching:<ul><li>`STARLINK` — exact match</li><li>`ChatGPT%` — prefix match</li><li>`%ChatGPT` — suffix match</li><li>`%ChatGPT%` — contains \"ChatGPT\" anywhere</li></ul></li></ul>"
          },
          "id": {
            "type": "integer",
            "description": "id ,if null then insert ,if not null then update",
            "format": "int64"
          },
          "listType": {
            "type": "string",
            "description": "list type: `BLACKLIST`,`WHITELIST`"
          },
          "cardBinIds": {
            "type": "array",
            "description": "card bin id list, if null then all card bin will be applied",
            "items": {
              "type": "string",
              "description": "card bin id list, if null then all card bin will be applied"
            }
          },
          "cardIds": {
            "type": "array",
            "description": "card id list",
            "items": {
              "type": "string",
              "description": "card id list"
            }
          },
          "accountId": {
            "type": "string",
            "description": "account id"
          }
        },
        "description": "Card Consumption Label Upsert Blacklist Or Whitelist Item"
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "description": "API Key",
        "name": "x-access-token",
        "in": "header"
      }
    }
  }
}
```