Retrieve a list of rewards given to the user (by id)
GET/api/users/by-id/:id/rewards
Retrieve a list of rewards in various states given to a user.
Request
Path Parameters
Header Parameters
Partner Id
Client Id
Client Secret
Responses
- 200
- 401
- 403
- 404
- 500
List of rewards given to user.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Id of the reward
Possible values: [Pending
, Confirmed
, Declined
, Claimed
, All
]
Status of the reward
Possible values: [MileageCheckIn
, ConditionCheckIn
, GaragingCheckIn
, LowMileageBonus
, Custom
, SurveyCompleted
]
Type of the reward
Description of the reward
Id of the vehicle (if the reward is tied to an action on the vehicle like a Mileage Check-in
Id of the payout (if the reward has been claimed.
Date on which reward was created
[
{
"id": "string",
"status": "Pending",
"type": "MileageCheckIn",
"description": "string",
"vehicleId": "string",
"payoutId": "string",
"dateRewarded": "string",
"amount": 0
}
]
Authorization error e.g. due to an invalid or missing API keys.
Forbidden. Possible error codes
-
ERROR_NO_PERMISSIONS_TO_RESOURCE
- application/json
- Schema
- Example (from schema)
Schema
Error code
A verbose error message
{
"error_code": "string",
"error_message": "string"
}
User not found. Possible error codes
-
ERROR_USER_NOT_FOUND
- application/json
- Schema
- Example (from schema)
Schema
Error code
A verbose error message
{
"error_code": "string",
"error_message": "string"
}
Internal error. Possible error codes
-
INTERNAL_SERVER_ERROR
- application/json
- Schema
- Example (from schema)
Schema
Error code
A verbose error message
{
"error_code": "string",
"error_message": "string"
}