Unable to find Assets from Site Rest API

Posts about the simPRO API. Help/support/how-to etc.
Forum rules
  • Check the documentation first. Before posting questions, please check the documentation to ensure it doesn't already cover what you need.
  • No spam. All automated messages, advertisements, and links to competitor websites will be deleted immediately.
  • Post in relevant sub-forums only. Messages posted in the wrong topic area will be removed and placed in the correct sub-forum by moderators.
  • Respect other users. No flaming or abusing fellow forum members. Users who continue to post inflammatory, abusive comments will be deleted from the forum after two warnings are issued by moderators.
  • Harassment. No threats or harassment of other users will be tolerated. Any instance of threatening or harassing behavior is grounds for deletion from the forums.
  • Adult content. No profanity or pornography is allowed. Posts containing adult material will be deleted.
  • Bandwidth. All images and signatures must be 500 x 500 pixels or smaller. Posts containing over-sized images and signatures will be removed.
  • Illegal content. No re-posting of copyrighted materials or other illegal content is allowed. Any posts containing illegal content or copyrighted materials will be deleted.
Post Reply
brooke.humphries
Posts: 6
Joined: Thu Apr 18, 2024 11:09 pm

Unable to find Assets from Site Rest API

Post by brooke.humphries » Tue Apr 23, 2024 2:02 am

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.
Attachments
Screenshot 2024-04-23 120210.png
Screenshot 2024-04-23 120210.png (19.62 KiB) Viewed 164 times
postman.png
postman.png (218.69 KiB) Viewed 164 times
assets.png
assets.png (224.14 KiB) Viewed 164 times
AidenTew
Posts: 25
Joined: Fri Mar 01, 2024 4:15 am

Re: Unable to find Assets from Site Rest API

Post by AidenTew » Tue Apr 23, 2024 5:46 am

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.
Aiden
API Developer | Simpro Software Group
Post Reply