Quickbooks Online API - Refresh Token

Hi all!

I’m having an issue with Quickbooks Online API - I’m using the Plugin “Quickbooks Accounting” by Zeroqode.

Main question - how is the refresh token handled? My token seems to expire every 24 hours or so and I’m getting a 401 error.

I’m not familiar with how refresh tokens work - I know I’m supposed to send an API call but can someone walk me through it? Not sure where to start.

1 Like

https://developer.intuit.com/app/developer/qbo/docs/develop/authentication-and-authorization/oauth-2.0#refresh-the-token

It will looks something like …

You will need to combine your client id +":" + client secret and base64 encode it …

You can use this …

This assume you have the refresh token in the first place. You will get another access token.

Your refresh token will ALSO expire (in around 100 days). But that is probably another story :slight_smile:

1 Like

I think that you can set up a life time of your token.

{
“token_type”: “bearer”,
"expires_in": 3600,
“refresh_token”:“Q311488394272qbajGfLBwGmVsbF6VoNpUKaIO5oL49aXLVJUB”,
“x_refresh_token_expires_in”:15551893,
“access_token”:

I help people to develop your projects. If you need a private consultory of development, I sent my contacts in a PM.

Thanks for this, very helpful. I tried and am still getting a 400 error.

Here are some images from postman where I’m trying to configure it the same way:

Thanks for your help! Much appreciated.