This endpoint can be used to fetch the IDs of all locations that are currently
accessible to the integration partner.
curl https://api.thanx.com/partner/locations \
-H 'X-ClientId: ${client_id}' \
-H 'Accept-Version: v4.0' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer ${access_token}' \
Parameters
The current page of paginated resources.
Number of records to be returned per API request.
- Default:
10
- Minimum:
1
- Maximum:
100
Response
Location’s street address
The name of the location if it has one
The phone number of the location
Pagination information
Number of records return per page
The total number of available pages
{
"locations": [
{
"id": "92b7b0dac4",
"merchant_id": "9a1f0772c9ac",
"street": "123 Pizza Lane",
"city": "Smalltown",
"state": "CA",
"zip": "12345",
"name": "Pizza Town Co",
"phone": "(415) 555-3728"
}
],
"pagination": {
"current_page": 1,
"per_page": 10,
"total_pages": 1
}
}