We are trying to create a deposit using the quickbooks sandbox plugin. We get an error back indicating a malformed bearer token and a 401 authentication failure. Since we have not changed our configuration since we originally authorized this company via quickbooks, it isn’t clear to us what could possibly be wrong.
Error message:
Workflow error - The service QuickBooks_sandbox - Create Deposit just returned an error (HTTP 401). Please contact the plugin author directly for feedback. Raw error: {"warnings":null,"intuitObject":null,"fault":{"error":[{"message":"message=AuthenticationFailed; errorCode=003200; statusCode=401","detail":"Malformed bearer token: too short or too long","code":"3200","element":null}],"type":"AUTHENTICATION"},"report":null,"queryResponse":null,"batchItemResponse":[],"attachableResponse":[],"syncErrorResponse":null,"requestId":null,"time":1677108976995,"status":null,"cdcresponse":[]}
Here is the request we are making using Quickbooks sandbox - Create Deposit:
{ “DepositToAccountRef”: { “value”: 91, “name”: CheckingME }, “Line”: [ { “Amount”: 500 “DetailType”: “DepositLineDetail”, “DepositLineDetail”: { “AccountRef”: { “value”: 55, “name”: Automobile } } } ] }