Manage Voucher Discounts

Prev Next

This guide helps OrderCentral administrators create, review, update, and deactivate voucher discounts in the Salesforce user interface. Vouchers give buyers a code-based percentage or fixed-amount discount; creating a voucher does not automatically apply it to a shopping cart.

Before You Start

  • Confirm that your installed OrderCentral version includes the Voucher record type and voucher fields.
  • Ensure that you can create and edit Webshop Partner Discount records, access the Voucher record type, and edit its fields.
  • For account-specific vouchers, make the Partner Discounts related list available on the Account page layout.
  • Check the page layout assigned to your profile and the Voucher record type. It must expose Voucher Code, Scope, Discount Type, Discount Amount, Discount, Account, Product, Start Date, End Date, and Status. Labels may differ in translated or customized orgs.
  • Confirm that your storefront implementation supports voucher redemption before distributing codes. This guide covers discount configuration, not adding a voucher-entry control to the storefront.

Page-layout requirements: The packaged Partner Discount Layout marks Account and Discount as required. An account-independent voucher needs a Voucher page layout where Account is optional. For fixed-amount vouchers, make Discount optional on that layout; the voucher value comes from Discount Amount. A Salesforce administrator can configure this under Setup > Object Manager > Webshop Partner Discount > Page Layouts and Page Layout Assignment. Keep any additional org validation rules in mind.

Create a Voucher

Create the voucher in an unapproved state so you can review its settings before buyers use it.

  1. For an account-specific voucher, open Accounts from the App Launcher, select the buyer's account, and open Related > Partner Discounts > New. Alternatively, open Webshop Partner Discounts from the App Launcher and click New; use this route for an account-independent voucher.
  2. Select the Voucher record type and continue. If Salesforce skips record-type selection, confirm that the record being created uses Voucher.
  3. Complete the fields below. Enter a recognizable code without leading or trailing spaces, and check existing vouchers for duplicates.
  4. Leave Status as Needs Approval while reviewing the record. Check the account, dates, scope, and value before saving.
  5. Click Save, or Cancel to discard the unsaved record. If Salesforce shows a validation error, correct the highlighted fields or conflicting settings and save again.
Field What to Enter
Voucher Code The code buyers will enter, such as WELCOME10. Codes are case-insensitive and are not required to be unique by Salesforce; avoid ambiguous duplicates.
Account Select the buyer account to restrict the voucher to that account. Leave blank for an account-independent voucher only if the assigned layout permits it.
Scope Cart for eligible product lines across the cart, or Line for a specific Salesforce product.
Product Required for Line scope. Select the Salesforce Product, not a Web Product. Leave blank for Cart scope.
Product Family, Product Group, Product Line Leave all three blank for vouchers. They cannot be used instead of Product for Line scope.
Discount Type Percentage or Fixed Amount.
Discount For Percentage, enter the percentage in percentage points: 10 means 10%. Use a value between 0 and 100.
Discount Amount For Fixed Amount, enter a currency amount greater than zero. This is the voucher value, not a loyalty balance.
Start Date The first day the voucher can be used, inclusive.
End Date The first day the voucher can no longer be used, exclusive. Both dates are required; choose an end date later than the start date.
Status New records default to Needs Approval. Only Approved vouchers within their validity dates can be applied.

For example, to offer 10% off eligible cart products during December 2026, enter WELCOME10, Scope Cart, Discount Type Percentage, Discount 10, Start Date 1 December 2026, and End Date 1 January 2027. Leave all product-targeting fields blank.

Approve and Test a Voucher

Approve only after checking the intended audience and financial value, then test through your storefront's supported voucher experience.

  1. Open the saved voucher and verify its account restriction, code, scope, value, and validity dates.
  2. Complete your organization's approval requirements. If authorized to set the status directly, click Edit, change Status to Approved, and click Save. Setting the status is not the same as submitting a Salesforce approval process.
  3. Test with a buyer on the intended account and a cart containing eligible products. Apply the code using the voucher experience provided by your implementation.
  4. Confirm the discount and cart total. For Line scope, also test a cart without the selected product; it should receive no discount from that voucher.
  5. If the result is incorrect, return the voucher to an unapproved status while correcting it, then repeat the test before distributing the code.

Understand the Discount Result

  • A Cart-scope fixed amount is distributed across eligible product lines. A Line-scope fixed amount is deducted once from each matching product line, not once per unit. For example, an amount of 25 on one matching line with quantity 3 gives up to 25 off that line, not 75.
  • Fixed-amount vouchers cannot reduce a product line below zero. A voucher may therefore provide less than its configured amount.
  • Existing discounts and the configured discount-calculation method can affect the final saving. Do not assume that a percentage voucher always produces that percentage off the already-discounted cart total.
  • Reapplying the same code to the same cart does not add a second discount for that code. This is not a single-use or campaign redemption limit.
  • Additional business checks, such as minimum spend or redemption limits, require implementation-specific validation; they are not configured by the standard voucher fields listed above.

Find and Update Vouchers

Use list views to review campaigns and edit the intended record without confusing account-specific and account-independent vouchers.

  1. Open Webshop Partner Discounts and select or create a list view filtered to record type Voucher.
  2. Include Voucher Code, Account, Status, Start Date, End Date, Scope, Discount Type, Discount, and Discount Amount as columns where available.
  3. Find the code and open the correct record. Check the account as well as the code because duplicate codes can exist.
  4. Click Edit, change the required settings, review them, and click Save. Use Cancel to discard unsaved changes. When switching to Cart scope, clear Product; when switching to Line scope, select Product and leave Product Family, Product Group, and Product Line blank.
  5. Retest the affected scenario. Do not assume that saving the configuration immediately recalculates every existing cart or changes completed orders.

Deactivate a Voucher

Deactivate instead of deleting when you want to retain the configuration for reference.

  1. Open the voucher and click Edit.
  2. Set Status to Expired, then click Save. To schedule the end of availability, set End Date to the first day it should no longer work instead.
  3. Verify that a new application of the code is rejected. Previously applied vouchers are reevaluated during cart recalculation; this is not an immediate update to every cart and does not reverse completed orders.

Passing the end date makes the voucher ineligible even if its displayed status still reads Approved. Do not rely on the status label alone when reviewing active campaigns.

Troubleshooting

Problem What to Check
Voucher record type or fields are missing Installed package version, profile or permission-set access, field visibility, and the assigned page layout.
Salesforce requires an Account for a general campaign Use a Voucher page layout with Account optional. Do not choose an arbitrary account: that restricts who can use the voucher.
Saving fails Supply both dates; remove conflicting product targeting; provide Product for Line scope; provide a positive Discount Amount for Fixed Amount. Check additional org validation.
Code cannot be found or applied Check the code, account restriction, Approved status, and dates. A voucher ending today is already inactive.
Code applies but produces no saving Check the selected product for Line scope, the configured value, existing discounts, and whether eligible product lines have a remaining value to discount.
Code is rejected despite correct standard fields Ask your implementation team whether additional voucher validation is configured and review the reported business-rule failure.