You can create coupons through Business Manager or by importing coupon definitions in XML format. The following XML example shows the main elements of the coupon import format.
<coupons>
This coupon definition shows that its allows up to 500 redemptions, 1 per customer, and up to 5 per week per customer.
<coupon coupon-id="myCoupon">
<description>The coupon description</description>
<enabled-flag>true</enabled-flag>
<redemption-limits>
<limit-per-code>500</limit-per-code>
<limit-per-customer>1</limit-per-customer>
<limit-per-timeframe time-frame="week">5</limit-per-timeframe>
</redemption-limits>
By default, all coupons are case sensitive. If the coupon code is case-insensitive, it would be defined here. This works only for coupons without existing codes.
<case-insensitive>true</case-insensitive>
If the coupon had a single code, it would be defined here.
<single-code>DRR94IGB49S</single-code>
If the coupon had system generated codes, in this example, the prefix would be "ABC", with up to 1000 issued.
<virtual-codes>
<code-prefix>ABC</code-prefix>
<code-limit>1000</code-limit>
<virtual-codes>
If the coupon had multiple codes, they would be listed here. For coupons with large numbers of codes, use system generated coupons. See Managing System Generated Codes.
</coupon>
<coupon-codes coupon-id="myCoupon">
<code>ABEEO48HD4C</code>
<code>ABRREO48H7F</code>
</coupon-codes>
...
</coupons>