Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Amount does not match

Solved

Amount does not match

Tikweb22
Visitor
1 0 0

I created an order with API that has the total amount of line item 180kr, delivery charge 29 kr and the user has discount coupon 200kr. Every time I try to create the order with total_discounts = 200 it makes it total_discounts = 180. 
Can anyone explain why?

Accepted Solution (1)

GrahamS
Shopify Staff (Retired)
193 37 55

This is an accepted solution.

Line item discounts and Shipping discounts are inherently separate entities, and at the moment there's a limitation on the ability to apply both at the same time to a given order. Because of this, the system is automatically setting your total discount to the highest achievable value based on the line items in the order, with that limitation in mind.

To learn more visit the Shopify Help Center or the Community Blog.

View solution in original post

Reply 1 (1)

GrahamS
Shopify Staff (Retired)
193 37 55

This is an accepted solution.

Line item discounts and Shipping discounts are inherently separate entities, and at the moment there's a limitation on the ability to apply both at the same time to a given order. Because of this, the system is automatically setting your total discount to the highest achievable value based on the line items in the order, with that limitation in mind.

To learn more visit the Shopify Help Center or the Community Blog.