# Merchant Identifier
source: https://developer.mastercard.com/merchant-identifier/documentation/index.md

NEED ACCESS TO REAL DATA?


Request access and enjoy
up to 10,000 API calls
during the first 28 days with our Free Trial Access.
[Get Started](https://developer.mastercard.com/merchant-identifier/documentation/index.md#next-steps)

## Overview {#overview}

**Instantly enrich merchant records with trusted, global data from Mastercard.**

Built on a data corpus scraped from the Mastercard payment network, as well as third-party sources,
the Merchant Identifier API allows organizations to reliably append accurate and fresh merchant details to their records.

Financial institutions leverage Merchant Identifier to transform cryptic payment transaction messages into rich records
with merchant-level transaction insights. The API appends detailed information about the merchant (i.e. card acceptor)
within each transaction. Similarly, institutions building and maintaining a merchant directory can enrich their database
with attributes derived from the payment network.

Mastercard's Merchant Identifier database contains information about all businesses that accept Mastercard globally,
converting unidentifiable merchant details into cleansed merchant information that institutions and consumers can easily understand.
Tip: Merchant Identifier now includes AI‑powered merchant matching capability which enhances match accuracy when traditional matching is insufficient. [Learn more here \>](https://developer.mastercard.com/merchant-identifier/documentation/tutorials-and-guides/search-with-ai/index.md)

## What does the API do? {#what-does-the-api-do}

The API returns standardized, human-readable merchant information pulled from Mastercard's merchant directory,
including cleansed name, brand/legal entity, geolocation, and more.

In simple terms:

* **Input:** Raw, messy transaction details (e.g., descriptors or acceptor IDs)
* **Output:** Clear, recognizable merchant information

This cleansed information allows institutions to build and deliver rich experiences to their end-users and customers.

![Before and after comparison showing how Merchant Identifier cleanses transaction data](https://static.developer.mastercard.com/content/merchant-identifier/uploads/before_after_mid.svg)

The Merchant Identifier API is designed to ingest data typically found in credit, debit, or open banking transactions
(such as descriptors, descriptions, card acceptor IDs, etc.). It can also ingest standard firmographic information
(Name, Address, Phone, etc.) for data enrichment.

## Key Benefits {#key-benefits}

<br />

##### [Enhanced Digital Experience](https://developer.mastercard.com/merchant-identifier/documentation/use-cases/digital-banking-experience/index.md) {#enhanced-digital-experiencedocumentationuse-casesdigital-banking-experience}

Improve consumer digital banking experiences with recognizable and categorized merchant acceptor data

##### [Transaction Analytics](https://developer.mastercard.com/merchant-identifier/documentation/use-cases/transaction-analytics/index.md) {#transaction-analyticsdocumentationuse-casestransaction-analytics}

Optimize your business by building models on transaction records, tagged with identifiable merchants

##### [Card Program Operations](https://developer.mastercard.com/merchant-identifier/documentation/use-cases/loyalty-attribution-and-spend-controls/index.md) {#card-program-operationsdocumentationuse-casesloyalty-attribution-and-spend-controls}

Launch and operate robust card programs and improve execution on banking needs.

##### [Know Your Business](https://developer.mastercard.com/merchant-identifier/documentation/use-cases/know-your-business/index.md) {#know-your-businessdocumentationuse-casesknow-your-business}

Confirm a business's identity and characteristics by matching against Mastercard's system of record

Unrecognized transactions are one of the biggest drivers of customer service calls and disputes.
By clearly identifying merchants at the moment of inquiry, the Merchant Identifier API helps reduce
inbound call volumes and improve the cardholder experience, while simultaneously allowing banks
and program managers to operate robust and reliable loyalty and spend-controlled card programs.

## Four API pathways to identify a merchant {#four-api-pathways-to-identify-a-merchant}

The Merchant Identifier API supports four distinct pathways to identify and enrich a merchant, depending on the data available.

## Search -- By Descriptor {#search--by-descriptor}

Match raw transaction descriptors against a reference dataset using string-similarity matching.

* Matches merchant information using descriptor data such as merchant name, city, and state/region
* Cleanses merchant details for consistent display
* Best when you only have raw, human-readable transaction details

**Example input:**

```PLAIN
  merchant_descriptor     JOHNDOERETAILNEWYORKNY
```


[Learn more](https://developer.mastercard.com/merchant-identifier/documentation/tutorials-and-guides/search-by-descriptor/index.md)

## Search -- AI Powered {#search--ai-powered}

Match client's input, applying AI-powered entity recognition, semantic reasoning, and multi-signal matching.

* Designed to maximize match coverage and accuracy across complex real-world data
* Best when available data is incomplete, noisy, or not standardized

**Example input:**

```JSON
{
  "merchants": [
    {
      "merchantName": "JOHN DOE RETAIL #1847",
      "streetAddress": "123 Acme Street",
      "cityName": "NEW YORK",
      "stateProvinceCode": "NY",
      "countryCode": "USA",
      "postalCode": "10001",
      "phoneNumber": "(212) 555-0184",
      "url": "www.johndoeretail.com"
    }
  ]
}
```


[Learn more](https://developer.mastercard.com/merchant-identifier/documentation/tutorials-and-guides/search-with-ai/index.md)

## Lookup -- By Card Acceptor ID {#lookup--by-card-acceptor-id}

Match a card acceptor ID to a verified merchant profile, enabling precise merchant identification at the point of acceptance.

* Provides a direct, precise match to the merchant's official record
* Ideal for high confidence identification and downstream logic like rewards or controls
* Best when existing data includes this identifier

**Example input:**

```PLAIN
card_acceptor_id                123456
country_code                    BRA
```


[Learn more](https://developer.mastercard.com/merchant-identifier/documentation/tutorials-and-guides/lookup-by-acceptor-id/index.md)

## Lookup -- By Tax ID {#lookup--by-tax-id}

Match a tax identifier to a merchant record. This endpoint performs an exact match.

* Uses a merchant's government issued tax identifier and country
* Ideal for markets with reliable, location-specific, government-sponsored business identification
* Best when existing data includes this identifier

**Example input:**

```PLAIN
tax_id                       123456
country_code                 BRA
```


[Learn more](https://developer.mastercard.com/merchant-identifier/documentation/tutorials-and-guides/lookup-by-tax-id/index.md)
Tip: Together, these four pathways ensure Merchant Identifier can identify merchants across a wide range of real-world data scenarios.

## How it works {#how-it-works}

Once the merchant identifier finds a match in the API, it is mapped to a location id which links the identifier to additional merchant information in Mastercard's merchant database.

Through the [Places API service](https://developer.mastercard.com/places/documentation/) additional insights can be appended to the merchant information
including merchant name, address, geographic coordinates, chain name, sales channel indicators, industry classification codes, and transaction-based insights such as in-business flags and last seen date.
Diagram midOverview

## Next Steps {#next-steps}

To get more familiar with our Merchant Identifier API you can check out the [API Reference Page](https://developer.mastercard.com/merchant-identifier/documentation/api-reference/index.md).
Free Trial Access

## 3 steps to access your sandbox. {#3-steps-to-access-your-sandbox}

Set up your account and **start testing** the API immediately.
![Create developer account using company email](https://static.developer.mastercard.com/content/merchant-identifier/uploads/free-trail/step-company-email.png)

STEP 1

#### Create developer account {#create-developer-account}

Use your **company email** to create a developer account.
![Select the Merchant Identifier API from available options](https://static.developer.mastercard.com/content/merchant-identifier/uploads/free-trail/step-create-project.png)

STEP 2

#### Create new project {#create-new-project}

Select the **Merchant Identifier API** from the list of available options.
![Sandbox base URL for Test API](https://static.developer.mastercard.com/content/merchant-identifier/uploads/free-trail/step-start-testing.png)

STEP 3

#### Start testing right away {#start-testing-right-away}

Get **immediate access** to the workspace for API sandbox.

## 3 steps to trial with real world data. {#3-steps-to-trial-with-real-world-data}

Use our **Free Trial Access** for 28 days to explore and evaluate our API with up to 10,000 free calls with no upfront commitment required.
![Request Production Access button](https://static.developer.mastercard.com/content/merchant-identifier/uploads/free-trail/step-request-access.png)

STEP 1

#### Request access {#request-access}

Directly from the workspace created in the previous steps.
![Digital Signature input field](https://static.developer.mastercard.com/content/merchant-identifier/uploads/free-trail/step-sign-terms.png)

STEP 2

#### Sign terms \& conditions {#sign-terms--conditions}

Agree to **Mastercard's** terms \& conditions for **free trial access**.
![Production base URL after access granted](https://static.developer.mastercard.com/content/merchant-identifier/uploads/free-trail/step-real-data.png)

STEP 3

#### Start using real data {#start-using-real-data}

**Immediate access** for previously verified companies. Up to 5-day verification period for new customers of Mastercard.

To access the trial create a **new project** in your dashboard:
Project Dashboard
