- Knowledge Base
- Commerce
- Payments
- Create and use discount codes
Create and use discount codes
Last updated: March 12, 2026
Available with any of the following subscriptions, except where noted:
When you send a payment link to a buyer, you can allow them to enter a discount code at checkout to reduce the cost of their purchase.
Discount codes can be used to apply fixed or percentage-based discounts. For example, during a seasonal sale, you could create a BLACKFRIDAY20 discount code. You can create or update existing payment links to allow discount code usage and deactivate the code once the sale ends.
Create a discount code
Permissions required Super Admin permissions or Delete permissions for products are required to create discount codes.
- In your HubSpot account, click the settings settings icon in the top navigation bar.
- In the left sidebar menu, navigate to Objects > Products.
- At the top, click the Discount codes tab.
- In the upper right, click Create discount code.
- In the right panel, configure the discount code:
- Name: enter the internal name for the discount code.
- Discount code type: click the Discount code type dropdown menu and select an option:
- Fixed amount: a fixed currency amount. If your account is set up to use multiple currencies, click the Currency dropdown menu and select a currency. In the Value field, enter the currency value.
- Percentage: a percentage amount. In the Value field, enter the value as a percentage. The percentage amount must be lower than 100%.
- Code: enter the code that the buyer will use at checkout (e.g., BLACKFRIDAY20).
- Code status: click the Code Status dropdown menu and select Active or Inactive. An inactive discount code can't be applied at checkout.
- Click to expand the Options section to set the maximum number of redemptions, and an expiry date:
- In the Maximum discount usage field, enter the maximum number of redemptions.
Please note: discount code usage is counted after the payment, with the discount applied, is processed. This payment process involves a delay, and processing can take a few seconds for a card transaction, or a few days for an ACH transaction. Because of this delay in processing, over-usage may occur when a maximum number of redemptions is defined. It’s recommended to review your discount code activity regularly in the discount code table.
-
-
- Click the Code expiration date picker and select an expiration date. Expiration is set to 23:59 of the date you have chosen, based on your account time zone setting.
- Click Save. Once a discount has been created, it can be used for payments made via payment links.
-
Turn on the option to use discount codes with payment links
By default, payment links don't include the ability to add discount codes. To turn on the setting to allow discount codes to be applied to a payment link:
Please note: discount codes cannot be added to payment links that include a one-time discount or payment links that have been embedded.
- In your HubSpot account, navigate to Commerce > Payment Links.
- To update an existing payment link, click the name of the payment link. Or, create a new payment link.
- At the top, click the Settings tab.
- Under Checkout, toggle the Discount codes switch on.
- In the top right, click Create if creating a new payment link, or Save if updating an existing payment link.
At checkout, buyers can click + Add discount code to enter a discount code. Learn more about the buyer checkout experience.
Manage discount codes
To view, update, or delete a discount code:
- In your HubSpot account, click the settings settings icon in the top navigation bar.
- In the left sidebar menu, navigate to Objects > Products.
- At the top, click the Discount codes tab to view your created discount codes. The table displays each code’s status, value, maximum redemptions, and number of redemption made

- To update, activate, or deactivate a discount code, click the name of the discount code, then update the details in the right panel. Click Save.
Please note: discount code deactivation is immediate, meaning any buyers who try to use the code after deactivation will receive an error during checkout.
- To delete a discount code, hover over the discount code, click Actions, then select Delete.
Restore deleted discount codes
Permissions required Super Admin permissions are required to restore discount codes.
- In the upper right of the table, click Restore discount codesxternalLink.

- Select the checkboxes next to the discount codes you want to restore and click Restore in the upper right.

- In the dialog box, enter the number of discount codes to restore, then click Restore.
Next steps
- Learn how to embed payment links on your HubSpot website, marketing email, or an external site, to start accepting payments directly from your content.
- Learn how to manage payments, including issuing refunds, resending receipts, managing disputes, downloading reports of your payments and payouts, exporting payment data, and more.
- Use discount codes in other tools such as reports, segments, and workflows to analyze discount usage, customize automation, and support the buyers' experience.
