Page 1 of 1

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

Posted: Tue Apr 23, 2024 1:53 am
by brooke.humphries
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.

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

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

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

The Authorization URL doesn't seem right.

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

Posted: Mon Apr 29, 2024 11:25 pm
by brooke.humphries
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.

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

Posted: Mon Apr 29, 2024 11:27 pm
by brooke.humphries
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.

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

Posted: Wed May 01, 2024 5:10 am
by SimproAPITeam
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

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

Posted: Thu May 02, 2024 11:22 pm
by brooke.humphries
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.

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

Posted: Thu May 02, 2024 11:33 pm
by SimproAPITeam
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

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

Posted: Sun May 05, 2024 9:53 pm
by brooke.humphries
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

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

Posted: Wed May 08, 2024 1:40 am
by SimproAPITeam
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