# QuickBooks Integrations from Five?

**URL:** <https://www.five.org/t/quickbooks-integrations-from-five/400>\
**Category:** How do I?\
**Tags:** how-to\
**Created:** [March 28, 2024, 12:16am UTC](https://www.five.org/t/quickbooks-integrations-from-five/400 "2024-03-28T00:16:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![RMittelman](https://yyz2.discourse-cdn.com/flex030/user_avatar/www.five.org/rmittelman/32/447_2.png) [@RMittelman](https://www.five.org/u/RMittelman)\
**Post date:** [March 28, 2024, 12:16am UTC](https://www.five.org/t/quickbooks-integrations-from-five/400/1 "2024-03-28T00:16:45Z")

</div>

Do you have any examples of using Five to post entries to QuickBooks Web version using their API’s?

Thanks…

---

<div class="post-metadata">

**Author:** ![Jo-Anne](https://yyz2.discourse-cdn.com/flex030/user_avatar/www.five.org/jo-anne/32/45_2.png) [@Jo-Anne](https://www.five.org/u/Jo-Anne)\
**Post date:** [March 30, 2024, 3:54am UTC](https://www.five.org/t/quickbooks-integrations-from-five/400/2 "2024-03-30T03:54:31Z")

</div>

Hi Ron,

We will prepare an example for you on this, and will give you the steps shortly.

---

<div class="post-metadata">

**Author:** ![RMittelman](https://yyz2.discourse-cdn.com/flex030/user_avatar/www.five.org/rmittelman/32/447_2.png) [@RMittelman](https://www.five.org/u/RMittelman)\
**Post date:** [April 2, 2024, 6:59pm UTC](https://www.five.org/t/quickbooks-integrations-from-five/400/3 "2024-04-02T18:59:44Z")

</div>

Hi Jo-Anne,

Any progress on this yet? I have a QuickBooks integration project coming up, and am wondering if I can do this in Five.

---

<div class="post-metadata">

**Author:** ![Pranoy](https://yyz2.discourse-cdn.com/flex030/user_avatar/www.five.org/pranoy/32/281_2.png) [@Pranoy](https://www.five.org/u/Pranoy)\
**Post date:** [April 2, 2024, 10:44pm UTC](https://www.five.org/t/quickbooks-integrations-from-five/400/4 "2024-04-02T22:44:49Z")

</div>

Hi @RMittelman

Here is a quick example of a function that creates an account in a Sandbox Company inside QuickBooks:

```auto
function QuickBooksIntegration(five, context, result) {
   //Capturing the name of the account from the app
    const name = context.Name;

    const bearerToken = 'MyBearerTokenHere'
    
    const url = 'https://sandbox-quickbooks.api.intuit.com/v3/company/9341452063613570/account?minorversion=40&Accept=application/json'

    // we send posts and get requests through five.httpClient();
    const client = five.httpClient();
     // The content type is taken from the documentation of QuickBooks
            client.setContent(`{
        "Name": "${name}", 
        "AccountType": "Accounts Receivable"
        }`)

    client.setContentType("application/json");

    client.addHeader('Authorization', `Bearer ${bearerToken}`);
    
    let results = client.post(url)

    five.log(JSON.stringify(results))

    return five.success(result);
}

```

From the function, you can see that the post request was sent through five.httpClient() which allows us to send requests to APIs such as Get, Put, etc, you can use the link below to understand how you can use the httpClient to communicate with your API

[HTTPClient Object | Five | Low-Code For Real Developers](https://help.five.org/2.6/docs/api/five-web-client-api/http-client/http-client-object/)

This function is attached to a ‘Do Complete’ event of a process inside Five. It works in a way that it expects the name of the account to be specified and then sends a post request to QuickBooks to create that account. You can see from the screenshot below that a successful call was made:

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/five/original/1X/726ec872e03ff84f21e2bb19756dba26a820d8a9.png)

---

<div class="post-metadata">

**Author:** ![RMittelman](https://yyz2.discourse-cdn.com/flex030/user_avatar/www.five.org/rmittelman/32/447_2.png) [@RMittelman](https://www.five.org/u/RMittelman)\
**Post date:** [July 16, 2025, 6:01pm UTC](https://www.five.org/t/quickbooks-integrations-from-five/400/5 "2025-07-16T18:01:39Z")

</div>

Thanks for your input on this, Pranoy. This project seems to have resurrected itself, and the customer is now interested in proceeding. If possible, I would appreciate input on how this can be achieved in Five, given these basic requirements:

1: There will be a one-time setup process, where the application will reach out to QuickBooks and obtain a list of GL accounts. The user will choose the proper account for each type of allocation, and these will be stored in a parameter table in our database.

1: Customer will receive a CSV file including a credit card batch number and a list of allocations which will include a category and the allocation amount. There should be the correct number of details to total the amount of the batch total, which the credit card processor has already posted to the customer’s QuickBooks account.

3: The new process will read this CSV file, obtain the proper GL account from the table mentioned in #1, then for each item, post to QuickBooks.

4: The process will also keep track of the batch numbers processed from the CSV file, so we don’t post the same batch more than once.

Basically that is the idea. I need to know the proper way of doing this in Five. There is a possibility I can market this new application to several customers of the company that is providing the CSV file, as their customers all use QuickBooks, and when they process these allocations, it takes several hours of manual entry.

It’s not clear if we are able to market this, whether each individual customer needs to have their own Five database/application, or whether we can create a single application for all customers.

I hope you can provide some guidance on this project. Thanks…

---

<div class="post-metadata">

**Author:** ![RMittelman](https://yyz2.discourse-cdn.com/flex030/user_avatar/www.five.org/rmittelman/32/447_2.png) [@RMittelman](https://www.five.org/u/RMittelman)\
**Post date:** [July 27, 2025, 6:21pm UTC](https://www.five.org/t/quickbooks-integrations-from-five/400/6 "2025-07-27T18:21:25Z")

</div>

Any further info on this topic? Please?

---

<div class="post-metadata">

**Author:** ![Vin-five.co](https://avatars.discourse-cdn.com/v4/letter/v/e480ec/32.png) [@Vin-five.co](https://www.five.org/u/Vin-five.co)\
**Post date:** [July 28, 2025, 3:46am UTC](https://www.five.org/t/quickbooks-integrations-from-five/400/7 "2025-07-28T03:46:21Z")

</div>

Hi @RMittelman,

Here’s how you can approach this in Five:

1. Obtain GL Accounts from QuickBooks.  
You can create a function in Five that connects to the QuickBooks API (using the access token), fetches GL accounts, and stores them in a table. Then, create a form where users map each category to the appropriate GL account.

2. Upload CSV  
Five supports file uploads (display type: `_DocumentUploader`). You can create a process to upload the CSV file, then use a function to read and parse its content, store the records in a table, and validate that the allocation totals match the batch amount.

3. Post to QuickBooks  
Use `five.httpClient()` in Five to send API requests to QuickBooks. You can also log the responses and show the user which records were successfully posted.

4. Prevent Duplication  
Create a table e.g. `ProcessedBatch`. Before posting, check if the batch number already exists. If it does, skip it to avoid duplicates.

One app or many for multi-customer, it depends on your customer needs:

- If all customers use the same CSV format and logic, you can manage everything in a single app using a `CustomerKey` to keep their data separated.
- If different customers need custom logic or file formats, it might be easier to have separate apps per customer.

If you’re planning to market this, can starts with a single app as it is easier to maintain.
