Discount__c Object Reference

Field Definitions

Field Name Type Required Unique Description
Account_Id__c Lookup(Account) No No The account eligible for this discount. If left blank, the discount applies to all accounts.
Active__c Checkbox(false) No No Set the discount as enabled or disabled
Apply_Discount_To__c Picklist No No [Future] Set whether the discount applies to products or to shipping.
Behaviour_When_Applied__c Picklist Yes No Controls whether this discount stacks with other discounts, replaces any other discounts, or provides a set price that supercedes all discounts.
Brand_Id__c Lookup(Account) No No The brand that is included in this discount. Brands are a special type of Account object that have Account.Supplier__c equals true and can also be associated with products. If left as empty, it applies to all brands.
Calculation_Type__c Picklist Yes No Sets how the discount is applied: as a percentage, or a dollar value, or a replacement price.
Discounted_Price__c Currency(18, 2) No No Discounted Price will be set as the product’s price as is, for the duration of the discount if the Calculation_Type__c is set to Discounted Price. If a sale price is set for the product’s price book entry, the lowest value between the sale price and discounted price will be selected.
Ending_Date__c Date No No [DEPRECATED] Use the Expires_At__c field instead.
Expires_At__c DateTime No No The exact time after which this discount will not be valid and not be able to be used. The time zone used is per the users time zone setting in Salesforce and the time is then converted and saved as the equivalent time in UTC. This means if you are setting a future date, be sure to take any time zone changes into account.
Membership_Id__c Lookup(Membership__c) No No The Membership that this discount applies to, if set, this discount can only be used by the members.
Percent_Discount__c Percent(18, 2) No No The percentage discount applied if the Calculation_Type__c is set to Percent discount
Pricebook_Id__c Lookup(Pricebook2) No No The price book that this discount applies to. If left as empty, it applies to all price books.
Product_Category_Id__c Lookup(Product_Category__c) No No The Product Category object that this discount applies to, if set, this discount can only be used by this Product Category. If left as empty, it applies to all Product Categories
Product_Id__c Lookup(Product2) No No The product that this discount applies to. If left as empty, it applies to all products.
Qualifying_Quantity__c Number(18, 0) No No [Future] This field is not currently in use. It is slated for use in future development.
Rebate_Amount__c Currency(18, 2) No No [Future] The rebate amount (store credit to be used in another order) of the discount applied if the Calculation_Type__c is set to Rebate
Starting_Date__c Date No No [DEPRECATED] Use the Starts_At__c field instead.
Starts_At__c DateTime No No The exact time before which this discount will not be valid and not be able to be used. The time zone used is per the users time zone setting in Salesforce and the time is then converted and saved as the equivalent time in UTC. This means if you are setting a future date, be sure to take any time zone changes into account.
Store_Id__c Lookup(Store__c) No No The store that this discount applies to (optional)
Value_Discount__c Currency(18, 2) No No The amount of the discount applied if the Calculation_Type__c is set to Discount Amount
sC_Id__c Text No Yes StoreConnect External ID, do not modify in Salesforce

For more information about how or when to use the above, see our documentation.

 

 
Back to Documentation