---
id: "merchant_category_code"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["finances", "ecommerce"]
langs: ["common"]
quality: 90
url: "https://registry.apicrafter.io/datatype/merchant_category_code"
---

# Merchant category code (MCC, ISO 18245) (`merchant_category_code`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Four-digit code that a card network assigns to a merchant by the kind of goods or services it sells, for example 5411 for grocery stores and supermarkets. The codes are specified by ISO 18245. Card statements and public spending data with payment cards use it. Some codes start with zero, so keep values as strings. Do not confuse it with the mobile country code (mobile_country_code), which is also called MCC.

- Personal data (PII): no
- Categories: Finances and banking (finances), E-commerce (ecommerce)
- Countries: global
- Languages: Common to most languages (common)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^\d{4}$
```

## Examples

- `5411` — Grocery Stores and Supermarkets
- `5812` — Eating Places and Restaurants
- `5541` — Service Stations
- `0742` — Veterinary Services
- `541` (invalid example) — three digits

## Mappings

- wikidata: `P4573`

## Translations

- ru: Код категории продавца (MCC)

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/Merchant_category_code>
- wikidata: <https://www.wikidata.org/wiki/Property:P4573>
- doc: <https://www.iso.org/standard/79450.html>

## Quality

Score 90/100. Missing: detector coverage.

JSON: <https://registry.apicrafter.io/api/v1/datatypes/merchant_category_code.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/finances/merchant_category_code.yaml>
