On this page
- Checkout Discount methods: Draft Order API Vs Coupon Code API
-
How to change discount method for your website?
In this article, we’ll explore both checkout discount methods, which rely on Shopify’s APIs: the Draft Order API and the Coupon Code API, to create orders with discounted prices.
Checkout Discount methods
When a discount is applicable to an order based on the matching discount rules defined in the Wholesale All In One application, the order must be processed through the app using one of the two available checkout discount methods: the Draft Order API method or the Coupon Code API method.
Quick Comparison [Checkout Discount Methods]
| Features list | Draft Order API | Coupon Code API |
| Manage Shipping feature of wholesale app | ✔ | ✘ |
| Back cart link on checkout page | ✘ | ✔ |
| Shopify Abandoned checkout email | ✘ | ✔ |
| Discount with Multicurrency checkout (Shopify Market rates) | ✔ | ✔ |
| Additional discount via Shopify 'Automatic Discount' having 'Percentage' or 'Fixed amount' type | ✔ | ✘ |
Draft Order API [Discount method]
How does it work?
When cart items are eligible for a discount based on wholesale all-in-one application discount rules [Screenshot], the order will be processed via the Draft Order discount method.
When a customer clicks on the "Check Out" [Screenshot] button on the website, the application creates a Draft Order in Shopify [Screenshot] and takes the customer to the draft order checkout page [Screenshot]
Successful vs Unsuccessful Orders
1. Successful Order: If customer completes the payment process through Shopify checkout then Draft Order automatically converts to Regular Order in the Shopify dashboard.
- The store owner can see the new order in the Shopify Orders section instead of the Draft section.
2. Unsuccessful Order: If customer leaves the website without completing the payment through Shopify checkout page then Draft Order exists in the Shopify Draft Order section.
- Optional: You can remove this incomplete Draft Order
- Optional: You can manually send an invoice to the customer to complete the payment. [Screenshot]
Special Notes:
1. Abandoned checkout email doesn't work for Draft Order method.
2. Missing "Return to Cart" icon on checkout page [screenshot]. However, Customers can still go back to the cart page by clicking the logo on checkout page.
3. We’re currently unable to remove discount labels from the checkout page. However, we hope to offer this option in the future as Shopify continues to add new capabilities to its API [Screenshot]
4. Shipping rules defined in the Wholesale All In One app work only with the Draft Order API method, not with the Coupon Code API method [Shopify].
Coupon code API [Discount method]
How does it work?
When cart items are eligible for discount based on wholesale all in one application discount rules [Screenshot], in this case order process via Coupon Code discount method.
When customer click on "Check Out" button from the website then application creates a Coupon Code equivalent to the applicable order discount in the Shopify and automatically apply that Coupon Code on the customer order on checkout page. [Screenshot]
Each coupon code created by the Wholesale All In One application is linked to a specific customer order, meaning other customers cannot use the same coupon code to receive a discount. By default, each coupon remains active for 3 days, allowing customers to receive eligible discounts from their abandoned checkout emails. The coupon code will expire automatically after 3 days, and you may delete expired coupons at any time.
Special Notes:
1. We can't modify checkout to hide applied coupon code and discount labels [Screenshot]
2. Automatically generates a discount code when customer get discount on checkout page. You can find automatically generated discount codes at Shopify dashboard > Discounts.
3. When a customer leaves the website from the checkout page without placing an order, in this case, the customer will receive the abandoned checkout email but will not receive the discount unless they go back to the cart and proceed to checkout again.
4. Shipping rules defined in the Wholesale All In One app do not work with the Coupon Code API method due to limitations in Shopify. However, shipping rates defined in Shopify’s native Shipping section will continue to work as expected.
How to change discount method for your website?
You can change the checkout discount method based on your requirements by following steps below:
Location: Shopify Dashboard > Apps > Wholesale All In One > Settings > Checkout Discount Methods
Please refer to the screenshots below for guidance.