Verify Token
Verifies the OTP token that the user provides for authentication. In the API request, use the same values for phone_ext, phone, and/or email provided in the Send OTP API request to generate the OTP; otherwise, the Verify Token API request will fail.
For more information, see Advanced Authentication.
- Type: string
Accept requiredAdvertises which content types the client is able to understand
- Type: string
Content - Type requiredSet this header to application/json
- Type: string
User - Agent requiredFor details, see User Agent.
- Type: string
punchh -app -device -id requiredThe app device ID helps Punchh identify each device so that certain rewards can be awarded individually to each device instead of per user. For example, the sign-up reward is given to each device ID to prevent fraudulent sign-ups so that a user cannot do repeated sign-ups from a single device to get rewards. It should not change even if the user resets a device. See the sample code to generate the punchh-app-device-id header.
- Type: string
client -type requiredIdentifies the type of client making the request. Possible values: external_mobile_app – for mobile applications, online_ordering – for web-based online ordering platforms
- Type: string
client requiredOAuth client ID provided by the business
- Type: string
code _verifier requiredA random string generated by the client application (e.g., a mobile app). See PKCE Flow for details.
- Type: string
email Email address of the user. Either
emailorphoneis required. - Type: string
phone _ext Country code of the user's phone number. It should be preceded by a +, i.e. +1 (Country code for the US and Canada).
- Type: string
phone _number Phone number of the user. Either
emailorphoneis required. - Type: boolean
privacy _policy requiredIndicates whether the user has agreed to the business's privacy policy. Possible values: true, false. This parameter must be set to "true" for a successful API call. If the parameter is not specified or set to "false", the API returns a 422 error with the message: "Please agree on given privacy policy".
- Type: boolean
terms _and _conditions requiredIndicates whether the user has accepted the business’s terms and conditions. Possible values: true, false. This parameter must be set to "true" for a successful API call. If the parameter is not specified or set to "false", the API returns a 422 error with the message: "Please agree on given terms and conditions".
- Type: string
token requiredOTP token
- Type: object
200 - Type: token
data
- Type: object
400 - Type: object
errors
- Type: object
412 - Type: object
errors
- Type: object
422 - Type: array string[]
errors
- Type: object
503
{
"data": {
"access_token": "string",
"refresh_token": "string",
"id_token": "string",
"expires_in": 1,
"token_type": "string"
}
}