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}' \
curl 'https://api.thanxsandbox.com/partner/merchants?merchant_id=k2lye10h32l5wzo' \
-H 'X-ClientId: ${client_id}' \
-H 'Accept-Version: v4.0' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer ${access_token}' \
{
"merchants": [
{
"id": "k2lye10h32l5wzo",
"name": "Pizza Company",
"handle": "pizzacompany",
"contact_url": "https://www.pizzacompany.com/contact"
}
]
}
Metadata
Get Merchants
This endpoint will return all accessible merchants records
GET
/
partner
/
merchants
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}' \
curl 'https://api.thanxsandbox.com/partner/merchants?merchant_id=k2lye10h32l5wzo' \
-H 'X-ClientId: ${client_id}' \
-H 'Accept-Version: v4.0' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer ${access_token}' \
{
"merchants": [
{
"id": "k2lye10h32l5wzo",
"name": "Pizza Company",
"handle": "pizzacompany",
"contact_url": "https://www.pizzacompany.com/contact"
}
]
}
This endpoint can be used to fetch the IDs of all merchants that are currently
accessible to the integration partner.
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}' \
curl 'https://api.thanxsandbox.com/partner/merchants?merchant_id=k2lye10h32l5wzo' \
-H 'X-ClientId: ${client_id}' \
-H 'Accept-Version: v4.0' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer ${access_token}' \
Parameters
string
The merchant’s ID, the same
id this endpoint returns. When provided, only
that merchant is returned. An ID that is unknown or belongs to a merchant the
partner isn’t linked to returns a 403.Response
string
Merchant ID
string
Merchant Handle. This is used as a long-lived unique descriptive identifier
for the merchant across the Thanx platform.
string
Merchant Name
string
The URL of the merchant’s own contact page, for sending guests there when
Thanx can’t handle a request.
null when the merchant has no contact link.{
"merchants": [
{
"id": "k2lye10h32l5wzo",
"name": "Pizza Company",
"handle": "pizzacompany",
"contact_url": "https://www.pizzacompany.com/contact"
}
]
}