Discounts in order details
Last updated
Was this helpful?
Last updated
Was this helpful?
Get the following data about the discount coupons and promotions applied to the order with Ecwid API:
Sum of promotions applied to the order
Details on the applied discount coupon
Total discount from promotions and coupons
Detailed information about discounts applied to each product in the order
You can filter out everything in the order details except for the discount data with the responseFields
query param.
Change STOREID
with your store ID, ORDERID
with the order ID (), and the secret_token
with the secret access token of your app.
where:
volumeDiscount
- Sum of promotions applied to the order subtotal.
membershipBasedDiscount
- Sum of promotions applied to customer groups.
totalAndMembershipBasedDiscount
- Sum of promotions applied to the order.
couponDiscount
- Discount from applied coupon.
customDiscount
- List of discounts applied by a custom app. If empty, no custom discounts are applied.
discount
- Total sum of all discounts applied to the order.
discountInfo
- List with details on all promotions applied to the order.
discountCoupon
- Details on applied discount coupon.
items.discounts.discountInfo
- List with details on all promotions applied to the specific product in the order.
items.discounts.total
- Total sum of promotions applied to the specific product in the order. If total
is less than the sum of items.discounts[].value
, the discount is taxed.
items.discountsAllowed
- If true
, discounts are applied to the product. If false
, the product is not affected by any of the order's discounts.