Find SiteID from Site Name

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
MrLaforge
Posts: 1
Joined: Tue Jun 24, 2025 2:14 am

Find SiteID from Site Name

Post by MrLaforge » Tue Jun 24, 2025 2:19 am

Hi Everyone,

Trying to put together a simple API integration with our on-premise CRM.

I've got webhooks working for the creation of jobs and quotes and uploading attachments so I thought this would be easy - but I can't seem to get this
call quite right.

I simply want to get the siteID for a site based on the site name - we only have name in one system but we need siteid for the job and quote creation.
I could do this in a standalone table but would prefer to simply request when required (this also allows me to create missing sites later on).

I'm calling:

GET https://xxx.simprosuite.com/api/v1.0/co ... tes/?Name="{{ ['Site name Simpro'] }}" but keep getting blank arrays.

Can anyone assist?

Thanks!
johntrickett
Posts: 12
Joined: Sat Sep 28, 2024 11:31 am

Re: Find SiteID from Site Name

Post by johntrickett » Tue Jun 24, 2025 7:53 am

Have you tried adding the wildcard by including the percent operator (%25)?

GET /api/v1.0/companies/?Name=Comp%25
SimproAPITeam
Posts: 831
Joined: Wed May 01, 2024 2:31 am

Re: Find SiteID from Site Name

Post by SimproAPITeam » Fri Jun 27, 2025 2:48 am

H
Your query parameter to get sites based on its name is correct, you just have to remove the quotation marks and it should work as expected.

Code: Select all

/sites/?Name=siteName
Regards
Simpro API Team | Simpro Software Group
Post Reply