What problem does it solve? Managing discount codes, coupons, and promotional pricing in a payment integration involves subtle rules around eligibility, stacking, usage limits, and subscription plan changes that are easy to get wrong. This Skill provides correct, tested patterns for the full discount lifecycle in Dodo Payments so you avoid common pitfalls like accidentally clearing discounts during plan upgrades. ## Core Features & Use Cases - Discount CRUD Operations: Create, list, retrieve, update, and delete percentage or flat-amount discounts using the Dodo Payments SDK, including retrieval by human-readable code. - Eligibility and Restrictions: Configure product restrictions, customer-specific eligibility, date ranges, usage limits, and subscription-cycle limits. - Checkout and Plan-Change Handling: Apply and stack up to 20 codes at checkout, validate codes server-side before showing prices, and control discount preservation during subscription upgrades and downgrades. - Use Case: A SaaS team launching a summer campaign creates a 15% code restricted to premium plans, validates it server-side at checkout, and ensures it carries forward when customers upgrade their subscription. ## Quick Start Ask your agent to create a 15% discount code in Dodo Payments and apply it to a checkout session for a specific product.