Page 1 of 1

Unable to find Assets from Site Rest API

Posted: Tue Apr 23, 2024 2:02 am
by brooke.humphries
We are having difficulty finding the correct Rest API to use to retrieve the assets associated with a site, including the barcode.

We have tried using the [Sites/Site ID] Rest API to fetch site-related details, but we are not able to retrieve the associated assets through this API call. I have attached the generated JSON


However, we can see the assets associated with a site through the SIMPRO application. I have attached a screenshot of the assets shown in the SIMPRO application for your reference.

Re: Unable to find Assets from Site Rest API

Posted: Tue Apr 23, 2024 5:46 am
by AidenTew
Hi Brooke,

You can try using this endpoint to get the info on assets associated with sites.
https://developer.simprogroup.com/apido ... 2a707c475d

eg. /api/v1.0/companies/{companyID}/customerAssets/?Site.ID={SiteID}&columns=ID,Site,CustomFields

The barcode information will be in the Custom Fields.

Hope that helps.