List all rewards.
GET/api/rewards
Requires admin token. Retrieve the list of rewards given by a partner.
Request
Query Parameters
Default value: 0
Page number
Default value: 10
Number of items per page
Possible values: [dateRewarded]
Default value: dateRewarded
Sort by field
Possible values: [asc, desc]
Default value: desc
Sort by order
Possible values: [userFirstName, userLastName, userEmail, userPhone]
Search by field
Search by value
Possible values: [MileageCheckIn, ServiceCheckIn, ConditionCheckIn]
Filter rewards by type
Possible values: [Pending, Confirmed, Declined, Claimed, All]
Filter rewards by status
Filter rewards by vehicle id
Filter rewards by payout id
Filter rewards by partner-supplied actionCode (exact match). Useful for grouping rewards minted via the grant-reward endpoint.
Filter rewards whose reward date is greater or than equal to the date passed in. (The date should be in the ISO8601 UTC format YYY-MM-DDThh:mm:ss.SSSZ)
Filter rewards whose reward is less or than equal to the date passed in. (The date should be in the ISO8601 UTC format YYY-MM-DDThh:mm:ss.SSSZ)
Responses
- 200
- 401
- 500
List of rewards matching the query.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Total number of rewards
Current page number
Current page size
Number of rewards on current page
rewards
object[]
List of rewards
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
Action code for manual grants
Client reference for manual grants
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
owner
object
Check-in owner
Id of the user
User's first name
User's last name
{
"totalItems": 0,
"currentPage": 0,
"totalPages": 0,
"itemsOnPage": 0,
"rewards": [
{
"id": "string",
"status": "Pending",
"type": "MileageCheckIn",
"description": "string",
"actionCode": "string",
"clientReference": "string",
"vehicleId": "string",
"payoutId": "string",
"dateRewarded": "string",
"owner": {
"id": "string",
"firstName": "string",
"lastName": "string"
},
"amount": 0
}
]
}
Authorization error e.g. due to an invalid or missing API keys.
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"
}