In this Article
...
Discounts are an integral part of a sales operation that benefits both business and customers. Once the marketing team designs discount promotional strategies, the onus is on the sales team to implement these strategies to increase the sales and customer satisfaction. Customers are now accustomed to discounts round the year—so there has to be a mechanism in place to push discounts automatically based on certain preconditions, such as when the sale is more than $5000 you get a 10% discount or when your sale order is $9000 you can claim a gift on additional $1000 purchase and so on. This use case demonstrates how we can use the Shopify Snap Pack to apply discounts on customer sale orders.
Problem
In a real business case scenario, creating orders and applying discounts based on the overall sales order is a manual and time-consuming operation. To automate the process of applying discounts we can design a Pipeline using the Shopify Snap Pack to fasten the process, which helps retain customers and avoid human error.
Solution
Using the Shopify Snap Pack, we can automate the workflow of a discount application on sales orders based on discount codes. This Pipeline demonstrates how we can accomplish this task efficiently with a basic Pipeline.
Understanding the Pipeline
...
Prerequisites:
- Create an app and store in your Shopify application.
- Set the required scopes for the app. In this Use Case we set the scopes to perform the following actions:
- Add read customers, read orders, and read products.
- Add write orders.
...
First, we configure the JSON Generator Snap to send the required customer and discount data to the downstream Mapper Snap.
Use Customer Data to apply Discount
...