Get All Assets
Changed onLists assets for the company, with pagination (offset or cursor-based) and an extensive set of filter.* query params.
Request
- Base URLhttps://dc-region.zuperpro.com/api
- URLhttps://dc-region.zuperpro.com/api/assets
- AuthAPI key in header x-api-key
Query parameters
comma separated asset category UIDs
comma separated customer UIDs
comma separated asset UIDs
comma separated user UIDs
comma separated properties UIDs
comma separated organization UIDs
Exact match only (comma-separated list, matched as a Mongo $in) — no prefix or partial matching.
comma separated asset UIDs
comma separated asset UIDs
Service contract UID.
Opaque cursor for cursor-based pagination.
Opaque cursor for the previous page.
Set to enable cursor-based pagination instead of offset pagination.
Sparse fieldset selector.
Response
200
Example response
{
"type": "success",
"data": [
{
"asset_uid": "f3533b10-6829-11ee-af3a-a79966abe7f6",
"asset_code": "tetssf",
"asset_name": "etgasd",
"asset_category": {
"category_name": "Air Conditioner",
"category_description": "Description",
"category_uid": "22b74240-09fe-11ea-b1f3-d505ea8dd454"
},
"asset_quantity": 1,
"custom_fields": [
{
"label": "Text Area",
"type": "MULTI_LINE",
"_id": "65279eba14c0bef806cadf53"
}
],
"asset_location": {
"city": "Rome",
"state": "Lazio",
"street": "Testaccio",
"zip_code": "00153",
"geo_cordinates": [
39.913305
],
"first_name": "Ashin",
"last_name": "Customer",
"email": "ashin.t@zuper.co"
},
"is_active": true,
"created_by": {
"user_uid": "1eb1d499-e8b1-4979-a04b-4b0599599529",
"first_name": "Ashin",
"last_name": "Thankachan",
"email": "ashin.t@zuper.co",
"designation": "Admin",
"emp_code": "Z103",
"work_phone_number": "8301907278",
"profile_picture": "https://s3.ap-south-1.amazonaws.com/staging.in.pro.zuper/attachments/6c287db0-ff7c-11e7-b3a8-29b417a4f3fa/d26d3dd0-0c47-11ee-b705-491517420371.jpg",
"hourly_labor_charge": 120,
"is_active": true,
"created_at": "2022-07-04T06:25:56.000Z",
"updated_at": "2023-10-05T08:30:17.000Z"
},
"created_at": "2023-10-11T11:33:08.062Z",
"updated_at": "2023-10-12T07:22:34.379Z",
"id": "undefined"
}
],
"total_records": 799,
"current_page": 1,
"total_pages": 80
}Changes
- info
added the new optional
queryrequest parametercursor - info
added the new optional
queryrequest parametercursor_pagination - info
added the new optional
queryrequest parameterfields_to_select - info
added the new optional
queryrequest parameterfilter.asset_code - info
added the new optional
queryrequest parameterfilter.scan_code - info
added the new optional
queryrequest parameterfilter.service_contract - info
added the new optional
queryrequest parameterprev_cursor
- info