Discounts in order details
Configured order API call
Request example:
GET /api/v3/STOREID/orders/ORDERID?responseFields=volumeDiscount,membershipBasedDiscount,totalAndMembershipBasedDiscount,couponDiscount,customDiscount,discount,discountInfo,discountCoupon,items(discounts,discountsAllowed) HTTP/1.1
Host: app.ecwid.com
Authorization: Bearer secret_tokenResponse examples:
{
"volumeDiscount": 9,
"membershipBasedDiscount": 0,
"totalAndMembershipBasedDiscount": 0,
"couponDiscount": 10,
"customDiscount": [],
"discount": 9,
"discountInfo": [
{
"value": 10,
"type": "PERCENT",
"base": "ON_TOTAL",
"orderTotal": 50,
"description": "10% off on cart total above €50,00",
"appliesToItems": [],
"appliesToOrderItems": [],
"triggeredByOrderItems": []
}
],
"discountCoupon": {
"id": 224223294,
"name": "Test Coupon #2",
"code": "DISC2",
"discountType": "PERCENT",
"status": "ACTIVE",
"discount": 10,
"launchDate": "2024-09-01 23:00:00 +0000",
"usesLimit": "UNLIMITED",
"repeatCustomerOnly": false,
"applicationLimit": "UNLIMITED",
"creationDate": "2024-09-02 08:32:37 +0000",
"updateDate": "2024-09-02 08:26:35 +0000",
"orderCount": 0
},
"items":
}Last updated
Was this helpful?
