Import of Promotion and Campaign Coupon Assignments

The promotion.xsd schema can define 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 can change at any time.
<?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 portion 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 portion 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 portion 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 portion 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>