400
Bad Request
Invalid Request to Server. Make sure to double-checks all of the input data.
Endpoint | Method | Code | Description | Detail |
---|---|---|---|---|
/vehicles/{id} | GET | E-V1/1-2 | An error occurred while executing query / GraphQL validation failed. | Happens when the input is not following its type. |
E-V1/1-3 | An error found after requesting data. | Happens when the data client's requested are invalid. Error detail will be different each request. | ||
/vehicles/ | GET | E-V1/1-4 | An error occurred while executing query / GraphQL validation failed. | Happens when the input is not following its type. |
E-V1/1-5 | An error found after requesting data. | Happens when the data client's requested are invalid. Error detail will be different each request. | ||
E-V1/1-6 | No vehicle data returned. | Happens when the data client's requested are empty. | ||
POST | E-V1/2-2 | An error occurred while executing query / GraphQL validation failed. | Happens when the input is not following its type. | |
E-V1/2-3 | Device not found, invalid IMEI. | Happens when client try to add a new vehicle with unknown device. | ||
E-V1/2-4 | License Plate is required. | Happens when try to add a new vehicle without license plate. | ||
E-V1/2-5 | Vehicle Type ID is required. | Happens when try to add a new vehicle without vehicle type ID. | ||
E-V1/2-6 | An error occurred while executing query / GraphQL validation failed. | Happens when the input is not following its type. | ||
E-V1/2-7 | Box Type does not exist. | Happens when try to add a new vehicle with unknown box type. | ||
E-V1/2-8 | Thermo Type does not exist. | Happens when try to add a new vehicle with unknown thermo type. | ||
E-V1/2-9 | An error occurred while executing query / GraphQL validation failed. | Happens when the input is not following its type. | ||
E-V1/2-10 | An error found after requesting data. | Happens when the data client's requested are invalid. Error detail will be different each request. | ||
PATCH | E-V1/3-3 | Vehicle identifier (Vehicle ID, License Plate, or IMEI) is required. | Happens when try to update vehicle's odometer without vehicle identifier. | |
E-V1/3-4 | Only 1 vehicle identifier is accepted. | Happens when try to update vehicle's odometer with more than 1 vehicle identifier. | ||
E-V1/3-5 | Odometer is required. | Happens when try to update update vehicle's without odometer. | ||
E-V1/3-6 | An error occurred while executing query / GraphQL validation failed. | Happens when the input is not following its type. | ||
E-V1/3-7 | Vehicle is not found. | Happens when try to get Vehicle using License Plate. | ||
E-V1/3-8 | Vehicle is not found. | Happens when try to get Vehicle using IMEI. | ||
E-V1/3-9 | Vehicle is not found. | Happens when try to get Vehicle using Vehicle ID. | ||
E-V1/3-10 | An error found after requesting data. | Happens when the input is not following its type. | ||
E-V1/3-11 | Forbidden Vehicle accesss. | Happens when try to update Vehicle from another company. | ||
E-V1/3-12 | An error found after requesting data. | Happens when the data client's requested are invalid. | ||
/vehicles/statuses/ | GET | E-V1/S1-2 | An error occurred while executing query / GraphQL validation failed. | Happens when the input is not following its type. |
E-V1/S1-3 | An error found after requesting data. | Happens when the data client's requested are invalid. Error detail will be different each request. | ||
E-V1/S1-4 | No vehicle status data returned. | Happens when the data client's requested are empty. | ||
/vehicles/{id}/status | GET | E-V1/S2-2 | An error found after requesting data. | Happens when the data client's requested are invalid. Error detail will be different each request. |
E-V1/S2-3 | No vehicle status data returned. | Happens when the data client's requested are empty. | ||
/trips/ | GET | E-T1/1-2 | Vehicle ID or Driver ID is required. | Happens when client trying to request data without Vehicle ID or Driver ID. |
E-T1/1-3 | An error occurred while executing query / GraphQL validation failed. | Happens when the input is not following its type. | ||
E-T1/1-4 | An error found after requesting data. | Happens when the data client's requested are invalid. Error detail will be different each request. | ||
/trips/{id}/detail | GET | E-T1/D1-2 | Speed Limit should be a positive value. | Happens when client trying to request data with negative Speed Limit. |
E-T1/D1-3 | Vehicle filter needs one of the following: Vehicle ID / License Plate / IMEI. | Happens when client trying to request data without any vehicle filters. | ||
E-T1/D1-4 | Date Filter cannot be empty. | Happens when client trying to request data without any Date filters. | ||
E-T1/D1-5 | Filter Date range exceeding the maximum of 7 days. | Happens when client trying to request data with more than 7 days. | ||
E-T1/D1-6 | An error occurred while executing query / GraphQL validation failed. | Happens when the input is not following its type. | ||
E-T1/D1-7 | An error found after requesting data. | Happens when the data client's requested are invalid. Error detail will be different each request. | ||
/trips/last/ | GET | E-T1/L1-2 | Vehicle ID is required. | Happens when client trying to request data without Vehicle ID. |
E-T1/L1-3 | An error occurred while executing query / GraphQL validation failed. | Happens when the input is not following its type. | ||
E-T1/L1-4 | An error found after requesting data. | Happens when the data client's requested are invalid. Error detail will be different each request. | ||
/trips/location/ | POST | E-T1/L2-3 | Gps Time is required | Happens because the Gps Time Input is required. |
E-T1/L2-4 | Latitude is required. | Happens because the Latitude Input is required. | ||
E-T1/L2-5 | Longitude is required. | Happens because the Longitude Input is required. | ||
E-T1/L2-6 | Ignition is required. | Happens because the Ignition Input is required. | ||
E-T1/L2-7 | Speed is required. | Happens because the Speed Input is required. | ||
E-T1/L2-8 | Device not found, invalid IMEI | Happens because Device not found, invalid IMEI | ||
E-T1/L2-9 | An error found after requesting data | Happens when the data client's requested are invalid.Error detail will be different each request. | ||
/geofences/ | GET | E-G1/1-2 | An error occurred while executing query / GraphQL validation failed. | Happens when the input is not following its type. |
E-G1/1-3 | An error found after requesting data. | Happens when the data client's requested are invalid. Error detail will be different each request. | ||
POST | E-G1/2-2 | Fence Name is required. | Happens when try to add a new geofence without fence name. | |
E-G1/2-3 | Type is required. | Happens when try to add a new geofence without type. | ||
E-G1/2-4 | An error occurred while executing query / GraphQL validation failed. | Happens when the input is not following its type. | ||
E-G1/2-5 | An error found after requesting data. | Happens when the data client's requested are invalid. Error detail will be different each request. | ||
/api-key/ | GET | E-AK1/1-2 | An error occurred while executing query / GraphQL validation failed. | Happens when the input is not following its type. |
E-AK1/1-3 | An error found after requesting data. | Happens when the data client's requested are invalid. Error detail will be different each request. | ||
E-AK1/1-4 | An error found after requesting data. | Happens when the data client's requested are invalid. Error detail will be different each request. | ||
/login/ | POST | E-L1/1-2 | An error occurred while executing query / GraphQL validation failed. | Happens when the input is not following its type. |
E-L1/1-3 | An error found after requesting data. | Happens when the data client's requested are invalid. Error detail will be different each request. | ||
E-L1/1-4 | An error occurred while executing query / GraphQL validation failed. | Happens when the input is not following its type. | ||
E-L1/1-5 | An error found after requesting data. | Happens when the data client's requested are invalid. Error detail will be different each request. | ||
/report/offline-history | GET | E-R1/OH1-2 | Vehicle identifier (Vehicle ID, License Plate, or IMEI), start date, and end date are required. | Happens when try to retrieve gps offline history without vehicle identifier and date range. |
E-R1/OH1-3 | Vehicle ID cannot be 0. | Happens when try to retrieve gps offline history with false vehicle ID. | ||
E-R1/OH1-4 | An error occurred while executing query / GraphQL validation failed. | Happens when the input is not following its type. | ||
E-R1/OH1-5 | An error found after requesting data. | Happens when the data client's requested are invalid. Error detail will be different each request. | ||
E-R1/OH1-6 | An error occurred when data not found | Happens when the input is not following its type. | ||
E-R1/OH1-7 | An error occurred while executing query / GraphQL validation failed. | Happens when the input is not following its type. | ||
E-R1/OH1-8 | An error found after requesting data. | Happens when the data client's requested are invalid. Error detail will be different each request. | ||
E-R1/OH1-9 | An error occurred when data not found | Happens when the input is not following its type. | ||
/live-data/create_temp_live_view | POST | E-LD1/CTLV1-04 | An error occured when licensePlates data type is invalid. | Happens when the input is not following its type. |
E-LD1/CTLV1-05 | An error occured when pickedColumns data type is invalid. | Happens when the input is not following its type. | ||
E-LD1/CTLV1-06 | An error occured when there are valid pickedColumns. | Happens when the input is not following its type. | ||
E-LD1/CTLV1-09 | An error occurred while executing query / GraphQL validation failed. | Happens when the input is not following its type. | ||
E-LD1/CTLV1-11 | An error occurred no license plates found. | Happens when one or more license plates not found. | ||
/live-data/temp_live_view | GET | E-LD1/GTLV1-02 | An error occured when parameters is invalid. | Happens when the input is not following its requirement. |
E-LD1/GTLV1-03 | An error occured when parameters is invalid. | Happens when parameter expiredOnStartDate is provided but expiredOnEndDate is not or vice versa. | ||
E-LD1/GTLV1-06 | An error occured when parameters is invalid. | Happens when vehicleIds parameter have invalid json. |
401
Unauthorized
The request cannot be performed because the client has not provided a valid credentials.
Endpoint | Method | Code | Description | Detail |
---|---|---|---|---|
ALL | Authentication token is required | Happens when client trying to request data without token. | ||
/login/ | POST | E-L1/1-6 | Invalid API key. | Happens when client trying to login with invalid API Key. |
403
Forbidden
The request cannot be performed because the client does not have access to the data.
Endpoint | Method | Code | Description | Detail |
---|---|---|---|---|
ALL | No header found | Happens when client trying to request data without header. | ||
/login/ | POST | E-L1/1-1 | All credentials must be filled. | Happens when client trying to login without user credential and API key. |
/api-key/ | POST | E-AK1/1-1 | Either authentication token or user credential is required. | Happens when client trying to request data without token or user credential. |
500
Internal Server Error
Server encountered an unexpected condition that prevented it from fulfilling the request.
Endpoint | Method | Code | Description | Detail |
---|---|---|---|---|
ALL | No url specified / other errors | Server Error, try again later or contact the owner. |