# API to get receipt contents, consumer-facing/non-merchant-facing

**URL:** <https://developer.squareup.com/forums/t/api-to-get-receipt-contents-consumer-facing-non-merchant-facing/8670>\
**Category:** Questions\
**Tags:** invoices-api\
**Created:** [February 24, 2023, 4:47am UTC](https://developer.squareup.com/forums/t/api-to-get-receipt-contents-consumer-facing-non-merchant-facing/8670 "2023-02-24T04:47:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nmbogdan](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/nmbogdan/32/1815_2.png) [@nmbogdan](https://developer.squareup.com/forums/u/nmbogdan)\
**Post date:** [February 24, 2023, 4:47am UTC](https://developer.squareup.com/forums/t/api-to-get-receipt-contents-consumer-facing-non-merchant-facing/8670/1 "2023-02-24T04:47:38Z")

</div>

I’m developing a small (read: used by family & friends) web application to manage personal expenses, and would like to add the ability for users to upload receipts emailed to them from Square. It’s easy enough to read the HTML from a forwarded email to get the merchant, purchase date, and total, but because Gmail changes class names when an email is forwarded, it’s harder to parse out individual items. (Getting items from the original email is easy, because the table tag class names have a nice pattern.)

That said, it’d be much more elegant to call an API to get this information. E.g., one of my receipts is [https://squareup.com/r/arZs00XpxHj9F32FfVhhqgkHw7uaB](https://squareup.com/r/arZs00XpxHj9F32FfVhhqgkHw7uaB). It’d be great to pass `arZs00XpxHj9F32FfVhhqgkHw7uaB` as the argument to the API and to get out a JSON of total, items, tax, etc.

Is this or something like it possible if I don’t myself process square transactions?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [February 24, 2023, 5:22pm UTC](https://developer.squareup.com/forums/t/api-to-get-receipt-contents-consumer-facing-non-merchant-facing/8670/2 "2023-02-24T17:22:41Z")

</div>

At this time the ability to get receipt details as a customer from our APIs isn’t currently available. You would need to be authorized by OAuth from every seller you purchase from which isn’t scalable. 🙂

---

<div class="post-metadata">

**Author:** ![nmbogdan](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/nmbogdan/32/1815_2.png) [@nmbogdan](https://developer.squareup.com/forums/u/nmbogdan)\
**Post date:** [February 25, 2023, 1:57am UTC](https://developer.squareup.com/forums/t/api-to-get-receipt-contents-consumer-facing-non-merchant-facing/8670/3 "2023-02-25T01:57:12Z")

</div>

Got it—and makes sense. Thanks, @Bryan-Square. If you have any suggestions for reading in the receipt HTML, I’d be grateful, but I’m already glad to know that I at least hadn’t overlooked an easier API-based solution.
