Search Locations

​

Headers

  • Set this header to application/json.

  • Advertises which content types the client is able to understand

  • Used to authorize the request with access_token. It should be supplied as Bearer ACCESS_TOKEN_GOES_HERE.

  • The signature for the API call

  • Used 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
  • OAuth client ID provided by the business

  • GPS accuracy of the location

  • Latitude coordinate of the location

  • Longitude coordinate of the location

  • Maximum redemption amount at the location

  • 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"
}