# Upload attachment to Quickbooks via API

**URL:** <https://community.n8n.io/t/upload-attachment-to-quickbooks-via-api/13964>\
**Category:** Questions\
**Tags:** external-data, quickbooks\
**Created:** [May 14, 2022, 2:18am UTC](https://community.n8n.io/t/upload-attachment-to-quickbooks-via-api/13964 "2022-05-14T02:18:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tom4444](https://avatars.discourse-cdn.com/v4/letter/t/898d66/32.png) [@Tom4444](https://community.n8n.io/u/Tom4444)\
**Post date:** [May 14, 2022, 2:18am UTC](https://community.n8n.io/t/upload-attachment-to-quickbooks-via-api/13964/1 "2022-05-14T02:18:25Z")

</div>

Hi !

I spent the all night with no success on this.  
Could someone help me ?

I want to send an Airtable attachement to Quickbooks.  
The Airtable part is not a problem : webhook, automation etc… The file is download in binary mode and is the input of the http request to Quickbooks API.

The problem is the configuration of the http request node to Quickbooks API.  
[https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/attachable#upload-attachments](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/attachable#upload-attachments)  
[https://developer.intuit.com/app/developer/qbo/docs/workflows/attach-images-and-notes](https://developer.intuit.com/app/developer/qbo/docs/workflows/attach-images-and-notes)

I’ve got this error :

{  
“status”: “rejected”,  
“reason”: {  
“message”: “connect ECONNREFUSED 127.0.0.1:80”,  
“name”: “Error”,  
“stack”: “Error: connect ECONNREFUSED 127.0.0.1:80 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)”,  
“code”: “ECONNREFUSED”  
}  
}

Is it a problem with the http request node ?  
In this case, can someone give me an exemple ?

Or is it a network problem with the port 80 and docker ?  
And how to solve that ?  
I’ve done the docker installation according the doc in august 2021.  
My n8n serveur is only reachable from 443 port, not 80 and I had no problem with other http request nodes

Thanks for your help !

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [May 14, 2022, 11:00am UTC](https://community.n8n.io/t/upload-attachment-to-quickbooks-via-api/13964/2 "2022-05-14T11:00:45Z")

</div>

Welcome to the community @Tom4444!

Could you please share the HTTP Request node you are using. That will make it easier to identify what is going wrong. Thanks!

---

<div class="post-metadata">

**Author:** ![Tom4444](https://avatars.discourse-cdn.com/v4/letter/t/898d66/32.png) [@Tom4444](https://community.n8n.io/u/Tom4444)\
**Post date:** [May 14, 2022, 12:07pm UTC](https://community.n8n.io/t/upload-attachment-to-quickbooks-via-api/13964/3 "2022-05-14T12:07:52Z")

</div>

The problem is my weak knowledge of http request and how to fill the http request node.

I think the error above was as stupid as forgetting to write the correct url.

I’ve decided to split the problem in 2 more little pieces :

1. Upload an attachement  
[Intuit Developer](https://developer.intuit.com/app/developer/qbo/docs/workflows/attach-images-and-notes#uploading-files-to-the-attachment-list)
2. Link an existing attachement to a bill  
[Intuit Developer](https://developer.intuit.com/app/developer/qbo/docs/workflows/attach-images-and-notes#attaching-a-file-to-an-object)

I really don’t know how to fill the http request node :

- how do I put the needed boundaries ?
- Is the file sent as binary ?
- what about his data ?

---

<div class="post-metadata">

**Author:** ![MutedJam](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mutedjam/32/70851_2.png) [@MutedJam](https://community.n8n.io/u/MutedJam)\
**Post date:** [May 16, 2022, 10:23am UTC](https://community.n8n.io/t/upload-attachment-to-quickbooks-via-api/13964/4 "2022-05-16T10:23:45Z")

</div>

Hey @Tom4444, the example you have provided looks good to me. The upload actually works with the logic you have built (I’ve swapped the prod API URL for the sandbox one here and simplified the workflow so I don’t have to rely on Airtable):

The one thing that appears to have been missing was the property name `file_content_01` which seems to be what QuickBooks expects as per the docs you have linked:

 ![image](https://europe1.discourse-cdn.com/n8n/original/2X/e/e9442ff46f8e34dee7b76f49dd0cc3a1b16db3ab.png)

When executing the workflow I get a success response from Quickbooks:

 ![image](https://europe1.discourse-cdn.com/n8n/original/2X/8/817063d21f0b69b7e7c4b3f356ea596a676ca99c.png)

So once you adjust your workflow like in this example you should no longer see an error (assuming your credentials and IDs used in the respective API calls are valid of course 🙂 ).

---

<div class="post-metadata">

**Author:** ![Tom4444](https://avatars.discourse-cdn.com/v4/letter/t/898d66/32.png) [@Tom4444](https://community.n8n.io/u/Tom4444)\
**Post date:** [May 26, 2022, 8:14pm UTC](https://community.n8n.io/t/upload-attachment-to-quickbooks-via-api/13964/5 "2022-05-26T20:14:10Z")

</div>

Thanks MutedJam !  
Sorry for not responding earlier. I had no time to come back ealier.

I can now send a file to the attachments list.  
First step is ok ! 😀

Next, I’ve found a way to link it to a bill.

So it’s ok for me.

Thanks !

---

<div class="post-metadata">

**Author:** ![revlearn](https://avatars.discourse-cdn.com/v4/letter/r/d2c977/32.png) [@revlearn](https://community.n8n.io/u/revlearn)\
**Post date:** [August 16, 2024, 6:57pm UTC](https://community.n8n.io/t/upload-attachment-to-quickbooks-via-api/13964/6 "2024-08-16T18:57:46Z")

</div>

I know this post was a good wile back, but do you remember how you managed to link the bill using this approach?

---

<div class="post-metadata">

**Author:** ![Raja\_Asad](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/raja_asad/32/125190_2.png) [@Raja\_Asad](https://community.n8n.io/u/Raja_Asad)\
**Post date:** [October 29, 2025, 9:57am UTC](https://community.n8n.io/t/upload-attachment-to-quickbooks-via-api/13964/7 "2025-10-29T09:57:54Z")

</div>

how to fix this like not work pdf upload in quick like attachemt
