Want to practice authorizing your app without using production code?
The OAuth 2.0 Playground generates sample requests and responses to demonstrate each step of the OAuth 2.0 and OpenID Connect authorization process.
It shows you how to get authorization codes, create requests to exchange authorization codes for access and refresh tokens, use access tokens to make API calls, and generate a new refresh tokens from the server response.
Your app needs to be on the Intuit Developer Portal so the OAuth Playground can pull its credentials.
The sample POST request sends the authorization code to the Intuit OAuth 2.0 server.
In the sample response, the
accessToken field value contains an access token. This is what you’ll use to call our API.
First, get access tokens to make a request.
In the sample request, the OAuth Playground added the
accessToken value to the
|Sample API call||Required scope||Description|
|Get Company Info||com.intuit.quickBooks.accounting||Calls the CompanyInfo entity. This gives you info about the company based on the realm ID.|
|Submit Charge||com.intuit.quickBooks.payments||Calls the QuickBooks Payments API Charges entity. This creates a charge for the test Visa Card account.|
|Get User Info||openID and at least one of the following: profile, email, phone, address.||Calls the userInfo entity. This gets info about the logged in user based on OpenID scopes chosen during authorization.|
Access tokens are valid for 60 minutes. After they expire, use refresh tokens to them:
refreshTokenvalue is already entered.
The sample response should have a new value for the