Version Notes
Returns the details of a particular version of the app of a business
Headers
- Type: stringContent
- Type requiredSet this header to application/json.
- Type: stringAcceptrequired
Advertises which content types the client is able to understand
- 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.
- Type: stringx
-pch -digest requiredThe signature for the API call
Body
application/json
- Type: stringclientrequired
OAuth client ID provided by the business
- Type: stringmodel
Model of the device that a user is using
- Type: stringos
Operating system (either "android" or "ios")
- Type: stringversion
App version
Responses
- application/json
Request Example for get/api2/mobile/version_notes
curl https://SERVER_NAME_GOES_HERE.punchh.com/api2/mobile/version_notes \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'User-Agent: AppName/AppVersion/BuildNumber (OS; Model; MANUFACTURER; MODEL; OS Version)' \
--header 'x-pch-digest: {{$$.env.signature}}' \
--data '{
"client": "CLIENT_KEY_GOES_HERE",
"version": "VERSION_GOES_HERE",
"os": "ios",
"model": "MODEL_GOES_HERE"
}'
{
"note": "This is the first version of the app!!",
"force_upgrade": false,
"notification_style": "local_notification"
}