Page 1 of 1

Simpro API does not work!

Posted: Tue Oct 16, 2018 5:45 am
by romdlv
I have tried to connect to the Simpro API

https://hickorygroup.simprosuite.com/api

I have created an API application within SimPro setup.

I have tried using both API Key and Resource Owner Credentials as Grant Types.

I am currently using Postman to connect to this API and no matter what I do to provide the required keys and parameters the connection does not take place.

It keeps coming up with error

401 Unauthorized

Can someone please assist asap.

Re: Simpro API does not work!

Posted: Tue Oct 16, 2018 11:36 pm
by rick.lan
Hi romdlv,

Please take a look the API documentation about how to authenticate your application/Postman:

http://developer.simprogroup.com/apidoc ... y-workflow


This is a quick example of using API Key, please make sure that your URL is starting from https://hickorygroup.simprosuite.com/api/v1.0/ (and replace your own API key ;) ):
Image

cheers,

Rick

Re: Simpro API does not work!

Posted: Wed Oct 17, 2018 1:38 am
by romdlv
Hi Rick,

Thanks for your response.

I have tried this previously and I get an error as below:

{"errors":[{"path":null,"message":"Invalid route.","value":null}]}

Regards,

Rom

Re: Simpro API does not work!

Posted: Wed Oct 17, 2018 1:43 am
by rick.lan
Hi Rom,

That looks better now, maybe you can try this URL:

Code: Select all

https://hickorygroup.simprosuite.com/api/v1.0/companies/4/customers/
to see if you are getting a list of customers.

Cheers,

Rick

Re: Simpro API does not work!

Posted: Fri Oct 19, 2018 4:21 am
by romdlv
Hi Rick,

I am now getting following information

ID
_href
CompanyName
GivenName
FamilyName

with data in them

Regards,

Rom

Re: Simpro API does not work!

Posted: Tue Oct 23, 2018 1:19 am
by rick.lan
Hi romdlv,

That looked correct to me, it works! ;)

cheers,

Rick