### Create Lidl Plus API Session (Default) Source: https://github.com/koenzomers/lidlapi/blob/main/README.md Create a new Session instance to connect with the Lidl API using default settings for The Netherlands. ```csharp // Create a new Session instance to connect with the Lidl APi var session = new KoenZomers.Lidl.Api.Session(); ``` -------------------------------- ### Create Lidl Plus API Session (Custom) Source: https://github.com/koenzomers/lidlapi/blob/main/README.md Create a new Session instance to connect with the Lidl API for a specific country and language, such as Germany. ```csharp // Create a new Session instance to connect with the Lidl APi var session = new KoenZomers.Lidl.Api.Session(language: "DE-DE", country: "DE"); ``` -------------------------------- ### Retrieve Lidl Plus Scratch Coupons Source: https://github.com/koenzomers/lidlapi/blob/main/README.md Retrieve all scratch coupons available, which are typically received after a purchase for item discounts. ```csharp // Retrieve all the scratch coupons you receive after a purchase for discounts on items await session.GetScratchCoupons(); ``` -------------------------------- ### Authenticate Lidl Plus API with Email and Password Source: https://github.com/koenzomers/lidlapi/blob/main/README.md Authenticate to the Lidl Plus API using an e-mail address and password. Ensure you have configured your App.config file with valid credentials. ```csharp // Authenticate to the Lidl Plus API using an e-mail address and password await session.Authenticate("johndoe@hotmail.com", "myLidlPlusPassword"); ``` -------------------------------- ### Retrieve Lidl Plus Coupons Source: https://github.com/koenzomers/lidlapi/blob/main/README.md Retrieve all available coupons for the authenticated Lidl Plus account. ```csharp // Retrieve all your coupons await session.GetCoupons(); ``` -------------------------------- ### Authenticate Lidl Plus API with Refresh Token Source: https://github.com/koenzomers/lidlapi/blob/main/README.md Authenticate to the Lidl Plus API using a refresh token. This is a faster authentication method compared to using email and password. ```csharp // Authenticate to the Lidl Plus API using a refresh token await session.Authenticate("refreshToken"); ``` -------------------------------- ### Redeem Lidl Plus Scratch Coupon Source: https://github.com/koenzomers/lidlapi/blob/main/README.md Redeem a specific scratch coupon by its ID. This action typically involves scratching it open to reveal the discount. ```csharp // Scratch open the coupon with the provided id await session.RedeemScratchCoupon("couponid"); ``` -------------------------------- ### Mark Lidl Plus Receipt as Favorite Source: https://github.com/koenzomers/lidlapi/blob/main/README.md Mark a specific receipt as a favorite. This can be useful for quickly accessing frequently referenced receipts. ```csharp // Mark a specific receipt as favorite await session.MakeReceiptFavorite("receiptid"); ``` -------------------------------- ### Retrieve Lidl Plus Receipts Source: https://github.com/koenzomers/lidlapi/blob/main/README.md Retrieve all receipts associated with the authenticated Lidl Plus account. ```csharp // Retrieve all your receipts await session.GetReceipts(); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.