Record Beacon Entry

​

This API pertains to how a registered user is detected when the user enters the beacon's range and what follows.

Headers

  • The signature for the API call

  • Advertises which content types the client is able to understand

  • Set this header to application/json.

  • Preferred language

  • Used to identify the software, device, and application initiating the request, providing information about the client to the server. For details, see User Agent.

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

Body

application/json
  • Security token that identifies a user

  • ID of the business assigned by Punchh

  • ID assigned to the beacon. This value can be configured in the Punchh platform. A single location can have multiple minors.

  • OAuth client ID provided by the business

Responses

  • application/json
  • application/json
  • application/json
Request Example for post/api2/mobile/locations/beacon_entry
curl https://SERVER_NAME_GOES_HERE.punchh.com/api2/mobile/locations/beacon_entry \
  --request POST \
  --header 'x-pch-digest: {{$$.env.signature}}' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --header 'Accept-Language: en' \
  --header 'User-Agent: AppName/AppVersion/BuildNumber (OS; Model; MANUFACTURER; MODEL; OS Version)' \
  --header 'Authorization: Bearer ACCESS_TOKEN_GOES_HERE' \
  --data '{
  "client": "CLIENT_GOES_HERE",
  "access_token": "ACCESS_TOKEN_GOES_HERE",
  "beacon_major": 635,
  "beacon_minor": 1
}'
{}