Creating Discount Codes
Via Dashboard
- Navigate to Discounts in your Creem Dashboard
- Click Create Discount Code
- Configure your discount settings:
- Name: Internal name for your reference (e.g., “Holiday Sale 2024”)
- Code: Customer-facing code (e.g., “HOLIDAY50”)
- Type: Percentage or fixed amount
- Amount/Percentage: The discount value
- Duration: How long the discount applies
- Products: Which products this code applies to
- Expiration Date: When the code expires (optional)
- Max Redemptions: Limit total uses (optional)
- Click Create to activate the discount
Via API
You can also create discounts programmatically using the API.- TypeScript SDK
- REST API
Discount Types
Percentage Discounts
Reduce the price by a percentage (e.g., 25% off).A $100 product with a 25% discount becomes $75.
Fixed Amount Discounts
Reduce the price by a fixed amount in a specific currency (e.g., $20 off).A $100 product with a $20 discount becomes $80.
Duration Options
Control how long a discount applies for subscriptions.Once
Applies only to the first payment. Perfect for acquisition discounts.Forever
Applies to all payments for the lifetime of the subscription.Repeating
Applies for a specific number of months, then reverts to full price.Duration only affects subscription products. For one-time payments, the discount is always applied
once.
Applying Discount Codes
Customer-Entered Codes
Customers can enter discount codes directly at checkout. If the code is valid for the product and hasn’t expired, it will automatically apply. No implementation required - this works out of the box!Pre-Applied Codes
Pre-apply a discount code programmatically when creating a checkout session. This is useful for landing pages, email campaigns, or special offers.- Next.js
- TypeScript SDK
- Better Auth
- REST API
Managing Discount Codes
Retrieve a Discount
Get details about a specific discount code.- TypeScript SDK
- REST API
Delete a Discount
Permanently delete a discount code. This action cannot be undone.- TypeScript SDK
- REST API
Next Steps
Revenue Splits
Automatically split revenue between multiple parties
Free Trials
Offer free trials for your products
Customer Portal
Let customers manage their subscriptions and billing
Addons
Add licenses, file downloads, and more to your products