Create a discount
Learn how to create discounts through the Developer Center or API
You can create discounts for both potential and existing customers through the Developer Center or API. Once the discount is created:
- For potential customers, the discounted price is shown during checkout when they select the discounted plan.
- For existing customers, the discount is applied automatically at the next billing cycle or when they switch to a discounted plan.

Create a discount through the Developer Center
Developer Center
- Open your app in the Developer Center.
- Click Monetization in the left-side menu.
- On the Monetization page, select the Discounts tab to view your discounts.
- Click Grant a new discount in the top-right corner.
- Enter the Account slug (found in your webhooks or by querying the account through the API).
At this point, the system checks whether the account has an active subscription to your app:
- If no active subscription exists, you will see a message indicating that none exists.
- If an active subscription exists, it will appear in the Active plan section, including the plan name, subscription status, billing frequency, and next billing cycle.
- Select the specific plan to apply the discount to, or select All plans.
- For accounts with an active subscription, you can apply the discount to either the current plan or a different plan. The discount does not have to be applied to the existing plan.
- Specify whether the discount applies to a monthly or yearly subscription. If you’re unsure which option the customer will choose, select both.
- Enter the discount percentage.
- Enter the number of days the discount applies for. During this period, potential customers can claim the discount, and existing customers will receive the discounted price. After the validity period ends, the discount will no longer be available to potential customers and will be removed from existing subscriptions.
- Click Grant discount.
API
To create a discount via the API, use the create_marketplace_app_discount mutation.
mutation {
create_marketplace_app_discount(
app_id: "12345"
account_slug: "my-company"
discount_data: {
discount: 20
days_valid: 30
period: MONTHLY
app_plan_ids: ["plan_001"]
}
) {
granted_discount {
app_id
app_plan_ids
discount
period
}
}
}Troubleshooting
If you receive an error while attempting to grant a discount, refer to the table below for common issues:
| Error message | Issue |
|---|---|
| Failed to grant discount - Check your inputs | The user entered invalid input (e.g., a negative discount percentage) |
| Failed to grant discount - Invalid account details | Account with the provided account ID doesn't exist |
| Failed to grant discount - App isn't installed on the account | The app is not installed on the account |
| Failed to grant discount - User cannot grant discounts | Granting user is not an app collaborator and can't provide discounts |
Updated 19 days ago
