Can I have more than one discount_application on one order? The filed discount_applications is an array.
There are 3 types, manual and script and discount_code. How do I generate these discounts? When a customer input a code in checkout page, which discount will generate?
What is the difference between discount_applications and discount_codes?
Please find the answers (based on my understanding and experience) as below:
Can I have more than one discount_application on one order? The filed discount_applications is an array.
=> You can have more than one type (manual, discount_code, and script) in the discount_application field but discount_application will be present only once on the order level
There are 3 types, manual and script, and discount_code. How do I generate these discounts? When a customer input a code on the checkout page, which discount will generate?
=> discount_code - when a customer applies a discount while placing an order, the other 2 can be generated via creating a draft order from Shopify admin and admin scripts in Shopify plus store
What is the difference between discount_applications and discount_codes?
=> Discount application tells you which discounts are applied on that orders and discount code will give you info on which discount codes are applied on that order
Can I have more than one discount_application on one order? The filed discount_applications is an array.
=> You can have more than one type (manual, discount_code, and script) in the discount_application field but discount_application will be present only once on the order level
=> Your mean is there could be 3 discount_application in one order at most. But the types must be different just like as below, right?
What is the difference between discount_applications and discount_codes?
=> Discount application tells you which discounts are applied on that orders and discount code will give you info on which discount codes are applied on that order
=> If there is a discount_code type in discount_application, and there must be a “discount_codes” object in the order?