Archived sessions
Changed onRetrieves completed charge sessions accessible by the current user, filtered by date range and exactly one of: an installation, a single charger, or an authorized user (the calling user's own id; support may pass any user's id). Results are returned in cursor-paginated pages in the requested order (oldest first by default); when hasMore is true, send the returned cursor as ?cursor= on the next request to fetch the next page. Default page size: 50. Max: 200.
Request
- Base URLhttps://api.zaptec.com
- URLhttps://api.zaptec.com/api/sessions/archived
- AuthOAuth 2PasswordToken URL: https://api.zaptec.com/oauth/token
Query parameters
Inclusive lower bound for session end time. Required.
Exclusive upper bound for session end time. Required, must be after from.
Installation to list sessions for. Requires owner role on the installation. Exactly one of installationId, chargerId or authorizedUserId is required.
Single charger to list sessions for. Requires owner role on the charger. Exactly one of installationId, chargerId or authorizedUserId is required.
User whose sessions to list. Must be the id of the calling user, unless the caller has an Administrator permission covering that user (support access). Exactly one of installationId, chargerId or authorizedUserId is required.
Page size. Default 50, max 200.
Sort order for archived sessions, by the time the session was recognized and finalized by the archive (see recognizedDateTime).
0 = RecognizedTimeAscending
1 = RecognizedTimeDescending
Sort order, by the time the session was recognized by the archive. Defaults to RecognizedTimeAscending (oldest first).
0 = RecognizedTimeAscending
1 = RecognizedTimeDescending
Opaque cursor from a previous response's cursor field. Omit to start from the first page.
Response
OK
Changes
- info
the endpoint scheme security
legacy_authwas removed from the API - info
added the new optional
queryrequest parameterAuthorizedUserId - info
added the new optional
queryrequest parameterOrder - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info