---
updatedAt: 2026-07-07T16:30:22.000Z
agentTools:
  projectIndex: https://docs.flexfactor.io/llms.txt
---

# Get merchant

This endpoint retrieves the details of a specific merchant, identified by their unique **Merchant ID** (`mid`). It provides metadata, contact information, banking details, and associated sites for the merchant.

* [Request](#request)
* [Response](#response)
* [Payload examples](#payload-examples)

***

# Request

## Endpoint

| Environment                | HTTP Method | Endpoint                                               |
| -------------------------- | ----------- | ------------------------------------------------------ |
| **Sandbox testing**        | GET         | <https://api-sandbox.flexfactor.io/v1/merchants/[mid]> |
| **Production environment** | GET         | <https://api.flexfactor.io/v1/merchants/[mid]>         |

***

## Required Keys

| Parameter          | Description                                           |
| ------------------ | ----------------------------------------------------- |
| **`mid`**          | The unique identifier of the merchant.                |
| **`bearer token`** | The authentication token returned by `/oauth2/token`. |

***

## Body Parameters

This endpoint does not require body parameters.

***

# Response

## Field Definitions

| Field Name                   | Type             | Description                                                                     |
| ---------------------------- | ---------------- | ------------------------------------------------------------------------------- |
| `accountId`                  | String           | Unique identifier for the account.                                              |
| `id`                         | String           | Unique identifier of the merchant (use as the `{mid}` path parameter).          |
| `companyName`                | String           | Name of the company.                                                            |
| `legalEntityName`            | String           | Legal name of the entity.                                                       |
| `dba`                        | String           | Doing Business As (DBA) name of the company.                                    |
| `type`                       | String           | Type of the business entity, e.g., Sole Proprietorship.                         |
| `website`                    | String           | Company's website URL.                                                          |
| `description`                | String           | Description of the company.                                                     |
| `specialTerms`               | String           | Special terms related to the merchant account.                                  |
| `mcc`                        | String           | Merchant Category Code.                                                         |
| `industry`                   | String           | Industry type, e.g., 'Publishing'.                                              |
| `status`                     | Integer          | Numerical status of the account (1 for active, 0 for inactive).                 |
| `statusName`                 | String           | Name of the status, e.g., 'ACTIVE'.                                             |
| `customerSupportInformation` | Object           | Contains customer support details like name, email, phone, and support link.    |
| `createdOn`                  | DateTime         | Timestamp of when the merchant was onboarded (ISO 8601 format).                 |
| `primaryContact`             | Object           | Contains merchant's primary contact's first name, last name, email, and phone.  |
| `developerContact`           | Object           | Contains developer contact information.                                         |
| `bankAccountInformation`     | Object           | Contains banking details like account type, masked account and routing numbers. |
| `sites`                      | Array of Objects | Contains information about sites associated with the merchant.                  |
| `timezone`                   | Integer          | Timezone of the merchant, represented as an offset from UTC in minutes.         |
| `language`                   | String           | Language preference of the merchant.                                            |
| `timezoneName`               | String           | Name of the timezone, e.g., "Pacific/Pitcairn".                                 |

***

## Sites

| Field Name             | Type             | Description                                                         |
| ---------------------- | ---------------- | ------------------------------------------------------------------- |
| `id`                   | String           | Unique identifier for the site.                                     |
| `name`                 | String           | Name of the site.                                                   |
| `descriptor`           | String           | Descriptor of the site.                                             |
| `descriptorCity`       | String           | City associated with the site descriptor.                           |
| `customerSupportName`  | String           | Name of the site-specific customer support contact.                 |
| `customerSupportEmail` | String           | Email address for site-specific customer support.                   |
| `customerSupportPhone` | String           | Phone number for site-specific customer support.                    |
| `customerSupportLink`  | String           | URL to site-specific customer support webpage.                      |
| `whitelistedUrls`      | Array of Strings | List of whitelisted URLs for the site.                              |
| `tags`                 | Array of Strings | Tags associated with the site for categorization or identification. |

***

> ❗️ Notes
>
> * Use the `mid` parameter to specify the merchant you want to retrieve.
> * Ensure secure storage and handling of sensitive data retrieved using this endpoint.

***

# Payload Examples

## Request

#### cURL Request Example

```bash
curl --request GET \
     --url https://api-sandbox.flexfactor.io/v1/merchants/{mid} \
     --header 'Authorization: Bearer {the token returned by /oauth2}' \
     --header 'accept: application/json'
```

***

## Response

#### JSON Example for a Successful Retrieval

```json
{
  "accountId": "12345678-90ab-cdef-1234-567890abcdef",
  "id": "abcdef12-3456-7890-abcd-ef1234567890",
  "companyName": "Example Corporation",
  "legalEntityName": "Example Corporation Legal",
  "dba": "Example Corp",
  "type": "Limited Liability Company",
  "website": "https://example-website.com/",
  "description": "A sample description of Example Corporation.",
  "specialTerms": "Special terms and conditions apply.",
  "mcc": "1234",
  "industry": "Software and IT Services",
  "status": 1,
  "statusName": "ACTIVE",
  "customerSupportInformation": {
    "customerSupportName": "Example Support",
    "customerSupportEmail": "support@example.com",
    "customerSupportPhone": "+12345678901",
    "customerSupportLink": "https://support.example.com"
  },
  "createdOn": "2023-01-01T00:00:00.000000Z",
  "primaryContact": {
    "firstName": "John",
    "lastName": "Doe",
    "email": "johndoe@example.com",
    "phone": "0123456789"
  },
  "developerContact": {
    "developerFirstName": "Jane",
    "developerLastName": "Smith",
    "developerEmail": "janesmith@example.com",
    "developerPhone": "0987654321"
  },
  "bankAccountInformation": {
    "ddaType": "Savings",
    "maskedAccountNumber": "xxxxx1234",
    "maskedRoutingNumber": "xxxxx4321",
    "bankAccountVerified": true,
    "bankName": "Example Bank"
  },
  "sites": [
    {
      "id": "ab12cd34-ef56-gh78-ij90-kl12mn34op56",
      "name": "Example Site",
      "descriptor": "ExampleDescriptor",
      "descriptorCity": "Example City",
      "customerSupportName": "Alice",
      "customerSupportEmail": "alice@example.com",
      "customerSupportPhone": "+10987654321",
      "customerSupportLink": "https://support.examplesite.com",
      "whitelistedUrls": ["https://www.examplesite.com"],
      "tags": ["Example", "Sample", "Demo"]
    }
  ],
  "timezone": -60,
  "language": "en",
  "timezoneName": "Atlantic/Azores"
}
```

#### JSON Example for a Failed Retrieval

```json
{
  "status": "FAILED",
  "success": false,
  "errors": [
    "Merchant not found.",
    "Invalid Merchant ID."
  ]
}
```

***

## Example for Handling Errors

* If the `mid` is invalid, the API will return a **404 Not Found** error.
* If the bearer token is unauthorized, the API will return a **401 Unauthorized** error.

```http
HTTP/1.1 404 Not Found
Content-Type: application/json

{
  "errors": [
    "Merchant not found."
  ]
}
```

```http
HTTP/1.1 401 Unauthorized
Content-Type: application/json

{
  "errors": [
    "Authentication failed. Invalid bearer token."
  ]
}
```

***