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

# Get Merchants

> This endpoint will return all accessible merchants records

This endpoint can be used to fetch the IDs of all merchants that are currently
accessible to the integration partner.

<RequestExample>
  ```bash Get Merchants theme={null}
  curl https://api.thanxsandbox.com/partner/merchants \
    -H 'X-ClientId: ${client_id}' \
    -H 'Accept-Version: v4.0' \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer ${access_token}' \
  ```
</RequestExample>

### Response

<ResponseField name="id" type="string">
  Merchant ID
</ResponseField>

<ResponseField name="handle" type="string">
  Merchant Handle. This is used as a long-lived unique descriptive identifier
  for the merchant across the Thanx platform.
</ResponseField>

<ResponseField name="name" type="string">
  Merchant Name
</ResponseField>

<ResponseExample>
  ```json Response Example theme={null}
  {
    "merchants": [
      {
        "id": "k2lye10h32l5wzo",
        "name": "Pizza Company",
        "handle": "pizzacompany"
      }
    ]
  }
  ```
</ResponseExample>
