Equipment

Returns a list of equipment for a business unit.

Securitybearer
Request
path Parameters
businessUnitId
required
string <uuid>

The business unit Id.

query Parameters
accountingTemplateName
string

The accounting system template name. If not specified, use default accounting system.

isActive
boolean

If true, only include active equipment. If false, only include inactive equipment. If null, include all.

isDeleted
boolean

If true, only include deleted equipment. If false, only include non-deleted equipment. If null, include all.

Responses
get/api/v1/businessUnits/{businessUnitId}/equipment
Request samples
Response samples
application/json
[
  • {
    }
]

Returns a list of equipment.

Securitybearer
Request
Request Body schema:
businessUnitId
required
string <uuid>

The business unit id.

equipmentCodes
Array of strings or null

List of equipment codes.

equipmentIds
Array of strings or null <uuid>

List of equipment ids.

jobIds
Array of strings or null <uuid>

List of job ids.

jobTagIds
Array of strings or null <uuid>

List of job tag ids.

accountingTemplateName
string or null

The accounting template name.

isActive
boolean or null

The active flag.

isActiveInAnyActiveJobs
boolean or null

The flag to filter equipment to the active status in any of the active jobs.

isDeleted
boolean or null

The soft-deleted flag.

cursor
string or null

Optional.
When there are additional results, the metadata nextCursor field should be passed to retrieve the next page of results.

limit
integer or null <int32>

The maximum number of results that should be returned.

Responses
post/api/v1/equipment/advancedRequest
Request samples
{
  • "businessUnitId": "214dd610-35bc-4504-9246-7073493e0400",
  • "equipmentCodes": [
    ],
  • "equipmentIds": [
    ],
  • "jobIds": [
    ],
  • "jobTagIds": [
    ],
  • "accountingTemplateName": "string",
  • "isActive": true,
  • "isActiveInAnyActiveJobs": true,
  • "isDeleted": true,
  • "cursor": "string",
  • "limit": 0
}
Response samples
application/json
{
  • "results": [
    ],
  • "metadata": {
    }
}

Updates an existing equipment

Securitybearer
Request
path Parameters
businessUnitId
required
string <uuid>
equipmentId
required
string <uuid>
query Parameters
accountingTemplateName
string
Request Body schema:
required
equipmentId
required
string <uuid>

The equipment Id.

equipmentCode
required
string [ 1 .. 100 ] characters

The equipment code.

equipmentDescription
required
string <= 200 characters

The equipment description

gpsDeviceTag
required
string <= 50 characters

The GPS device tag.

isRental
boolean

The is Rental flag.

make
required
string <= 50 characters

The make of the equipment.

model
required
string <= 50 characters

The model of the equipment.

licensePlate
required
string <= 20 characters

The license plate.

serialNumber
required
string <= 50 characters

The serial number or VIN.

state
required
string <= 20 characters

The state.

vendorId
string or null <uuid>

The vendor Id.

year
integer <int32>

The year of the equipment.

isActive
required
boolean

The is Active flag.

operatorPayClassId
string or null <uuid>

The Operator's pay class Id.

equipmentTypeId
string or null <uuid>

The equipment type Id.

fuelTypeId
string or null <uuid>

The Fuel Type ID.

fuelCapacity
number <double>

The Fuel Capacity.

isFueler
boolean

The IsFueler.

accountingCode
string or null <= 100 characters

The accounting code.

accountingType
string or null <= 100 characters

The accounting type.

company
string or null <= 100 characters

The accounting company.

costType
string or null <= 100 characters

The accounting cost type.

division
string or null <= 100 characters

The accounting division.

generalLedgerAccount
string or null <= 100 characters

The accounting general ledger account.

meterType
string or null <= 100 characters

The accounting meter type.

miscAccount
string or null <= 100 characters

The accounting miscaccount.

usageCode
string or null <= 100 characters

The accounting usage code.

Responses
put/api/v1/businessUnits/{businessUnitId}/equipment/{equipmentId}
Request samples
{
  • "accountingCode": "ACCTCode1",
  • "accountingType": "AccountingType",
  • "company": "ABC Company",
  • "costType": "Truck",
  • "division": "Trucking Division",
  • "generalLedgerAccount": "GeneralLedger",
  • "meterType": "Meter",
  • "miscAccount": "Misc",
  • "usageCode": "UsageCode",
  • "equipmentId": "a25231b4-93e2-4b26-8e2c-c1c764054b25",
  • "equipmentCode": "EQ1",
  • "equipmentDescription": "Equipment 1",
  • "gpsDeviceTag": "GPSTag1",
  • "isRental": false,
  • "make": "Chevrolet",
  • "model": "Tahoe",
  • "licensePlate": "VSD 342K",
  • "serialNumber": "SerialNumber1",
  • "state": "TX",
  • "vendorId": "ccfafc90-941c-4b29-978b-d072d28fd6e5",
  • "year": 2024,
  • "isActive": true,
  • "operatorPayClassId": "c7499f28-679f-46a6-89c8-8459c9f6d022",
  • "equipmentTypeId": "c3310680-11a9-4a6c-a492-b04bf365d86f",
  • "fuelTypeId": "7d75dfe8-c4cb-4aff-a164-3b94eb41db67",
  • "fuelCapacity": 21.2,
  • "isFueler": false
}