Search Locations
Headers
- Type: stringContent
- Type requiredSet this header to application/json.
- Type: stringAcceptrequired
Advertises which content types the client is able to understand
- Type: stringAuthorizationrequired
Used to authorize the request with access_token. It should be supplied as
Bearer ACCESS_TOKEN_GOES_HERE. - Type: stringx
-pch -digest requiredThe signature for the API call
- Type: stringUser
- Agent requiredUsed to identify the software, device, and application initiating the request, providing information about the client to the server. For details, see User Agent.
Body
application/json
- Type: stringclient
OAuth client ID provided by the business
- Type: stringgps
_accuracy GPS accuracy of the location
- Type: stringlatitude
Latitude coordinate of the location
- Type: stringlongitude
Longitude coordinate of the location
- Type: stringmax
Maximum redemption amount at the location
- Type: stringname
_like Alias name of the location
Responses
- application/json
- application/json
Request Example for get/api2/mobile/locations/search
curl https://SERVER_NAME_GOES_HERE.punchh.com/api2/mobile/locations/search \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ACCESS_TOKEN_GOES_HERE' \
--header 'x-pch-digest: {{$$.env.signature}}' \
--header 'User-Agent: AppName/AppVersion/BuildNumber (OS; Model; MANUFACTURER; MODEL; OS Version)' \
--data '{
"client": "CLIENT_KEY_GOES_HERE",
"latitude": "LATITUDE_GOES_HERE",
"longitude": "LONGITUDE_GOES_HERE",
"gps_accuracy": "GPS_ACCURACY_GOES_HERE",
"name_like": "NAME_LIKE_GOES_HERE",
"max": "MAXIMUM_REDEMPTION_AMOUNT_GOES_HERE"
}'
{
"location_id": 43535,
"pos_scanner_type": "barcode"
}