Survey Responses
This API is for survey responses, video campaigns always have a survey, also there campaigns which are entirely surveys attached to them, this API allows the consumer to respond to the survey.
Request
Endpoint
POST https://demo.rewardadz.com/public/api/v1/gateway/:campaign_id/consumer_survey_responses
Parameters
campaign_id:string
Headers
x-access-token:string
x-consumer-token:string
Body
{
"survey_responses": [
{
"question_id": "653a643a4e7001676ef9e9b9",
"answer": "3"
},
{
"question_id": "653a643a4e7001676ef9e9b8",
"answer": "retring test answer2"
},
{
"question_id": "653a643a4e7001676ef9e9b7",
"answer": "Fashion"
},
{
"question_id": "653a643a4e7001676ef9e9ba",
"answer": "test"
}
]
}
Response
Once the questions are answered, and the system is ok with the answers the consumer will be rewarded with the payout amount.
below is a success response
{
"success": true,
"ra_message": "Payout have been credited to your wallet!",
"ra_response_data": {
"campaign_id": "6569d5f4039e7a9f6eae23ee",
"consumer_id": "657b0a4f3c1bcdd3aef85945",
"client_id": "6569a101287629be9c873b43",
"tx_type": "campaignPayout",
"amount": 100,
"status": "complete",
"time": "7:52",
"description": "Campaign Glo inc another budget test payout is succesfull",
"created_at": "Thu, 01 Feb 2024 07:52:02 GMT",
"_id": "65bb4da2fbdfb536fe8dc394",
"__v": 0
}
}
Also an notification will be sent to the consumer's device.