migros-api-wrapper icon indicating copy to clipboard operation
migros-api-wrapper copied to clipboard

Online orders API

Open ideadapt opened this issue 2 years ago • 2 comments

It would be nice to have an API to download receipts of online orders. The UI for order list is https://www.migros.ch/de/account/orders . The API is https://www.migros.ch/retentionapi/public/web/v1/customers/orders/invoices/ . orderid is visible in the URL of an order detail page e.g. https://www.migros.ch/de/order/19502299

The online order details are not included in the CSV download of the "Kassenbons" API (/service/avantaReceiptExport/csv.csv at https://cumulus.migros.ch/de/konto/kassenbons.html), this is why a dedicated online orders API would be nice.

ideadapt avatar Oct 13 '24 17:10 ideadapt

@ideadapt

I adjusted so the receipts now are using the same api calls as in /purchases/receipts. At least for the listing. For the single receipt getting it's probably something more bothersome to parse the html. Will do that later, the moment my own application requires it.

aliyss avatar Feb 23 '25 11:02 aliyss

Hi! 👋 I’ve opened a pull request to address this: https://github.com/aliyss/migros-api-wrapper/pull/10. It adds a new method to fetch receipts for online orders using the endpoint you shared, since they aren't included in the existing CSV export. Feel free to take a look and let me know if you have any feedback! Thanks for the detailed suggestion. 😊

webbrain-one avatar Aug 06 '26 07:08 webbrain-one