Order Promotions Import/Export

Order promotions are simpler than product promotions, their XML schema a subset of the previously-described product promotions schema.

This sample shows a tiered order promotion granting a $10 or $25 discount on the order, provided the merchandise total exceeds $100 or $200, respectively.

<promotion promotion-id="simple-order-promo" campaign-id="c1">
  <enabled-flag>true</enabled-flag>
  <name xml:lang="x-default">Simple OrderPromotion</name>
  <order-promotion-rule>
    <discounts>
      <discount>
        <threshold>100</threshold>
        <amount>10</amount>
      </discount>
      <discount>
         <threshold>200</threshold>
         <amount>25</amount>
      </discount>
    </discounts>
  </order-promotion-rule>
</promotion>

This sample shows a simple order bonus promotion that add a free product (SKU1) to the order if the customer purchased something (order total threshold greater than 0).

<promotion promotion-id="bonus-order-promo" campaign-id="c1">
  <enabled-flag>true</enabled-flag>
  <name xml:lang="x-default">Bonus OrderPromotion</name>
  <order-promotion-rule>
    <discounts>
     <discount>
       <threshold>0</threshold>
       <bonus>
         <bonus-products>
          <product-id>SKU1</product-id>
         </bonus-products>
       </bonus>
     </discount>
    </discounts>
  </order-promotion-rule>
</promotion>
You can use the element <payment-methods> and the complex type PromotedPaymentMethods to create discounts on an order based on payment method. The example below is a promotion that gives a 10% discount to any order that uses Paypal as the payment method.
    <promotion promotion-id="paymentpromo">
        <enabled-flag>false</enabled-flag>
        <searchable-flag>false</searchable-flag>
        <exclusivity>no</exclusivity>
        <callout-msg xml:lang="x-default">Use Paypal to receive 10% off your order!</callout-msg>
        <details xml:lang="x-default">10% for paypal</details>
        <order-promotion-rule>
            <payment-methods>
                <method-id>PayPal</method-id>
            </payment-methods>
            <discount-only-qualifying-products>true</discount-only-qualifying-products>
            <discounts condition-type="order-total">
                <discount>
                    <threshold>0.0</threshold>
                    <percentage>10.0</percentage>
                </discount>
            </discounts>
        </order-promotion-rule>
    </promotion>
Note: It isn't possible to create a payment method discount for the bonus products and choice of bonus products order promotion classes. This is the discount is calculated when the order is placed, before bonus products are chosen.