Apiguide

Devices

API endpoints for retrieving Devices

Overview

enVision Cloud provides a set of endpoints that enable authorized parties to download information on registered devices.

You must include a valid Bearer token in the Authorization header of any request to enVision Cloud APIs. Tokens can be managed in the enVision Cloud Portal

Response Format

All calls to Device APIs return single or multiple device records.

Example Response
[
  {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "name": "My enVision Device",
    "appVersion": "v1.2",
    "terminalId": 3,
    "lastHeartbeatUtc": "2024-08-01T18:40:40.354Z",
    "registrationCode": "ABCD2345"
  }
]
PropertyData TypeDescription
idstringenVision System-assigned unique identifier for the device. Use it as input for endpoints that accept a deviceClientId
namestringName of the device
appVersionstringApplication Version the device is running
terminalIdstringthe Id of the terminal the device is associated with
lastHeartbeatUtcstringUTC Date & time of last heartbeat received
registrationCodestringDevice Registration Code

Endpoints

All Devices

Returns an array containing available devices

/api/deviceclients
Example Request
curl "https://api.ece.phdsolutions.ca/api/deviceClients" \
-X GET \
-H "Authorization: Bearer YOUR_AUTH_TOKEN"

Request Parameters

None.

Device by Id

Returns the device specified by the ID parameter, or 404 if not found.

/api/transactions/deviceclients/{id}
Example Request
curl "https://api.ece.phdsolutions.ca/api/deviceClients/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
-X GET \
-H "Authorization: Bearer YOUR_AUTH_TOKEN"

Request Parameters

ParameterRequiredDescription
idYesThe terminalId of the request.

Copyright © PHD Solutions 2024