s_c__Discount__c Object Reference

Name s_c__Discount__c
Type Custom StoreConnect Object
Description Discounts are applied automatically whenever an order matches the discount requirements such as for a specific product or account. This is different to a promotion which requires a code to be set during checkout in order to take advantage of them.

Field Definitions

Field Name Type Required Unique
s_c__Account_Id__c Lookup (Account) No No
The account eligible for this discount. If left blank, the discount applies to all accounts.
s_c__Active__c Checkbox(false) No No
Set the discount as enabled or disabled
s_c__Apply_Discount_To__c Picklist No No
[Future] Set whether the discount applies to products or to shipping.
s_c__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.
s_c__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.Brand__c equals true and can also be associated with products. If left as empty, it applies to all brands.
s_c__Calculation_Type__c Picklist Yes No
Sets how the discount is applied: as a percentage, or a dollar value, or a replacement price.
s_c__Discounted_Points__c Number(18, 0) No No
Discounted Points will be set as the product's purchase points as is, for the duration of the discount if the Calculation_Type__c is set to Discounted Price. If a sale points is set for the product's price book entry, the lowest value between the sale points and discounted points will be selected.
s_c__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.
s_c__Ending_Date__c Date No No
[DEPRECATED] Use the Expires_At__c field instead.
s_c__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.
s_c__Membership_Id__c Lookup (s_c__Membership__c) No No
The Membership that this discount applies to, if set, this discount can only be used by the members.
s_c__Percent_Discount__c Percent(18, 2) No No
The percentage discount applied if the Calculation_Type__c is set to Percent discount
s_c__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.
s_c__Product_Category_Id__c Lookup (s_c__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
s_c__Product_Id__c Lookup (Product2) No No
The product that this discount applies to. If left as empty, it applies to all products.
s_c__Qualifying_Quantity__c Number(18, 0) No No
[Future] This field is not currently in use. It is slated for use in future development.
s_c__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
s_c__Starting_Date__c Date No No
[DEPRECATED] Use the Starts_At__c field instead.
s_c__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.
s_c__Store_Id__c Lookup (s_c__Store__c) No No
The store that this discount applies to (optional)
s_c__Value_Discount_Points__c Number(18, 0) No No
The amount of the discount in points applied if the Calculation_Type__c is set to Discount Amount
s_c__Value_Discount__c Currency(18, 2) No No
The amount of the discount applied if the Calculation_Type__c is set to Discount Amount
s_c__sC_Id__c Text [External ID] 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