x-api-key: ********************curl --location --request GET 'https://testserver.loyi.io/public/api/reward/redeem?userId&rewardIds' \
--header 'Origin: <WHITELISTED_URL>' \
--header 'x-api-key: <api-key>'{
"rewards": [
{
"id": "123e4567-e89b-12d3-a456-426655440000",
"title": "Event Entry Pass",
"description": "An entry pass for the event",
"instruction": "Show this pass at the event entrance",
"type": "EntryPass",
"createdAt": "2022-01-01T00:00:00.000Z",
"updatedAt": "2022-01-01T00:00:00.000Z"
}
],
"errors": [
{
"resourceId": "123e4567-e89b-12d3-a456-426655440000",
"message": "You are not eligible to redeem this reward."
}
]
}