Announcement: You can find the guides for Commerce 7.5 and later on the new Elastic Path Documentation site. This Developer Center contains the guides for Commerce 6.13.0 through 7.4.1.Visit new site

This version of Elastic Path Commerce is no longer supported or maintained. To upgrade to the latest version, contact your Elastic Path representative.

Coupon Set

Coupon Set

A Coupon Set is a collection of coupon codes. The bearer of the coupon is entitled to a >shopping cart promotion.

The table below describes some of the Coupon Set XML elements:

XML Element

Definition

<rule_code>

Corresponds to the (TRULE) column in the database's TRULE table. RULECODE is used to associate the Coupon with a promotion rule.

<coupon_config_code>

Corresponds to the (TCOUPONCONFIG) column in the database's TCOUPONCONFIG table.

Sample XML Code: Coupon Sets


<coupon_sets>
<coupon_set>
    <coupon_set>
    <coupon_config>
        <rule_code>25%_Off_Binoculars</rule_code>
        <coupon_config_code>8B857F27-9E8B-9787-A833-72206FBDA417</coupon_config_code>
        <coupon_usage_type>limitPerSpecifiedUser</coupon_usage_type>
        <usage_limit>1</usage_limit>
        <duration_days>0</duration_days>
        <limited_duration>false</limited_duration>
        <multi_use_per_order>false</multi_use_per_order>
    </coupon_config>
    <coupons>
        <coupon_code>Bino001</coupon_code>
        <coupon_code>Bino002</coupon_code>
    </coupons>
    <coupon_usages>
        <coupon_usage>
            <coupon_code>Bino001</coupon_code>
            <active_in_cart>true</active_in_cart>
            <email>alana.abercombie@elasticpath.com</email>
        </coupon_usage>
        <coupon_usage>
            <coupon_code>Bino001</coupon_code>
            <active_in_cart>true</active_in_cart>
            <email>annabelle.alvirez@elasticpath.com</email>
        </coupon_usage>
        <coupon_usage>
            <coupon_code>Bino002</coupon_code>
            <active_in_cart>true</active_in_cart>
            <email>darcy.aubel@elasticpath.com</email>
        </coupon_usage>
        <coupon_usage>
            <coupon_code>Bino002</coupon_code>
            <active_in_cart>true</active_in_cart>
            <email>tester@ep.com</email>
        </coupon_usage>
    </coupon_usages>
</coupon_set>
...
</coupon_sets>