The Functions API is the default Shopify API used by Discount Depot App for discounting purposes, providing several advantages over the Storefront API:
 
  • Compatibility: Discount rules are compatible with third-party checkouts, draft orders, and custom checkouts. This ensures that the rules are consistently applied at the checkout, regardless of other installed apps or customisations.
  • Simple Implementation: Implementing discounts through the Functions API is as easy as installing the Discount Depot App. No modifications to your theme files are required, and discounts can be applied to the cart and checkout immediately after app installation. Note that installing snippets is still necessary if you want to display discounts on collection and product pages.
  • Fast & Lightweight: The Functions API has minimal impact on your cart and checkout performance. Discounts are loaded quickly, providing a seamless user experience.
 
While the Functions API offers many benefits, it's possible that your specific discounting requirements may not be achievable with this API. In such cases, the Storefront API is available to address some of the limitations of the Functions API. To learn more about the Storefront API and when to switch from the Functions API, click here.