# API PDF from inbox to unexplained bank transaction

**URL:** <https://api-discuss.freeagent.com/t/api-pdf-from-inbox-to-unexplained-bank-transaction/5605>\
**Category:** Uncategorized\
**Created:** [25 March 2025 18:39 UTC](https://api-discuss.freeagent.com/t/api-pdf-from-inbox-to-unexplained-bank-transaction/5605 "2025-03-25T18:39:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Miki](https://api-discuss.freeagent.com/user_avatar/api-discuss.freeagent.com/miki/32/1030_2.png) [@Miki](https://api-discuss.freeagent.com/u/Miki)\
**Post date:** [25 March 2025 18:39 UTC](https://api-discuss.freeagent.com/t/api-pdf-from-inbox-to-unexplained-bank-transaction/5605/1 "2025-03-25T18:39:38Z")

</div>

I used [make.com](http://make.com) to create a scenario where it sees emails in my inbox that contain invoice emails, scans for content, matches the details that it gets from freeagent on unexplained transactions and once matched, it picks up the attachment and it’s supposed to upload it. I tried different things [/v4/attachments](https://api.freeagent.com/v2/attachments), now trying to make it work with /v2/bank\_transaction\_explanations but I am just going in the circles on the last step. A) I don’t have enough knowledge on this B) there’s limited documentation. I don’t even know if what I am trying to do is possible. I don’t know what format freeagent accepts. Need some help on this.

---

<div class="post-metadata">

**Author:** ![Andrew\_Stewart](https://api-discuss.freeagent.com/user_avatar/api-discuss.freeagent.com/andrew_stewart/32/149_2.png) [@Andrew\_Stewart](https://api-discuss.freeagent.com/u/Andrew_Stewart)\
**Post date:** [26 March 2025 09:08 UTC](https://api-discuss.freeagent.com/t/api-pdf-from-inbox-to-unexplained-bank-transaction/5605/2 "2025-03-26T09:08:20Z")

</div>

It’s definitely possible to upload an attachment to a bank transaction explanation. You need to [update the explanation](https://dev.freeagent.com/docs/bank_transaction_explanations#update-a-bank-transaction-explanation) with the attachment data. See the `attachment` section of the [attributes](https://dev.freeagent.com/docs/bank_transaction_explanations#attributes) documentation.

The acceptable filetypes are PNGs, JPGs, GIFs, and PDFs (explained in the attributes documentation).

---

<div class="post-metadata">

**Author:** ![Miki](https://api-discuss.freeagent.com/user_avatar/api-discuss.freeagent.com/miki/32/1030_2.png) [@Miki](https://api-discuss.freeagent.com/u/Miki)\
**Post date:** [5 December 2025 20:04 UTC](https://api-discuss.freeagent.com/t/api-pdf-from-inbox-to-unexplained-bank-transaction/5605/3 "2025-12-05T20:04:57Z")

</div>

Hello, will be picking it up again.

I know next to nothing but I guess I learn as I go.

Matching invoices with transactions gets more difficult when transaction hasn’t got any useful info.  
So thinking of keeping emails where they are in supplier folders in inbox, and thinking of getting it to match by the amount, supplier it knows from the description, but when more than one transation from the same supplier is present, it will look at the dates and I would tell it that most suppliers invoice come the same month and some come 7 days before. I only got a few suppliers and expanding it by extra rules if they apply to supplier.

@update  
I still didn’t get it to work to upload to free agent. I don’t know if I am using wrong headers, or using wrong link. If anyone feels strong and they understand what to do, would appreciate help. I had a head full of hair when I started this!
