Online orders API
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/
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
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.
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. 😊