404 error when 1. when trying to connect to the SIMPRO Rest API using OAuth 2.0 from the Power Platform's custom connect

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

404 error when 1. when trying to connect to the SIMPRO Rest API using OAuth 2.0 from the Power Platform's custom connect

Post by brooke.humphries » Tue Apr 23, 2024 1:53 am

1. when trying to connect to the SIMPRO Rest API using OAuth 2.0 from the Power Platform's custom connector.
We are getting a 404 error when using the Client and Secret method, which was recommended by the SIMPRO Developer Centre. We chose this method because it allows us to fetch details without the user having to log in.

The Power Platform custom connector requires the following details:
• Client ID,
• Client Secret,
• Authorization URL,
• Token URL, and
• Refresh URL.

The Redirect URL is generated automatically. I have attached a screenshot for your reference.
Attachments
screenshot.png
screenshot.png (78.73 KiB) Viewed 234 times
AidenTew
Posts: 25
Joined: Fri Mar 01, 2024 4:15 am

Re: 404 error when 1. when trying to connect to the SIMPRO Rest API using OAuth 2.0 from the Power Platform's custom con

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

Hi Brooke,

Are you using the correct API Application with Authorisation Code as the Grant Type?

The Authorization URL doesn't seem right.
Aiden
API Developer | Simpro Software Group
brooke.humphries
Posts: 6
Joined: Thu Apr 18, 2024 11:09 pm

Re: 404 error when 1. when trying to connect to the SIMPRO Rest API using OAuth 2.0 from the Power Platform's custom con

Post by brooke.humphries » Mon Apr 29, 2024 11:25 pm

Hi Aiden,

Have created a new api with Authorisation code as the grant type and then below is the screen shot of all the setting after doing this when I try to create a connection, I get Client id is invalid. Below are the screens of all the things I have done in both Simpro and Power platform.
Attachments
3.png
3.png (80.99 KiB) Viewed 210 times
2.png
2.png (28.5 KiB) Viewed 210 times
1.png
1.png (38.52 KiB) Viewed 210 times
brooke.humphries
Posts: 6
Joined: Thu Apr 18, 2024 11:09 pm

Re: 404 error when 1. when trying to connect to the SIMPRO Rest API using OAuth 2.0 from the Power Platform's custom con

Post by brooke.humphries » Mon Apr 29, 2024 11:27 pm

Hi Aiden,

Have created a new api with Authorisation code as the grant type and then below is the screen shot of all the setting after doing this when I try to create a connection, I get Client id is invalid. Below are the screens of all the things I have done in both Simpro and Power platform.
SimproAPITeam
Posts: 12
Joined: Wed May 01, 2024 2:31 am

Re: 404 error when 1. when trying to connect to the SIMPRO Rest API using OAuth 2.0 from the Power Platform's custom con

Post by SimproAPITeam » Wed May 01, 2024 5:10 am

Hi Brooke,
I've done some tests on the credentials through Postman testing both client credentials and authorisation code without any issues.

We are not able to verify your setup in Power Platforms so I recommend that you test your credentials in a platform such as Postman or Insomnia first to see that they are working.

Then you can verify if the issue is your credentials or the Power Platform.

Regards
Simpro API Team | Simpro Software Group
brooke.humphries
Posts: 6
Joined: Thu Apr 18, 2024 11:09 pm

Re: 404 error when 1. when trying to connect to the SIMPRO Rest API using OAuth 2.0 from the Power Platform's custom con

Post by brooke.humphries » Thu May 02, 2024 11:22 pm

Hi Aiden,

We have tested the credentials through Postman without issues.

Our issue with Power platform is not that it can’t authenticate - it is giving an error message that the no clientid found.
SimproAPITeam
Posts: 12
Joined: Wed May 01, 2024 2:31 am

Re: 404 error when 1. when trying to connect to the SIMPRO Rest API using OAuth 2.0 from the Power Platform's custom con

Post by SimproAPITeam » Thu May 02, 2024 11:33 pm

Hi,
Good to know that the credentials are working and you can connect though other services.

We are unable to troubleshoot errors in Power Platform as we don't have access or knowledge of the platform so I think it would be best to contact them for help with the error messages returned and what might be missing in the setup.

In your first screen shot it seems like the client secret is reporting an error but that should be the client secret that in included in your credentials file.

Regards
Simpro API Team | Simpro Software Group
brooke.humphries
Posts: 6
Joined: Thu Apr 18, 2024 11:09 pm

Re: 404 error when 1. when trying to connect to the SIMPRO Rest API using OAuth 2.0 from the Power Platform's custom con

Post by brooke.humphries » Sun May 05, 2024 9:53 pm

Hi,

I think I may have not have been clear in describing the issue. The error isn't related to the first screen shot. I just included that to show how we have setup the application.

The error occurs when we create a connection after we've registered the connector.

Please let me know if you need more information
Attachments
screenshot.png
screenshot.png (45.26 KiB) Viewed 14 times
SimproAPITeam
Posts: 12
Joined: Wed May 01, 2024 2:31 am

Re: 404 error when 1. when trying to connect to the SIMPRO Rest API using OAuth 2.0 from the Power Platform's custom con

Post by SimproAPITeam » Wed May 08, 2024 1:40 am

Hi,
If the same credentials are working in Postman we know that they are valid and recognised when authenticating in the API. Unfortunately we are unable to troubleshoot your connection through Power Platform as we don;t know their settings.

Regards
Simpro API Team | Simpro Software Group
Post Reply