Link Search Menu Expand Document

Testing queries using a GraphQL IDE

Use a GraphQL Integrated Developer Environment (IDE) to test and validate queries during development.

Here are the basic steps to set up, download a GraphQL IDE, and send a test query to get the companyName for your sandbox test company.

Step 1: Set up your app in the Intuit Developer Portal

If you haven’t already, get a QuickBooks Online sandbox company for testing, create your app, and get your sandbox company’s Client ID and Client Secret.

Step 2: Get a GraphQL IDE

There are many GraphQL IDEs available. Use the one you prefer.

Here are a couple we recommend. In particular, we prefer Insomnia for its collection and built-in authorization features.

Step 3: Send a test query

After you install a GraphQL IDE, use this basic query to get the companyName for your sandbox test company.

Query header

Authorization: <OAuth 2.0 bearer token>

Query body

query getCompanyName {
  company {
    companyName
    companyType
  }
}

The server should return details about your sandbox test company.


Table of contents


© 2021 Intuit Inc. All rights reserved. Intuit and QuickBooks are registered trademarks of Intuit Inc. Terms and conditions, features, support, pricing, and service options subject to change without notice.