Credentials
{{SCGetNewKey.data.apiGenerateNewKey.data.new_api_key}}
expires at {{SCGetNewKey.data.apiGenerateNewKey.data.expires_at}}
Customers
| Name | ID | Address | Postcode | Status | Created |
|---|---|---|---|---|---|
{{'GET ' + '/tachohouse/api/integration/customers' + '?incDepots=' + checkboxIncDepots.checked + (selectCustomerStatus.value ? '&status=' + selectCustomerStatus.value : '') + '\nAuthorization: ' + textauth.value}}
{{SCAPIGetCustomers.data.stringify()}}
Drivers
| Name | Card serial number | Customer ID | Depot ID | Status | Latest Activity | Risk Score (3x KPI) | Created |
|---|---|---|---|---|---|---|---|
{{'GET ' + '/tachohouse/api/integration/drivers' + '?customerId=' + textCustGUID.value + '&depotId=' + textDepotID.value + (selectDriverStatus.value ? '&status=' + selectDriverStatus.value : '') + '\nAuthorization: ' + textauth.value}}
{{SCAPIGetDrivers.data.stringify()}}
Infringements
Date ranges cannot exceed 90 days — a wider range returns a 422 error.
| Infringement ID | Date/Time | Infringement | Band | Driver | Card serial number | Status |
|---|---|---|---|---|---|---|
{{'GET ' + '/tachohouse/api/integration/infringements' + '?customerId=' + textInfCustGUID.value + '&cardSerialNumber=' + textInfDriverCardID.value + (selectOpenOnly.value ? '&status=' + selectOpenOnly.value : '') + '&dateFrom=' + (textDateFrom.value || 'null') + '&dateTo=' + (textDateTo.value || 'null') + '\nAuthorization: ' + textauth.value}}
{{SCAPIInfringements.data.stringify()}}
Full Infringement Details
| Time (UTC) | Time (Local) | Activity | Driver/Co-driver | Single Crew | Card Status | Manual Entry |
|---|---|---|---|---|---|---|
This infringement has comments — see the full response below for their shape, since we haven't seen a non-empty example yet to build a proper display for.
Full response
Every field returned by the API for this infringement, including duty activity changes and registrations, however the endpoint returns them.
{{'GET ' + '/tachohouse/api/integration/infringements/' + textDetailsInfringementID.value + '/details' + '\nAuthorization: ' + textauth.value}}
{{SCAPIInfringementDetails.data.stringify()}}
Sign Off Infringement
Leave Admin ID blank to sign off as the driver (infringement must currently be awaiting-driver-response; only signed-off or disputed are allowed, and driverComment is required if disputing).
Provide an Admin ID to act as that admin instead (allows awaiting-driver-response, signed-off, closed-off, or unacknowledged; adminComment is required only when an admin signs off on the driver's behalf).
{{'POST ' + '/tachohouse/api/integration/infringements/' + textInfringementID.value + '/sign-off' + '\nAuthorization: ' + textauth.value + '\nContent-Type: application/json\n\n{\n ' + '"status": "' + selectInfStatus.value + '",\n "adminId": "' + textSignOffAdminID.value + '",\n "adminComment": "' + textSignOffAdminComment.value + '",\n "driverComment": "' + textInfComment.value + '"' + '\n}'}}
{{SCSignOffInfringement.data.stringify()}}
Add Customer
{{'POST ' + '/tachohouse/api/integration/customers/add' + '\nAuthorization: ' + textauth.value + '\nContent-Type: application/json\n\n{\n ' + '"customerName": "' + textAddCustName.value + '",\n "customerEmail": "' + textAddCustEmail.value + '"' + '\n}'}}
{{SCAddCustomer.data.stringify()}}
Update Customer
{{'POST ' + '/tachohouse/api/integration/customers/' + textUpdateCustGUID.value + '/update' + '\nAuthorization: ' + textauth.value + '\nContent-Type: application/json\n\n{\n ' + '"status": "' + selectUpdateCustStatus.value + '",\n "incChildCustomers": ' + checkboxUpdateCustIncChildren.checked + '\n}'}}
{{SCUpdateCustomer.data.stringify()}}
Users
Useful for getting admin user GUIDs to use as the Admin ID on the Sign Off pane.
{{'GET ' + '/tachohouse/api/integration/users' + '?customerId=' + textUsersCustGUID.value + '\nAuthorization: ' + textauth.value}}
| Name | Username / Email | Type | Head User | Status | Last Logged On | User ID |
|---|---|---|---|---|---|---|
{{SCUsers.data.stringify()}}
Driver Details
{{'GET ' + '/tachohouse/api/integration/drivers/' + textDriverDetailsGUID.value + '/details' + '\nAuthorization: ' + textauth.value}}
{{SCDriverDetails.data.apiGetDriverDetails.data.firstNames}} {{SCDriverDetails.data.apiGetDriverDetails.data.surname}}
| Card Serial Number | Valid From | Valid To | Last Download |
|---|---|---|---|
— ()
{{SCDriverDetails.data.stringify()}}
Driver Duties
{{'GET ' + '/tachohouse/api/integration/drivers/' + textDriverDutiesGUID.value + '/duties' + '\nAuthorization: ' + textauth.value}}
| Duty Start | Duty End | Duty Length |
|---|---|---|
{{SCDriverDuties.data.stringify()}}
Driver Duty
{{'GET ' + '/tachohouse/api/integration/drivers/' + textDriverDutyGUID.value + '/duty' + '?activityDate=' + textDriverDutyDate.value + '\nAuthorization: ' + textauth.value}}
| Duty Start | Duty End | Duty Length |
|---|---|---|
→ ( mins)
| Vehicle | First Use | Last Use | Odo Start | Odo End | KM |
|---|---|---|---|---|---|
| From | To | Activity | Duration (mins) |
|---|---|---|---|
{{SCDriverDuty.data.stringify()}}
Driver Raw Day
{{'GET ' + '/tachohouse/api/integration/drivers/' + textDriverRawDayGUID.value + '/raw-day' + '?activityDate=' + textDriverRawDayDate.value + '\nAuthorization: ' + textauth.value}}
| From | To | Activity | Duration (mins) |
|---|---|---|---|
{{SCDriverRawDay.data.stringify()}}
Download History
{{'GET ' + '/tachohouse/api/integration/drivers/' + textDriverHistoryGUID.value + '/download-history' + '?offset=' + textDriverHistoryOffset.value + '\nAuthorization: ' + textauth.value}}
{{SCDriverDownloadHistory.data.stringify()}}
Vehicles
{{'GET ' + '/tachohouse/api/integration/vehicles' + '?customerId=' + textVehiclesCustGUID.value + '&depotId=' + textVehiclesDepotGUID.value + '\nAuthorization: ' + textauth.value}}
| Registration | VIN | Customer ID | Depot ID | Status | Created |
|---|---|---|---|---|---|
{{SCVehicles.data.stringify()}}
Vehicle Details
{{'GET ' + '/tachohouse/api/integration/vehicles/' + textVehicleDetailsGUID.value + '/details' + '\nAuthorization: ' + textauth.value}}
{{SCVehicleDetails.data.stringify()}}
Vehicle Duty
{{'GET ' + '/tachohouse/api/integration/vehicles/' + textVehicleDutyGUID.value + '/duty' + '?dateFrom=' + textVehicleDutyFrom.value + '&dateTo=' + textVehicleDutyTo.value + '\nAuthorization: ' + textauth.value}}
One row per day of activity (days with no insertion/withdrawal are skipped below, but still in the raw response). If a day ever has more than one driver session, only the first is shown here — check the raw response for the rest.
| Date | Driver | Slot | Inserted | Odo In | Withdrawn | Odo Out | Duration | KM |
|---|---|---|---|---|---|---|---|---|
{{SCVehicleDuty.data.stringify()}}
Vehicle Day
{{'GET ' + '/tachohouse/api/integration/vehicles/' + textVehicleDayGUID.value + '/day' + '?activityDate=' + textVehicleDayDate.value + '\nAuthorization: ' + textauth.value}}
| From | To | Duration (mins) |
|---|---|---|
| Time | Activity | Single Crew | Card Status | Manual Entry |
|---|---|---|---|---|
| Time | Activity | Single Crew | Card Status | Manual Entry |
|---|---|---|---|---|
{{SCVehicleDay.data.stringify()}}
Planning
{{'GET ' + '/tachohouse/api/integration/planning' + '?customerId=' + textPlanningCustGUID.value + '\nAuthorization: ' + textauth.value}}
{{SCPlanning.data.stringify()}}
Missing KM
{{'GET ' + '/tachohouse/api/integration/missing-km' + '\nAuthorization: ' + textauth.value}}
{{SCMissingKm.data.stringify()}}
Missing KM (Full)
{{'GET ' + '/tachohouse/api/integration/missing-km/full' + '?vehicleId=' + textMissingKmVehicleID.value + '&activityDate=' + textMissingKmDate.value + '\nAuthorization: ' + textauth.value}}
{{SCMissingKmFull.data.stringify()}}
Acknowledge Missing KM
{{'POST ' + '/tachohouse/api/integration/missing-km/acknowledge' + '?vehicleId=' + textAckVehicleID.value + '&activityDate=' + textAckDate.value + '\nAuthorization: ' + textauth.value + '\nContent-Type: application/json\n\n{\n ' + '"comment": "' + textAckComment.value + '",\n "category": "' + selectAckCategory.value + '",\n "driverId": "' + textAckDriverID.value + '"' + '\n}'}}
{{SCMissingKmAck.data.stringify()}}
Raw Data Download
{{'GET ' + '/tachohouse/api/integration/raw-data/download' + '\nAuthorization: ' + textauth.value}}
{{SCRawDataDownload.data.stringify()}}