# Customer Discount History APIs for retrieving historical discount code usage and redemption information for membership contracts ## Get past discount codes for contract - [GET /api/external/v2/customer-discount-code-infos/get-past-discounts](https://developers.membership.appstle.com/admin-api-swagger/customer-discount-history/getcustomerdiscountdetailsv2.md): Retrieves historical discount codes that have been applied to or are associated with a specific membership contract. Returns discount details including code, value, usage limits, and expiration dates from Shopify. Use Cases: - Display discount history in customer portal - Show applied promotional codes - Track discount redemption for analytics - Verify discount eligibility Authentication: Requires API key authentication via X-API-Key header or api_key parameter