Locations
Get Locations
Locations
Get Locations
This endpoint describes locations accessible for the provided client ID. If a merchant_id is provided the locations will be further filtered.
GET
/locations
Bearer*
curl --request GET \
--url https://api.thanx.com/locations \
--header 'Authorization: Bearer <token>'
Parameters
merchant_id
string
Only return locations for this merchant
Response
id
string
Location ID
merchant_id
string
Merchant ID
street
string
Location’s street address
city
string
Location’s city
state
string
Location’s state
zip
string
Location’s zip code
name
string
The name of the location if it has one
phone
string
The phone number of the location
{
"locations": [
{
"id": "92b7b0dac4",
"merchant_id": "9a1f0772c9ac",
"street": "123 Pizza Lane",
"city": "Smalltown",
"state": "CA",
"zip": "12345",
"name": "Pizza Town Co",
"phone": "(415) 555-3728"
}
]
}
curl --request GET \
--url https://api.thanx.com/locations \
--header 'Authorization: Bearer <token>'
{
"locations": [
{
"id": "92b7b0dac4",
"merchant_id": "9a1f0772c9ac",
"street": "123 Pizza Lane",
"city": "Smalltown",
"state": "CA",
"zip": "12345",
"name": "Pizza Town Co",
"phone": "(415) 555-3728"
}
]
}