Summarise check-in and user counts for a partner.
GET/api/checkins/summary
Requires admin token. Retrieve the number of check-ins of each type given by all users owned by a partner, plus the number of those users split by whether they are tagged as MobileMax (CustomField1 = 'MobileMax'). Both are optionally restricted to a date window - applied to the check-in date for check-ins and to the registration date for users. Intended as a lightweight health check - it returns counts only, with no check-in or user detail. Archived check-ins are excluded, so each check-in count matches the total reported by the corresponding check-in list endpoint, and the user total matches the total reported by the user list endpoint, for the same date window.
Request
Query Parameters
Count check-ins whose check-in date, and users whose registration date, is greater than or equal to the date passed in. (The date should be in the ISO8601 UTC format YYY-MM-DDThh:mm:ss.SSSZ)
Count check-ins whose check-in date, and users whose registration date, is less than or equal to the date passed in. (The date should be in the ISO8601 UTC format YYY-MM-DDThh:mm:ss.SSSZ)
Responses
- 200
- 400
- 401
- 500
Check-in counts per type and user counts per MobileMax tag for the given date window.
- application/json
- Schema
- Example (from schema)
Schema
checkins
object
Count of check-ins given by a partner's users, broken down by check-in type. Archived check-ins are excluded.
Number of mileage check-ins
Number of condition check-ins
Number of proof of address check-ins
Total number of check-ins across all types
users
object
Count of a partner's users, split by whether they are tagged as MobileMax users.
Number of users tagged as MobileMax, i.e. whose CustomField1 is 'MobileMax'
Number of users not tagged as MobileMax. Includes users with no CustomField1 value set
Total number of users, the sum of the MobileMax and non-MobileMax counts
{
"checkins": {
"mileage": 0,
"condition": 0,
"proofOfAddress": 0,
"total": 0
},
"users": {
"mobileMax": 0,
"nonMobileMax": 0,
"total": 0
}
}
Invalid request. Possible error codes
-
ERROR_INVALID_DATE_FILTER
- application/json
- Schema
- Example (from schema)
Schema
Error code
A verbose error message
{
"error_code": "string",
"error_message": "string"
}
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"
}