Kaushik Ghate
August 13 2020 at 2:34 PM

Trying to create a service appointment app and before using CDKDrive Appointments v1; looks like I need to get Authorization tokens. Machine to machine auth is ideal for my use case, so going with Client Credentials Flow per documentation.

Here is what my Postman request looks like:

POST URL is https://identity.fortellis.io/oauth2/aus1p1ixy7YL8cMq02p7/v1/token

PARAMS are grant_type=client_credentials&scope=anonymous

HEADERS are 'accept: application/json' 'authorization: MY_APP_KEY:MY_APP_SECRET' 'cache-control: no-cache' 'content-type: application/x-www-form-urlencoded'

Getting this response from the API instead of auth tokens; What am I doing wrong? Please help.

{ "errorCode": "invalid_client", "errorSummary": "Invalid value for 'client_id' parameter.", "errorLink": "invalid_client", "errorId": "oaeP5BBq0prT-WZ5AaYW4Rl9g", "errorCauses": [] }    
Guru Sugavanam
August 19, 2020 at 12:34 PM

Hi Kaushik, The POST Url you are using is correct. When it comes to headers, please include the following: -content type: application/x-www-form-urlencoded -Request_Id:{Unique Request Id} -accept: application/json -cache-control: no-cache The params you are sending are correct. For more information please review: https://docs.fortellis.io/docs/tutorials/solution-integration/auth/ Please try and let us know.
Kaushik Ghate
August 21, 2020 at 2:21 PM

Thanks Guru for the response. I believe I am following all the documentation instructions but am still getting the error. Am attaching the screen shot from Postman where all the header parameters can be seen. And the API response which refers to the 'client_id' header is confusing when it's not even documented.

Can you please help find the solution?

[[{"fid":"2493","view_mode":"default","fields":{"format":"default","alignment":"","field_file_image_alt_text[und][0][value]":false,"field_file_image_title_text[und][0][value]":"postman_screenshot"},"type":"media","field_deltas":{"1":{"format":"default","alignment":"","field_file_image_alt_text[und][0][value]":false,"field_file_image_title_text[und][0][value]":"postman_screenshot"}},"attributes":{"title":"postman_screenshot","class":"media-element file-default","data-delta":"1"}}]]

Guru Sugavanam
August 21, 2020 at 2:36 PM

I cannot see the screenshot, could you please mail it to support@fortellis.io ??
Kaushik Ghate
August 31, 2020 at 10:02 AM

Hi,

Any update on this? I had sent the screenshot to the support email per your instructions last week. Please help!

Guru Sugavanam
September 1, 2020 at 12:17 PM

Kaushik, Please check your email have sent you some follow up questions.