Rank and Exclusivity Import and Export for Promotions

Import and export functionality also includes rank and exclusivity attributes.

In the following rank and exclusivity example, the PromotionExclusivity setting is mandatory and the xsd element can't be declared as mandatory for technical reasons. A default value of no. is set for a new promotion in case the element isn't specified.

<xsd:complexType name="Promotion" mixed="false">
  <xsd:sequence>
    <xsd:element name="enabled-flag" type="xsd:boolean" minOccurs="0" maxOccurs="1" />
    <xsd:element name="qualifiers" type="PromotionQualifiers" minOccurs="0" maxOccurs="1" />
    <!-- NEW --> 
    <xsd:element name="rank" type="xsd:int" minOccurs="0" maxOccurs="1" />
    <xsd:element name="exclusive" type="PromotionExclusivity" minOccurs="0" maxOccurs="1" />
  <xsd:restriction base="xsd:string">
    <xsd:enumeration value="no" />
    <xsd:enumeration value="class" />
    <xsd:enumeration value="global" />
  </xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="PromotionExclusivity">
    <xsd:element name="name" type="LocalizedString" minOccurs="0" maxOccurs="unbounded" />
    ...
  </xsd:sequence>
  ...    
</xsd:complexType>
Note: Promotion import format supports only rank values >= 1.

The complex types BogoProductDiscount and TieredShippingDiscount contain the discount types.

  <xsd:element name="fixed-price" type="Amount" />
  <xsd:element name="percentage" type="Percentage" />
  <xsd:element name="amount" type="Amount" />
  <xsd:element name="free" type="EmptyElement" />
Note: The free-discount element is an empty element.
X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.