Ah nice – I’ve not watched the presentation.
Monzo’s new receipts API
I’ve split the above out from the Flux thread so the two topics aren’t lost in one another. The API chat can carry on here.
Done
Great use examples here. As others have said it would be great to see how you’ve done it behind the scenes .
Ive put together a simple php script to make the json code for a receipt… just need to do the server side bit and I’ll upload mine to Git for people to play with
Also the OCR hack Cambridge did looks amazing… would love to know more info on this…
Definitely. Flux with this to plug the gaps would be awesome.
Although there looks to be a cost with using Google Cloud Vision or the Microsoft equivalent.
My first thought was scraping amazon email notifications but looking at the emails the only thing to match on is the amount and that’s not really reliable enough… the order number doesn’t match the transaction.
Suspect similar problems would occur for other retailers which limits the usefulness
With Amazon emails, maybe you can match the price, and the time?
Azure / Google / AWS all have some form of OCR APIs. Or if you want a open source one then you can have a go at https://github.com/tesseract-ocr/tesseract
Do you know if there’s support for negative values? Been trying to add a discount code but having no luck - the negative number just comes out positive in-app
Thanks for this Kieran.
The JSON (below) shows in-app as the grab below so I must be going wrong somewhere. Probably the URL encoding losing the “-”
{
"transaction_id": "transaction-ID-here",
"external_id": "test-receipt-1",
"total": 10400,
"currency": "GBP",
"items": [
{
"description": "Brewer Shirt (Bordeaux)",
"quantity":1,
"unit": "",
"amount": 6500,
"currency": "GBP"
},{
"description": "Brewer Shirt (Prussian Blue)",
"quantity":1,
"unit": "",
"amount": 6500,
"currency": "GBP"
},{
"description": "Discount Code (FARAH20)",
"quantity":1,
"unit": "",
"amount": -2600,
"currency": "GBP"
},{
"description": "Shipping",
"quantity":0,
"unit": "",
"amount": 0,
"currency": "GBP"
}
]
}
Any one willing to show how exactly how I can get started with this? I don’t really know much code but id love to be able to add receipts like this!
That is weird, when you read your receipt back is the value negative or positive?