The Quickbooks API is an incredibly powerful tool for businesses of all kinds that need help managing their finances. With Quickbooks, businesses can easily process payments, keep track of billing, create invoices and so much more. Through the Quickbooks API, businesses can customize the platform to fit their individual needs and create custom, automated transactions that can streamline processes. Here are a few examples of what you can build using the Quickbooks API:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
quickbooks: {
type: "app",
app: "quickbooks",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://quickbooks.api.intuit.com/v3/company/${this.quickbooks.$auth.company_id}/companyinfo/${this.quickbooks.$auth.company_id}`,
headers: {
Authorization: `Bearer ${this.quickbooks.$auth.oauth_access_token}`,
"accept": `application/json`,
"content-type": `application/json`,
},
})
},
})
Quickbooks uses OAuth authentication. When you connect your Quickbooks account, Pipedream will open a popup window where you can sign into Quickbooks and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Quickbooks API.
Pipedream requests the following authorization scopes when you connect your account:
com.intuit.quickbooks.accounting
GET
https://appcenter.intuit.com/connect/oauth2
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.comma_separated_scopes}}
POST
https://oauth.platform.intuit.com/oauth2/v1/tokens/bearer
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}
POST
https://oauth.platform.intuit.com/oauth2/v1/tokens/bearer
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}