Adding Eligibility Features and Rules

You can add eligibility rules and features when creating a catalog item using the My MATRIXX APIs.

Add the EligibilityFeatures and RequiresEligibilityRules to the request payload. For example:

<CatalogItemInfo>
...
    <EligibilityFeatures>
        <EligibilityFeatureInfo>
            <Id>2</Id>
            <Name>OfferType</Name>
            <FeatureType>String</FeatureType>
            <DisplayFeatureType>String</DisplayFeatureType>
            <Value>ABC20</Value>
        </EligibilityFeatureInfo>
    </EligibilityFeatures>
    <RequiresEligibilityRules>
        <EligibilityRuleInfo>
            <Id>3</Id>
            <RuleName>MyBaseOffer</RuleName>
            <ObjectType>subscriber</ObjectType>
            <EntityType>attribute</EntityType>
            <ContainerName>CustomSubscriber</ContainerName>
            <AttributeName>BaseOffer</AttributeName>
            <AttributeType>String</AttributeType>
            <Value>CustomA</Value>
        </EligibilityRuleInfo>
    </RequiresEligibilityRules>
    <ExcludesEligibilityRules>
        <EligibilityRuleInfo>
            <Id>22</Id>
            <RuleName>IOT Custom</RuleName>
            <ObjectType>catalog_item</ObjectType>
            <EntityType>feature</EntityType>
            <FeatureId>11</FeatureId>
            <FeatureName>IOT</FeatureName>
            <FeatureType>String</FeatureType>
            <Value>Custom</Value>
        </EligibilityRuleInfo>
    </ExcludesEligibilityRules>
</CatalogItemInfo>

For more information about eligibility rules, see the discussion about eligibility rules in MATRIXX Pricing and Rating.