FieldEx Developer
developer notes

Get All Assets by Customer

The AssetGetAllByCustomer API allows you to retrieve all existing Assets by Customer.

Method API Endpoint
GET {{endpoint}}/api/ext/assets/filter

Headers

Key Value
Content-Type application/json
Authorization Bearer {{token}}

Filter Fields

Parameter Type Example Length Required Description
search String a true Specifies the search query
page Number 0 true Specifies the page number
perPage Number 25 true Specifies the number of records per page
startFrom Number 0 true Specifies the start point of the column being sorted
columnName String id true Specifies the name of the column being sorted
sortOrder String desc/asc true Specifies the order in which the column is being sorted
origin String a false Origin information for filtering
customerId Number 2 false Specifies the Customer ID being filtered
status Boolean true false ***
assetStatuses String Available false Specifies the status of an asset
assetTypes String Asset false Specifies the type of an asset
nextMaintenanceFromDateTime Date/Time 2023-10-05T02:26:18Z false Specifies the date and time from next maintenance
nextMaintenanceToDateTime Date/Time 2023-10-05T03:26:18Z false Specifies the date and time to next maintenance
assetsID Number 1 false Specifies the asset ID name
serviceZoneId Number 2 false Specifies the service zone name
serviceZoneName String Service Zone false Specifies the service zone name
binID Number 3 false Specifies the bin ID name
assetTypeNames String Asset false Specifies the Asset Type Names
roleId Number 1 false Specifies the role ID
siteId Number 2 false Specifies the site ID
projectId Number 5 false Specifies the project ID
ContractId Number 3 false Specifies the contract ID

API Query Example

Method API call
GET api/ext/assets/filter?search=&startFrom=0&page&perPage=25&columnName=name&sortOrder=asc&origin=&customerId=&status=&assetStatuses&assetTypes&nextMaintenanceFromDateTime&nextMaintenanceToDateTime&assetsId&serviceZoneId&serviceZoneName&binId&assetTypeNames&roleId&siteId&projectId&contractId