> ## Documentation Index
> Fetch the complete documentation index at: https://www.marqeta.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# MCC Groups

> In the Marqeta platform, you can assign spend controls based on merchant categories, which specify the types of goods or services offered by a business.

export const EndpointCard = ({method = "API", title, children, href, arrow = true}) => {
  const METHOD_STYLES = {
    GET: {
      bg: "mint-bg-green-400/20 dark:mint-bg-green-400/20",
      text: "mint-text-green-700 dark:mint-text-green-400",
      border: "mint-border-green-300 dark:mint-border-green-700"
    },
    POST: {
      bg: "mint-bg-blue-400/20 dark:mint-bg-blue-400/20",
      text: "mint-text-blue-700 dark:mint-text-blue-400"
    },
    PUT: {
      bg: "mint-bg-yellow-400/20 dark:mint-bg-yellow-400/20",
      text: "mint-text-yellow-700 dark:mint-text-yellow-400"
    },
    PATCH: {
      bg: "mint-bg-orange-400/20 dark:mint-bg-orange-400/20",
      text: "mint-text-orange-700 dark:mint-text-orange-400"
    },
    DELETE: {
      bg: "mint-bg-red-400/20 dark:mint-bg-red-400/20",
      text: "mint-text-red-700 dark:mint-text-red-400"
    },
    API: {
      bg: "mint-bg-black",
      text: "mint-text-white"
    }
  };
  const MethodBadge = ({method}) => {
    const style = METHOD_STYLES[method?.toUpperCase()] ?? METHOD_STYLES.GET;
    return <span className={`
          method-pill rounded-lg font-semibold px-1.5 py-0.5 text-xs leading-5 ${style.bg} ${style.text}`}>
        {method?.toUpperCase()}
      </span>;
  };
  const content = <div className="group flex items-center gap-4 border border-gray-200 dark:border-gray-700 rounded-xl p-5 hover:border-gray-400 dark:hover:border-gray-500 hover:shadow-md transition-all cursor-pointer">
      {}
      <div className="shrink-0">
        <MethodBadge method={method} />
      </div>
      {}
      <div className="flex-1 min-w-0">
        <p className="font-semibold text-gray-900 dark:text-white text-sm leading-snug">{title}</p>
        {children && <p className="mt-1 text-sm text-gray-500 dark:text-gray-400 line-clamp-2">{children}</p>}
      </div>
    </div>;
  if (!href) return content;
  return <a href={href} className="block no-underline border-b-0 mb-2">
      {content}
    </a>;
};

A merchant category code (MCC) is a four-digit number assigned by a card network (Visa or Mastercard) to a business, based on the goods or services the business offers. On the Marqeta platform, an MCC group defines a set of MCCs. You can include an MCC group within a spend control to limit user spending at a set of merchants.

An MCC group also allows you to automatically increase authorization amounts and to control the expiration of authorizations for the specified MCCs. By default, these controls apply to all cards in your program. An MCC group authorization control can have exceptions defined at the card product level.

See [Controlling Spending](/developer-guides/controlling-spending/) for a tutorial that walks you through the creation of a spend control, as well as links to more information about merchant category codes.

<h2 id="post_mccgroups">
  Create MCC group
</h2>

**Action:** `POST`\
**Endpoint:** `/mccgroups`

{/* <EndpointCard
title="Creates an MCC group"
path="/mccgroups"
method="post"
/> */}

Use this endpoint to create an MCC group.

<h3 id="_request_body">
  Request body
</h3>

| Fields                                                                                           | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| active<br /><br />boolean<br /><br />Optional                                                    | Indicates if the group is active or inactive.<br /><br />**Allowable Values:**<br /><br />`true`, `false`<br /><br />**Default value:**<br />`false`                                                                                                                                                                                                                                                                                                                                                                    |
| config<br /><br />object<br /><br />Optional                                                     | Allows for configuration options for this group, including control over the expiration of authorizations and automatic increases to the authorization amount.<br /><br />**Allowable Values:**<br /><br />`authorization_controls`                                                                                                                                                                                                                                                                                      |
| config.**authorization\_controls**<br /><br />object<br /><br />Optional                         | Controls the expiration of authorizations and automatic increases to the authorization amount for MCCs specified in this group.<br /><br />By default, these authorization controls apply program-wide, meaning that they apply to every card in your program. You can, however, exempt cards associated with any particular card product by setting that card product’s `allow_mcc_group_authorization_controls` field to `false`.<br /><br />**Allowable Values:**<br /><br />`hold_expiration_days`, `hold_increase` |
| config.authorization\_controls.**hold\_expiration\_days**<br /><br />integer<br /><br />Optional | Specifies the number of days after which an authorization associated with this group expires.<br /><br />**Allowable Values:**<br /><br />1–100<br /><br />**Default value:**<br />7                                                                                                                                                                                                                                                                                                                                    |
| config.authorization\_controls.**hold\_increase**<br /><br />object<br /><br />Optional          | Controls automatic increases to the authorization amount for MCCs specified in this group.<br /><br />**Allowable Values:**<br /><br />`type`, `value`                                                                                                                                                                                                                                                                                                                                                                  |
| config.authorization\_controls.hold\_increase.**type**<br /><br />string<br /><br />Required     | Controls whether the `value` field represents a fixed amount or a percentage of the authorization amount.<br /><br />**Allowable Values:**<br /><br />`AMOUNT`, `PERCENT`, `UP_TO_LIMIT`<br /><br />**Default value:**<br />`AMOUNT`                                                                                                                                                                                                                                                                                    |
| config.authorization\_controls.hold\_increase.**value**<br /><br />decimal<br /><br />Required   | Specifies the amount of the automatic increase to the authorization amount.<br /><br />The `type` field controls whether this amount is a fixed amount or a percentage.<br /><br />**Allowable Values:**<br /><br />Format: 0.00                                                                                                                                                                                                                                                                                        |
| mccs<br /><br />array of objects<br /><br />Required                                             | The set of merchant category codes that you want to include in this group. For each element, valid characters are 0-9, and the length must be 4 digits. You can also specify a range such as "9876-9880". An MCC can belong to more than one group.<br /><br />**Allowable Values:**<br /><br />Existing merchant category codes                                                                                                                                                                                        |
| name<br /><br />string<br /><br />Required                                                       | Name of the MCC group.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| token<br /><br />string<br /><br />Optional                                                      | Unique identifier of the MCC group.<br /><br />If you do not include a token, the system will generate one automatically. This token is necessary for use in other API calls, so we recommend that rather than let the system generate one, you use a simple string that is easy to remember. This value cannot be updated.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                                                                      |

<h3 id="_sample_request_body">
  Sample request body
</h3>

```json JSON lines wrap theme={null}
{
  "token": "my_mccgroup_01",
  "name": "My MCC Group 01",
  "mccs": [
    "0123",
    "2224-2230",
    "3876"
  ],
  "active": true,
  "config": {
    "authorization_controls": {
      "hold_increase": {
        "type": "PERCENT",
        "value": 20
      },
      "hold_expiration_days": 2
    }
  }
}
```

<h3 id="_response_body">
  Response body
</h3>

| Fields                                                                                                         | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| -------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| active<br /><br />boolean<br /><br />Conditionally returned                                                    | Indicates if the group is active or inactive.<br /><br />**Allowable Values:**<br /><br />`true`, `false`<br /><br />**Default value:**<br />`false`                                                                                                                                                                                                                                                                                                                                                                    |
| config<br /><br />object<br /><br />Conditionally returned                                                     | Allows for configuration options for this group, including control over the expiration of authorizations and automatic increases to the authorization amount.<br /><br />**Allowable Values:**<br /><br />`authorization_controls`                                                                                                                                                                                                                                                                                      |
| config.**authorization\_controls**<br /><br />object<br /><br />Conditionally returned                         | Controls the expiration of authorizations and automatic increases to the authorization amount for MCCs specified in this group.<br /><br />By default, these authorization controls apply program-wide, meaning that they apply to every card in your program. You can, however, exempt cards associated with any particular card product by setting that card product’s `allow_mcc_group_authorization_controls` field to `false`.<br /><br />**Allowable Values:**<br /><br />`hold_expiration_days`, `hold_increase` |
| config.authorization\_controls.**hold\_expiration\_days**<br /><br />integer<br /><br />Conditionally returned | Specifies the number of days after which an authorization associated with this group expires.<br /><br />**Allowable Values:**<br /><br />1–100<br /><br />**Default value:**<br />7                                                                                                                                                                                                                                                                                                                                    |
| config.authorization\_controls.**hold\_increase**<br /><br />object<br /><br />Conditionally returned          | Controls automatic increases to the authorization amount for MCCs specified in this group.<br /><br />**Allowable Values:**<br /><br />`type`, `value`                                                                                                                                                                                                                                                                                                                                                                  |
| config.authorization\_controls.hold\_increase.**type**<br /><br />string<br /><br />Returned                   | Controls whether the `value` field represents a fixed amount or a percentage of the authorization amount.<br /><br />**Allowable Values:**<br /><br />`AMOUNT`, `PERCENT`, `UP_TO_LIMIT`<br /><br />**Default value:**<br />`AMOUNT`                                                                                                                                                                                                                                                                                    |
| config.authorization\_controls.hold\_increase.**value**<br /><br />decimal<br /><br />Returned                 | Specifies the amount of the automatic increase to the authorization amount.<br /><br />The `type` field controls whether this amount is a fixed amount or a percentage.<br /><br />**Allowable Values:**<br /><br />Format: 0.00                                                                                                                                                                                                                                                                                        |
| mccs<br /><br />array of objects<br /><br />Returned                                                           | The set of merchant category codes that you want to include in this group. For each element, valid characters are 0-9, and the length must be 4 digits. You can also specify a range such as "9876-9880". An MCC can belong to more than one group.<br /><br />**Allowable Values:**<br /><br />Existing merchant category codes                                                                                                                                                                                        |
| name<br /><br />string<br /><br />Returned                                                                     | Name of the MCC group.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| token<br /><br />string<br /><br />Conditionally returned                                                      | Unique identifier of the MCC group.<br /><br />If you do not include a token, the system will generate one automatically. This token is necessary for use in other API calls, so we recommend that rather than let the system generate one, you use a simple string that is easy to remember. This value cannot be updated.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                                                                      |

<h3 id="_sample_response_body">
  Sample response body
</h3>

```json JSON lines wrap theme={null}
{
  "token": "my_mccgroup_01",
  "name": "My MCC Group 01",
  "mccs": [
    "0123",
    "2224-2230",
    "3876"
  ],
  "active": true,
  "config": {
    "authorization_controls": {
      "hold_increase": {
        "type": "PERCENT",
        "value": 20
      },
      "hold_expiration_days": 2
    }
  }
}
```

<h2 id="get_mccgroups">
  List MCC groups
</h2>

**Action:** `GET`\
**Endpoint:** `/mccgroups`

{/* <EndpointCard
title="Lists all MCC groups"
path="/mccgroups"
method="get"
/> */}

Use this endpoint to either list all MCC groups defined in your program or list all MCC groups that contain a specified code.

This endpoint supports [field filtering](/core-api/field-filtering/) and [pagination](/core-api/sorting-and-pagination/).

<h3 id="_url_query_parameters">
  URL query parameters
</h3>

| Fields                                              | Description                                                                                                                                                                                                                                                                                                                                                                                                               |
| --------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| mcc<br /><br />string<br /><br />Optional           | Returns all MCC groups that contain the specified merchant category code.<br /><br />**Allowable Values:**<br /><br />Valid merchant category code                                                                                                                                                                                                                                                                        |
| count<br /><br />integer<br /><br />Optional        | Number of resources to retrieve.<br /><br />**Allowable Values:**<br /><br />1-10                                                                                                                                                                                                                                                                                                                                         |
| start\_index<br /><br />integer<br /><br />Optional | Sort order index of the first resource in the returned array.<br /><br />**Allowable Values:**<br /><br />Any integer<br /><br />**Default value:**<br />0                                                                                                                                                                                                                                                                |
| sort\_by<br /><br />string<br /><br />Optional      | Field on which to sort. Use any field in the resource model, or one of the system fields `lastModifiedTime` or `createdTime`. Prefix the field name with a hyphen (`-`) to sort in descending order. Omit the hyphen to sort in ascending order.<br /><br />**Allowable Values:**<br /><br />`createdTime`, `lastModifiedTime`, or any field in the resource model<br /><br />**Default value:**<br />`-lastModifiedTime` |

<h3 id="_response_body_2">
  Response body
</h3>

| Fields                                                                                                                 | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ---------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| count<br /><br />integer<br /><br />Conditionally returned                                                             | Number of resources to retrieve.<br /><br />This field is returned if there are resources in your returned array.<br /><br />**Allowable Values:**<br /><br />1-10                                                                                                                                                                                                                                                                                                                                                      |
| data<br /><br />array of objects<br /><br />Conditionally returned                                                     | Array of MCC group objects.<br /><br />Objects are returned as appropriate to your query.<br /><br />**Allowable Values:**<br /><br />Valid array of one or more MCC group objects                                                                                                                                                                                                                                                                                                                                      |
| data\[].**active**<br /><br />boolean<br /><br />Conditionally returned                                                | Indicates if the group is active or inactive.<br /><br />**Allowable Values:**<br /><br />`true`, `false`<br /><br />**Default value:**<br />`false`                                                                                                                                                                                                                                                                                                                                                                    |
| data\[].**config**<br /><br />object<br /><br />Conditionally returned                                                 | Allows for configuration options for this group, including control over the expiration of authorizations and automatic increases to the authorization amount.<br /><br />**Allowable Values:**<br /><br />`authorization_controls`                                                                                                                                                                                                                                                                                      |
| data\[].config.**authorization\_controls**<br /><br />object<br /><br />Conditionally returned                         | Controls the expiration of authorizations and automatic increases to the authorization amount for MCCs specified in this group.<br /><br />By default, these authorization controls apply program-wide, meaning that they apply to every card in your program. You can, however, exempt cards associated with any particular card product by setting that card product’s `allow_mcc_group_authorization_controls` field to `false`.<br /><br />**Allowable Values:**<br /><br />`hold_expiration_days`, `hold_increase` |
| data\[].config.authorization\_controls.**hold\_expiration\_days**<br /><br />integer<br /><br />Conditionally returned | Specifies the number of days after which an authorization associated with this group expires.<br /><br />**Allowable Values:**<br /><br />1–100<br /><br />**Default value:**<br />7                                                                                                                                                                                                                                                                                                                                    |
| data\[].config.authorization\_controls.**hold\_increase**<br /><br />object<br /><br />Conditionally returned          | Controls automatic increases to the authorization amount for MCCs specified in this group.<br /><br />**Allowable Values:**<br /><br />`type`, `value`                                                                                                                                                                                                                                                                                                                                                                  |
| data\[].config.authorization\_controls.hold\_increase.**type**<br /><br />string<br /><br />Returned                   | Controls whether the `value` field represents a fixed amount or a percentage of the authorization amount.<br /><br />**Allowable Values:**<br /><br />`AMOUNT`, `PERCENT`, `UP_TO_LIMIT`<br /><br />**Default value:**<br />`AMOUNT`                                                                                                                                                                                                                                                                                    |
| data\[].config.authorization\_controls.hold\_increase.**value**<br /><br />decimal<br /><br />Returned                 | Specifies the amount of the automatic increase to the authorization amount.<br /><br />The `type` field controls whether this amount is a fixed amount or a percentage.<br /><br />**Allowable Values:**<br /><br />Format: 0.00                                                                                                                                                                                                                                                                                        |
| data\[].**mccs**<br /><br />array of objects<br /><br />Returned                                                       | The set of merchant category codes that you want to include in this group. For each element, valid characters are 0-9, and the length must be 4 digits. You can also specify a range such as "9876-9880". An MCC can belong to more than one group.<br /><br />**Allowable Values:**<br /><br />Existing merchant category codes                                                                                                                                                                                        |
| data\[].**name**<br /><br />string<br /><br />Returned                                                                 | Name of the MCC group.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| data\[].**token**<br /><br />string<br /><br />Conditionally returned                                                  | Unique identifier of the MCC group.<br /><br />If you do not include a token, the system will generate one automatically. This token is necessary for use in other API calls, so we recommend that rather than let the system generate one, you use a simple string that is easy to remember. This value cannot be updated.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                                                                      |
| end\_index<br /><br />integer<br /><br />Conditionally returned                                                        | Sort order index of the last resource in the returned array.<br /><br />This field is returned if there are resources in your returned array.<br /><br />**Allowable Values:**<br /><br />Any integer                                                                                                                                                                                                                                                                                                                   |
| is\_more<br /><br />boolean<br /><br />Conditionally returned                                                          | A value of `true` indicates that more unreturned resources exist. A value of `false` indicates that no more unreturned resources exist.<br /><br />This field is returned if there are resources in your returned array.<br /><br />**Allowable Values:**<br /><br />`true`, `false`                                                                                                                                                                                                                                    |
| start\_index<br /><br />integer<br /><br />Conditionally returned                                                      | Sort order index of the first resource in the returned array.<br /><br />This field is returned if there are resources in your returned array.<br /><br />**Allowable Values:**<br /><br />Any integer                                                                                                                                                                                                                                                                                                                  |

<h3 id="_sample_response_body_2">
  Sample response body
</h3>

```json JSON expandable lines wrap theme={null}
{
  "count": 2,
  "start_index": 0,
  "end_index": 1,
  "is_more": false,
  "data": [
    {
      "token": "my_mccgroup_02",
      "name": "My MCC Group 02",
      "mccs": [
        "0123",
        "2224-2230"
      ],
      "active": true,
      "config": {
        "authorization_controls": {
          "hold_increase": {
            "type": "AMOUNT",
            "value": 10,
            "hold_expiration_days": 3
          }
        }
      }
    },
    {
      "token": "my_mccgroup_01",
      "name": "My MCC Group 01",
      "mccs": [
        "0123",
        "2224-2230",
        "3876"
      ],
      "active": true,
      "config": {
        "authorization_controls": {
          "hold_increase": {
            "type": "PERCENT",
            "value": 20
          },
          "hold_expiration_days": 2
        }
      }
    }
  ]
}
```

<h2 id="put_mccgroups_token">
  Update MCC group
</h2>

**Action:** `PUT`\
**Endpoint:** `/mccgroups/{token}`

{/* <EndpointCard
title="Updates an MCC group"
path="/mccgroups/{token}"
method="put"
/> */}

Use this endpoint to update an MCC group. Include the `token` path parameter to identify the MCC group to update. You must pass all the merchant category codes you want included in the group, including existing ones you want to retain.

<h3 id="_url_path_parameters">
  URL path parameters
</h3>

| Fields                                      | Description                                                                                                                                                                 |
| ------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| token<br /><br />string<br /><br />Required | Unique identifier of the MCC group. Send a `GET` request to `/mccgroups` to retrieve MCC group tokens.<br /><br />**Allowable Values:**<br /><br />Existing MCC group token |

<h3 id="_request_body_2">
  Request body
</h3>

| Fields                                                                                           | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| active<br /><br />boolean<br /><br />Optional                                                    | Indicates whether the MCC group is active or inactive.<br /><br />**Allowable Values:**<br /><br />`true`, `false`<br /><br />**Default value:**<br />`false`                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| config<br /><br />object<br /><br />Optional                                                     | Allows for configuration options for this group, including control over the expiration of authorizations and automatic increases to the authorization amount.<br /><br />**Allowable Values:**<br /><br />`authorization_controls`                                                                                                                                                                                                                                                                                                                                                                                    |
| config.**authorization\_controls**<br /><br />object<br /><br />Optional                         | Controls the expiration of authorizations and automatic increases to the authorization amount for MCCs specified in this group.<br /><br />By default, these authorization controls apply program-wide, meaning that they apply to every card in your program. You can, however, exempt cards associated with any particular card product by setting that card product’s `allow_mcc_group_authorization_controls` field to `false`.<br /><br />**Allowable Values:**<br /><br />`hold_expiration_days`, `hold_increase`                                                                                               |
| config.authorization\_controls.**hold\_expiration\_days**<br /><br />integer<br /><br />Optional | Specifies the number of days after which an authorization associated with this group expires.<br /><br />**Allowable Values:**<br /><br />1–100<br /><br />**Default value:**<br />7                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| config.authorization\_controls.**hold\_increase**<br /><br />object<br /><br />Optional          | Controls automatic increases to the authorization amount for MCCs specified in this group.<br /><br />**Allowable Values:**<br /><br />`type`, `value`                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| config.authorization\_controls.hold\_increase.**type**<br /><br />string<br /><br />Required     | Controls whether the `value` field represents a fixed amount or a percentage of the authorization amount.<br /><br />**Allowable Values:**<br /><br />`AMOUNT`, `PERCENT`, `UP_TO_LIMIT`<br /><br />**Default value:**<br />`AMOUNT`                                                                                                                                                                                                                                                                                                                                                                                  |
| config.authorization\_controls.hold\_increase.**value**<br /><br />decimal<br /><br />Required   | Specifies the amount of the automatic increase to the authorization amount.<br /><br />The `type` field controls whether this amount is a fixed amount or a percentage.<br /><br />**Allowable Values:**<br /><br />Format: 0.00                                                                                                                                                                                                                                                                                                                                                                                      |
| mccs<br /><br />array of strings<br /><br />Optional                                             | Set of merchant category codes that you want to include in this group. For each element, valid characters are 0-9, and the length must be 4 digits. You can also specify a range such as "9876-9880". An MCC can belong to more than one group.<br /><br />Updating the merchant category codes for the group completely replaces the group’s existing codes. For example, if the current MCC group is `["1234"]` and you want to add the 2345 code (while retaining the existing code), you must specify `["1234", "2345"]` in this field.<br /><br />**Allowable Values:**<br /><br />Valid merchant category codes |
| name<br /><br />string<br /><br />Optional                                                       | Name of the MCC group.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |

<h3 id="_sample_request_body_2">
  Sample request body
</h3>

```json JSON lines wrap theme={null}
{
  "mccs": [
    "0123",
    "2224-2230"
  ]
}
```

<h3 id="_response_body_3">
  Response body
</h3>

| Fields                                                                                                         | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| -------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| active<br /><br />boolean<br /><br />Conditionally returned                                                    | Indicates whether the MCC group is active or inactive.<br /><br />**Allowable Values:**<br /><br />`true`, `false`<br /><br />**Default value:**<br />`false`                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| config<br /><br />object<br /><br />Conditionally returned                                                     | Allows for configuration options for this group, including control over the expiration of authorizations and automatic increases to the authorization amount.<br /><br />**Allowable Values:**<br /><br />`authorization_controls`                                                                                                                                                                                                                                                                                                                                                                                    |
| config.**authorization\_controls**<br /><br />object<br /><br />Conditionally returned                         | Controls the expiration of authorizations and automatic increases to the authorization amount for MCCs specified in this group.<br /><br />By default, these authorization controls apply program-wide, meaning that they apply to every card in your program. You can, however, exempt cards associated with any particular card product by setting that card product’s `allow_mcc_group_authorization_controls` field to `false`.<br /><br />**Allowable Values:**<br /><br />`hold_expiration_days`, `hold_increase`                                                                                               |
| config.authorization\_controls.**hold\_expiration\_days**<br /><br />integer<br /><br />Conditionally returned | Specifies the number of days after which an authorization associated with this group expires.<br /><br />**Allowable Values:**<br /><br />1–100<br /><br />**Default value:**<br />7                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| config.authorization\_controls.**hold\_increase**<br /><br />object<br /><br />Conditionally returned          | Controls automatic increases to the authorization amount for MCCs specified in this group.<br /><br />**Allowable Values:**<br /><br />`type`, `value`                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| config.authorization\_controls.hold\_increase.**type**<br /><br />string<br /><br />Returned                   | Controls whether the `value` field represents a fixed amount or a percentage of the authorization amount.<br /><br />**Allowable Values:**<br /><br />`AMOUNT`, `PERCENT`, `UP_TO_LIMIT`<br /><br />**Default value:**<br />`AMOUNT`                                                                                                                                                                                                                                                                                                                                                                                  |
| config.authorization\_controls.hold\_increase.**value**<br /><br />decimal<br /><br />Returned                 | Specifies the amount of the automatic increase to the authorization amount.<br /><br />The `type` field controls whether this amount is a fixed amount or a percentage.<br /><br />**Allowable Values:**<br /><br />Format: 0.00                                                                                                                                                                                                                                                                                                                                                                                      |
| mccs<br /><br />array of strings<br /><br />Conditionally returned                                             | Set of merchant category codes that you want to include in this group. For each element, valid characters are 0-9, and the length must be 4 digits. You can also specify a range such as "9876-9880". An MCC can belong to more than one group.<br /><br />Updating the merchant category codes for the group completely replaces the group’s existing codes. For example, if the current MCC group is `["1234"]` and you want to add the 2345 code (while retaining the existing code), you must specify `["1234", "2345"]` in this field.<br /><br />**Allowable Values:**<br /><br />Valid merchant category codes |
| name<br /><br />string<br /><br />Conditionally returned                                                       | Name of the MCC group.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |

<h3 id="_sample_response_body_3">
  Sample response body
</h3>

```json JSON lines wrap theme={null}
{
  "token": "my_mccgroup_02",
  "name": "My MCC Group 02",
  "mccs": [
    "0123",
    "2224-2230"
  ],
  "active": true,
  "config": {
    "authorization_controls": {
      "hold_increase": {
        "type": "AMOUNT",
        "value": 10
      },
      "hold_expiration_days": 3
    }
  }
}
```

<h2 id="get_mccgroups_token">
  Retrieve MCC group
</h2>

**Action:** `GET`\
**Endpoint:** `/mccgroups/{token}`

{/* <EndpointCard
title="Returns a specific MCC group"
path="/mccgroups/{token}"
method="get"
/> */}

Use this endpoint to retrieve a specific MCC group.

<h3 id="_url_path_parameters_2">
  URL path parameters
</h3>

| Fields                                      | Description                                                          |
| ------------------------------------------- | -------------------------------------------------------------------- |
| token<br /><br />string<br /><br />Required | Unique identifier of the MCC group.<br /><br />**Allowable Values:** |

<h3 id="_response_body_4">
  Response body
</h3>

| Fields                                                                                                         | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| -------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| active<br /><br />boolean<br /><br />Conditionally returned                                                    | Indicates if the group is active or inactive.<br /><br />**Allowable Values:**<br /><br />`true`, `false`<br /><br />**Default value:**<br />`false`                                                                                                                                                                                                                                                                                                                                                                  |
| config<br /><br />object<br /><br />Conditionally returned                                                     | Allows for configuration options for this group, including control over the expiration of authorizations and automatic increases to the authorization amount.<br /><br />**Allowable Values:**<br /><br />`authorization_controls`                                                                                                                                                                                                                                                                                    |
| config.**authorization\_controls**<br /><br />object<br /><br />Conditionally returned                         | Controls the expiration of authorizations and automatic increases to the authorization amount for MCCs specified in this group.<br /><br />By default, these authorization controls apply program-wide, meaning that they impact every card in your program. You can, however, exempt cards associated with any particular card product by setting that card product’s `allow_mcc_group_authorization_controls` field to `false`.<br /><br />**Allowable Values:**<br /><br />`hold_expiration_days`, `hold_increase` |
| config.authorization\_controls.**hold\_expiration\_days**<br /><br />integer<br /><br />Conditionally returned | Specifies the number of days after which an authorization associated with this group expires.<br /><br />**Allowable Values:**<br /><br />1–100<br /><br />**Default value:**<br />7                                                                                                                                                                                                                                                                                                                                  |
| config.authorization\_controls.**hold\_increase**<br /><br />object<br /><br />Conditionally returned          | Controls automatic increases to the authorization amount for MCCs specified in this group.<br /><br />**Allowable Values:**<br /><br />`type`, `value`                                                                                                                                                                                                                                                                                                                                                                |
| config.authorization\_controls.hold\_increase.**type**<br /><br />string<br /><br />Returned                   | Controls whether the `value` field represents a fixed amount or a percentage of the authorization amount.<br /><br />**Allowable Values:**<br /><br />`AMOUNT`, `PERCENT`, `UP_TO_LIMIT`<br /><br />**Default value:**<br />`AMOUNT`                                                                                                                                                                                                                                                                                  |
| config.authorization\_controls.hold\_increase.**value**<br /><br />decimal<br /><br />Returned                 | Specifies the amount of the automatic increase to the authorization amount.<br /><br />The `type` field controls whether this amount is a fixed amount or a percentage.<br /><br />**Allowable Values:**<br /><br />Format: 0.00                                                                                                                                                                                                                                                                                      |
| mccs<br /><br />array of objects<br /><br />Returned                                                           | The set of merchant category codes that you want to include in this group. For each element, valid characters are 0-9, and the length must be 4 digits. You can also specify a range such as "9876-9880". An MCC can belong to more than one group.<br /><br />**Allowable Values:**<br /><br />Existing merchant category codes                                                                                                                                                                                      |
| name<br /><br />string<br /><br />Returned                                                                     | Name of the MCC group.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| token<br /><br />string<br /><br />Conditionally returned                                                      | Unique identifier of the MCC group.<br /><br />If you do not include a token, the system will generate one automatically. This token is necessary for use in other API calls, so we recommend that rather than let the system generate one, you use a simple string that is easy to remember. This value cannot be updated.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                                                                    |

<h3 id="_sample_response_body_4">
  Sample response body
</h3>

```json JSON lines wrap theme={null}
{
  "token": "my_mccgroup_02",
  "name": "My MCC Group 02",
  "mccs": [
    "0123",
    "2224-2230"
  ],
  "active": true,
  "config": {
    "authorization_controls": {
      "hold_increase": {
        "type": "AMOUNT",
        "value": 10
      },
      "hold_expiration_days": 3
    }
  }
}
```


## Related topics

- [Limits and Controls in Europe](/docs/developer-guides/mq-eu-limits-controls.md)
- [Authorization Controls](/docs/core-api/authorization-controls.md)
- [Release Notes](/docs/developer-guides/release-notes.md)
- [Velocity Controls](/docs/core-api/velocity-controls.md)
- [Errors](/docs/core-api/errors.md)
