To query the Quickbooks Online API using the provided query, you can create a custom Pipedream code step using the axios package from @pipedream/platform. Here’s an example component that makes the request: import { axios } from "@pipedream/platform"; export default defineComponent({ props: { quickbooksAccessToken: { type: "string", label: "Quickbooks Access Token", secret: true, }, companyId: { type: "string", label: "Company ID", }, }, async run({ $ }) { const query = "select * from Payment Where CustomerRef = '2640'"; const response = await axios($, { method: "GET", url: `https://quickbooks.api.intuit.com/v3/company/${this.companyId}/query`, headers: { Authorization: `Bearer ${this.quickbooksAccessToken}`, Accept: "application/json", }, params: { query, maxResults: 10000, }, }); return response; }, }); Replace quickbooksAccessToken and companyId with your actual Quickbooks access token and company ID. This component will make the API request and return the response. Please note that you’ll need to obtain the Quickbooks access token and company ID by following the Quickbooks OAuth2 flow. You can find more information on how to do that in the Quickbooks API documentation.
Yes, you can use the built-in Quickbooks authentication when using Pipedream’s Quickbooks components. For example, if you want to perform a search query, follow these steps: 1. Search for the Quickbooks app from the step menu in your Pipedream workflow. 2. Select the “Search Query” action. 3. Connect your Quickbooks account. 4. Enter your query and any other required information. 5. At the bottom of the step, click “Test” to run the action and test the configuration. This way, you don’t need to manage the authentication manually, as Pipedream handles it for you.
Curious — are you on the Advanced plan? The code gen product in the UI is purpose-built for writing code and has access to product docs (where Pi does not yet). If you haven’t tried it yet, we also offer trials of the Advanced plan if you want to give it a shot.
I’m trying to get Pi access to all the product docs of our integrated apps too so you don’t have to read them and can just ask Pi any questions about them, instead!