Enroll Guests via WiFi
Enrolls guests for eClub using WiFi as the acquisition channel
Headers
- Type: stringAccept
- Language Preferred language
- Type: stringx
-pch -digest requiredThe signature for the API call
- Type: stringContent
- Type requiredSet this header to application/json.
- 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: integerlocation
_id ID of the WiFi location
- Type: integerstore
_number Store number of the location
- Type:userProperties: 46
Includes details about the users who are registered on a particular business
Responses
- application/json
Request Example for post/api2/wifi/users/
curl https://SERVER_NAME_GOES_HERE.punchh.com/api2/wifi/users/ \
--request POST \
--header 'Accept-Language: en' \
--header 'x-pch-digest: {{$$.env.signature}}' \
--header 'Content-Type: application/json' \
--header 'User-Agent: AppName/AppVersion/BuildNumber (OS; Model; MANUFACTURER; MODEL; OS Version)' \
--data '{
"client": "CLIENT_GOES_HERE",
"location_id": 311031,
"store_number": 4,
"user": {
"email": "test@example.com",
"first_name": "FIRST_NAME_GOES_HERE",
"last_name": "LAST_NAME_GOES_HERE",
"phone": "1111111111",
"address_line1": "ADDRESS_GOES_HERE",
"state": "California",
"zip_code": "94040",
"birthday": "1999-01-01",
"marketing_email_subscription": "1"
}
}'
{}