Daily Rewards Program - Claim Daily rewards
This document contains information about claiming daily reward for programs that currently running, state Active.
Request (POST)
/gateway/promotions/drp/{version}/{brand_id}/{program_id}/claim
Parameters:
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| version | path | string | true | The API version to use (pagination supported in version 3.0 and above). |
| brand_id | path | string | true | The ID of the brand. |
| program_id | path | string | true | The ID of the program. |
| day | body | int | true | The Day of program to claim reward |
| comment | body | string | false | Free text |
Headers
- x-auth-token: Requred
Postman sample:
curl --location 'http://www.my_site_backend.com/gateway/drp/1.0.0/1501/cfcaa579-c563-4474-bb81-ccddc7515982/players/231632/claim' \
--header 'jwt-auth: your-token' \
--header 'Content-Type: application/json' \
--data '{
"day":6,
"comment": "test"
}'Response
Status 200
{
"status": "Success",
"data": {
"success": true,
"transaction_id": 870,
"new_balance": 300,
"amount": 200
}
}Status 400 (Missing authentication header)
{
"status": "Error",
"data": {
"errMsg": "invalid input - invalid token"
},
"message": "authentication failed",
"userFriendlyMessage": "Authentication failed"
}