Get the list of merchants you have access to.
GET
/2024-09/merchants
curl \
--request GET 'https://app.merchanthq.com/api/2024-09/merchants' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"links": {
"first": "https://app.merchanthq.com/api/2024-09/merchants?page=1",
"last": "https://app.merchanthq.com/api/2024-09/merchants?page=10",
"prev": "https://app.merchanthq.com/api/2024-09/merchants?page=1",
"next": "https://app.merchanthq.com/api/2024-09/merchants?page=3"
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 10,
"path": "https://app.merchanthq.com/api/2024-09/merchants",
"per_page": 10,
"to": 10,
"total": 20
},
"data": [
{
"name": "ACME Corp",
"id": "1e7f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d4",
"created_at": "2025-01-10T10:37:11Z",
"updated_at": "2025-01-10T10:37:11Z"
}
]
}
Response examples (401)
{
"message": "Unauthorized"
}
Response examples (404)
{
"message": "Not found"
}