Rewards Actions
Grant a Reward
Changed onGrants a reward for a user. Note 1: currently only granting of credit rewards is supported. Note 2: this endpoint is only accessible with a secret API key.
post/users/{app_user_id}/rewards/grant
Request
- Base URLhttps://api.winwinkit.com
- Authnone declared. Required headers: x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
app_user_idstring required
The app user id of the user to grant a reward to.
Headers
x-api-keystring required
The secret API key.
Request body
Example request
{
"key": "discounted-offering",
"operation_id": "821fae4b5-0123-4567-9152-5297086a161c"
}Response
The reward has been already available for the user and cannot be granted again.
Changes
- info
added the required property
///////////to the response with the status - info
added the required property
///////////to the response with the status
- info
- info
added the required property
//////to the response with the status - info
added the required property
//////to the response with the status
- info