Import of Promotion and Campaign Coupon Assignments

The following shows the part of the promotion schema ( promotion.xsd ) that defines how to specify coupons that are attached to promotions and campaigns. Specific coupon details are defined in the coupon.xsd schema.

Note: The UTF-8 format is a variable-length character encoding for Unicode. It's able to represent any character in the Unicode standard. This schema is presented only to illustrate its functions and might change at any time. See Salesforce B2C Commerce XChange for the latest schema.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xsd:schema 
	xmlns="http://www.demandware.com/xml/impex/promotion/2008-01-31" 
	xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
	xmlns:xml="http://www.w3.org/XML/1998/namespace" 
	targetNamespace="http://www.demandware.com/xml/impex/promotion/2008-01-31"
	elementFormDefault="qualified" 
	attributeFormDefault="unqualified">
	<xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd" />
	<!-- top-level element -->
	<xsd:element name="promotions">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="campaign" type="Campaign" minOccurs="0" maxOccurs="unbounded" />
				<xsd:element name="promotion" type="Promotion" minOccurs="0" maxOccurs="unbounded" />
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>

This is where you specify the coupons that are parts of a campaign.

	<xsd:complexType name="Campaign" mixed="false">
		<xsd:sequence>
			. . .
			<xsd:element name="coupons" type="PromotionCoupons" minOccurs="0" maxOccurs="1" />
			. . .
		</xsd:sequence>
		. . .
	</xsd:complexType>

This is where you specify the coupons that are parts of a promotion.

	<xsd:complexType name="Promotion" mixed="false">
		<xsd:sequence>
			. . .
			<xsd:element name="coupons" type="PromotionCoupons" minOccurs="0" maxOccurs="1" />
			. . .
		</xsd:sequence>
		. . .
	</xsd:complexType>
	. . .

This is where you define coupons names and IDs.

	<xsd:complexType name="PromotionCoupons" mixed="false">
		<xsd:sequence>
			<xsd:element name="coupon" type="Coupon" minOccurs="0" maxOccurs="unbounded" />
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="Coupon" mixed="false">
		<xsd:attribute name="coupon-id" type="Generic.NonEmptyString.256" use="required" />
	</xsd:complexType>
	. . .

This is where you define PromotionQualifiers as a generic type.

	<xsd:complexType name="PromotionQualifiers" mixed="false">
		<xsd:sequence>
			. . .
			 <xsd:element name="coupons" type="EmptyElement" minOccurs="0" maxOccurs="1" />
		</xsd:sequence>
	</xsd:complexType>
	. . .
</xsd:schema>