v1

latestOpenAPI 3.1.02026-07-2438302.6 MB

Get All Assets

get/assets

Query parameters

sort_by'asset_code' | 'asset_name' | 'warranty_expiry_date' | 'created_at' required
sort'DESC' | 'ASC' required
pageinteger required
countinteger required
populate_inspection_formboolean required
filter.keywordstring
filter.owned_by_customerboolean
filter.is_activeboolean
filter.asset_categorystring

comma separated asset category UIDs

filter.customerstring

comma separated customer UIDs

filter.warranty_from_datestring date
filter.warranty_to_datestring date
filter.placed_in_service_fromstring date
filter.placed_in_service_tostring date
filter.asset_uidstring

comma separated asset UIDs

filter.created_atstring date
filter.created_bystring

comma separated user UIDs

filter.updated_atstring date
filter.propertystring

comma separated properties UIDs

filter.organizationstring

comma separated organization UIDs

filter.serial_nostring
filter.custom_fieldobject
filter.is_deletedboolean
filter.asset_status'READY_TO_INSTALL' | 'INSTALLED' | 'UNDER_SERVICE' | 'REMOVED' | 'OBSOLETE'
filter.orphaned_assetsstring

comma separated asset UIDs

filter.next_service_from_datestring date
filter.next_service_to_datestring date
filter.last_service_from_datestring date
filter.last_service_to_datestring date
filter.updated_at_fromstring date
filter.updated_at_tostring date
filter.parent_assetstring

comma separated asset UIDs

Response

200

typestring
total_recordsinteger
current_pageinteger
total_pagesinteger

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
}