I checked for typos, encoded the URL for the @ sign in the client id but still the same result… I made sure I use the Authorization Code flow. Strange thing is /identity/connect/authorize call works with the same client id - /identity/connect/token call gives the client_id error and no matter what I put or dont put in client ID I always get this error
here is the authorize request, the redirect URI receives the code - the result body if from our test web appwill paste /identity/connect/token call after this - Added the authorization code I received from first call
We tried all the suggestions but still have the same error. Whether we do it from postman or via code we still get the “invalid_client” error. We are not concerned with the browser redirect and we are ok with it. Just need to get pass this error as we have a ton of work to do for integrationAny other suggestions?
Thank you Marco, I sent you a private message
thanks so much, that resolved the issue and now I am able to get tokens!
Adding more info: We do not pass a field called “Allocated” and not sure why the API is complaining about it.Below is a sample request we pass and it only happens for some customers and not all: {"CustomerID":{"value":"C006089"},"Description":{"value":"Hinnershitz"},"Details":[{"InventoryID":{"value":"DESIGNER"},"LineDescription":{"value":"Kitchen - perimeter - Hampton (Pure White), Frameless, Birch Plywood, Dovetailed Wood\n"},"OrderQty":{"value":1},"UnitPrice":{"value":7105.059800000001}},{"InventoryID":{"value":"FUEL SURCHARGE"},"OrderQty":{"value":1},"UnitPrice":{"value":355.25299000000007}}]}
Yes, Chris. The issue was we need to use the same redirect URI for both authorization code request and token request. Acumatica should work on providing better error messages though. We found the error the hard way
Yes Chris, so turns out client needs Inter Branch feature licensed and purchased from Acumatica if the sales order request posts to another “branch” than the customer record branch value…
Thank you both, so you are saying you did not change anything on my request and it works? If that is the case, could there be a setting on client’s acumatica implementation that is preventing my request to work? We are able to create sales orders, we are not able to set this field...
Yes I am able to set it manually. I did not see any difference on the API requests from yours with what I posted originally. You guys are basically saying request is correct and it should work?
@Naveen Boga I copied my request and expanded the Totals area - I think it is in the same format with yours. What could be the issue? {"CustomerID":{"value":"855215____"},"FinancialSettings":{"Branch":{"value":"LOCAL"}},"CustomerOrder":{"value":"10"},"Details":[{"InventoryID":{"value":"CC-W0930"},"OrderQty":{"value":1},"UnitPrice":{"value":166},"custom":{"Transactions":{"UsrAssembled":{"value":true},"UsrHingePlacement":{"value":"Right"},"ManualPrice":{"value":true}}}},{"InventoryID":{"value":"ASSEMBLE"},"OrderQty":{"value":1},"UnitPrice":{"value":16.6},"custom":{"Transactions":{"ManualPrice":{"value":true}}}},{"InventoryID":{"value":"CUSTOM-CABINET"},"OrderQty":{"value":1},"UnitPrice":{"value":67.33},"custom":{"Transactions":{"ManualPrice":{"value":true}}}}], "Totals":{"PremiumFreight": {"value":175},"OverrideFreightAmount": {"value":true}}}
Following up here, any ideas? My request looks same with the ones you tried that works. What could be the reason my request does not work? I am able to create the sales order, just can’t set that field
No solution, we gave up on it unfortunately
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.