You are here:
Availability and Eligibility Interface Implementations
Use the Availability and Eligibility interfaces to interrupt a flow to return specific items. For example, when you create a quote, you want Vlocity to return the available and eligible offers.
Availability is based on the customer's geographic location, such as their postal code. Some products and services are available in the geographic location, and some are not. Product Availability checks the customer’s address and returns the available products. Unavailable products are excluded from selection in Opportunities, Orders, and Quotes, and appear in the Product Not Available related list.
Eligibility is based on customer information that the system tracks, such as whether or not the customer pays his bills, the volume of her business, or the type of account, such as business or consumer. A customer may be eligible for a promotion based on current assets that have not yet been activated but have been purchased today. Product eligibility checks the customer’s account and returns eligible products.
Availability and eligibility rules run before Vlocity Cart displays products and promotions that customers can select. Ineligible products are excluded from Vlocity Cart and appear in the Products Not Eligible related list.
By default, the availability interface runs first and is followed by the eligibility interface. You can reverse this sequence.
Product eligibility behaves differently in open (loosely typed) and strong (strongly typed) interface implementations.
In the default open interface implementation, product eligibility returns both qualified and unqualified objects. The return type is ProductWrapper. If the includeineligible setting is selected, the implementation returns all qualified and unqualified objects. The reasons for qualification or disqualification are also returned if the rules specify to do so.
In a strongly typed interface implementation, product eligibility returns only the qualified items. When the includeineligible setting is not selected, the implementation returns only qualified items.
- Setting includeineligible
The includeineligible custom setting controls the eligibility implementation and indicates whether to return all items or only qualified items. The includeineligible custom setting is automatically installed with the Salesforce Industries Communications, Media, and Energy package. The default setting is false. If the org does not include includeineligible, the behavior is as if the setting were false.

