Quickbooks API Resubmission Issues

I am implementing a connection to Quickbooks through the v3 API with ColdFusion, and I have everything that works except reconnect ( https://appcenter.intuit.com/api/v1/connection/reconnect ). I can get information about the client, create / update invoices, etc., but not good luck with reconnecting.

From my application, I get error code 22 (authentication is required), but I send the same auth header that I send for any other API call to access the protected resource. The oauth spec does not specifically have a “reconnect” action, so my question is, what specific oauth properties should be included in the auth header to call Quickbooks again?

From the oauth 1.0 specification, are these headers for the consumer requesting an access token ?
oauth_consumer_key
oauth_token
oauth_signature_method
oauth_signature
oauth_timestamp
oauth_nonce
oauth_version
oauth_verifier

Or is it a header sent to access a protected resource
oauth_consumer_key
oauth_token
oauth_signature_method
oauth_signature:
oauth_timestamp
oauth_nonce
oauth_version

Or is it some other set of headers?

In addition, I tried using Dev Playgorund to check the connection again, and from there I get 24 - Invalid application token

So, I'm at a loss. What does Disconnect work for :)

Any help, recommendations, suggestions would be appreciated.

thanks

+6
source share
3 answers


The first problem, if you do things in the order you specify, is that you cannot disconnect first and then reconnect. The reconnect API must be called with a valid access token, because the current access token will be invalid and a new access token will be issued.

Secondly, there is a window for calling this API to update the 6-month life of the access token, it should be called within the last 30 days. This allows your application to update the token without asking the client again.

However, in all cases, if you disconnect or the client disconnects manually, you cannot call the reconnect API. You need to take them again through the authorization stream.

Hope that helps
Jarred

+1
source

To check the connection to the developer's playground, follow these steps: 1. Go to the IPP Playground panel - go to "Manage my applications" - click on your application.

Fill in the consumer key and consumer secret in the links below.

Prod: https://appcenter.intuit.com/Playground/OAuth/IA/?ck= <> & cs = <> Stage: https://appcenter-stage.intuit.com/Playground/OAuth/IA/?ck = <> & cs = <>

Alternatively, you can go to the Manage page for your application on stage or in prod mode and click on “Test Connection to the Application (OAuth). A screenshot is attached. 2. Enter the time you would like to use for the issued OAuth tokens ( for example, 3600 for successful reconnection) in the “Access token duration” field. Screenshot is attached. 3. Click the “Connect to QuickBooks” button, go through the OAuth stream to allow connection to the kingdom. 4. According to the heading “Interaction with sub By clicking “Reconnect API Validation.” A screenshot is attached. 5. A new page will appear where your OAuth tokens will be displayed. Copy these values ​​to your application to test Reconnect

As Jarred said, for dev / live applications there is a window for calling this API to update the 6-month life of the access token, it must be called in the last 30 days.

+1
source

I also got this error. Error code 22 (authentication required) for me meant that the OAuth signature was incorrect. This was incomprehensible because I could not find this error, indicated in Quickbooks docs for reconnecting.

I signed the request as a "POST" request instead of the "GET" request that Quickbooks requires to make reconnection endpoint calls.

+1
source

All Articles