# Get past discount codes for contract 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 Endpoint: GET /api/external/v2/customer-discount-code-infos/get-past-discounts Version: 0.0.1 ## Query parameters: - `contractId` (integer, required) Subscription contract ID Example: 123456 - `api_key` (string) API Key (Deprecated - Use Header X-API-Key instead) ## Header parameters: - `X-API-Key` (string) ## Response 200 fields (application/json): - `get__typename` (string) ## Response 401 fields (*/*): - `get__typename` (string) ## Response 403 fields (*/*): - `get__typename` (string) ## Response 404 fields (*/*): - `get__typename` (string)