Get Cart Promotions

Get the cart promotion details for the organization

This API retrieves the cart promotion details for the organization. To retrieve promotion details for a specific promotion, use its cart promotion ID. You can provide multiple IDs as comma-separated values.

Example request

curl --location 'https://eu.api.capillarytech.com/api_gateway/v1/promotions/?promotionIds=68b5401db51b7777eca02900%2C68afffd77880ba5aa7cf2fb9%2C68661fe0ee52f074465e1062%2C%20686611bfee52f074465e1004' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'accept: application/json' \
--header 'Authorization: Basic *******' \
--header 'Cookie: _cfuvid=9oSq7qMWziCR7BHQMrLE46pnF7WobiRVUQNbpmzDGiM-1756730125036-0.0.1.1-604800000; _cfuvid=xV2byQ98kShUeD74KBvXw39WiKQWRTPYck_nFdSIjfQ-1756809373698-0.0.1.1-604800000'
curl --location 'https://eu.api.capillarytech.com/api_gateway/v1/promotions/?promotionIds=68b5401db51b7777eca02900' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'accept: application/json' \
--header 'Authorization: Basic **********' \
--header 'Cookie: _cfuvid=9oSq7qMWziCR7BHQMrLE46pnF7WobiRVUQNbpmzDGiM-1756730125036-0.0.1.1-604800000; _cfuvid=aYNqXBj3GQL6eDlcHu3JHL5aL.p3VZ3zJ1j4XreCu1c-1756809494855-0.0.1.1-604800000'
curl --location 'https://eu.api.capillarytech.com/api_gateway/v1/promotions/' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'accept: application/json' \
--header 'Authorization: Basic bmVlc3RvcmV0aWxsc3NuZWUyMzoyMDJjYjk2MTkwNzViOTY0YjA3MTUyZDIzNGI3MA==' \
--header 'Cookie: _cfuvid=9oSq7qMWziCR7BHQMrLE46pnF7WobiRVUQNbpmzDGiM-1756730125036-0.0.1.1-604800000; _cfuvid=cEokNpEZ7KaN9PsHveqwyFUhxxUO90bz2rE48rG8RDI-1756818458379-0.0.1.1-604800000'

Pre-requisites

Make sure you have the right authentication and appropriate access control configured:

  • Access group resource: Default
  • Authentication: Basic or OAuth authentication

Resource information

Pagination support

No

Rate limit

Demo and testing clusters: 1000 requests per minute per API key. Other organizations: Rate limit is brand-specific.

Batch support

Yes

Query parameter

FieldTypeRequiredDescription
promotionIDsArrayOptionalUnique identifiers for the cart promotion, generated during the creation of the cart promotion. You can provide more than one cart promotion ID as comma-separated values.

Example response

{
    "data": [
        {
            "id": "68b5401db51b7777eca02900",
            "name": "SeptemberPromo",
            "orgId": 100737,
            "priority": 0,
            "active": true,
            "messageLabel": "",
            "type": "CUSTOMER",
            "condition": {
                "type": "CART",
                "cartCondition": {
                    "kpi": "SUBTOTAL",
                    "operator": "GREATER_THAN_OR_EQUAL",
                    "value": "500.000000"
                }
            },
            "action": {
                "type": "CART_BASED",
                "cartBasedAction": {
                    "type": "PERCENTAGE",
                    "value": "15.000000"
                }
            },
            "createdBy": 75139931,
            "createdOn": 1756708893457,
            "lastUpdatedBy": 75139931,
            "lastUpdatedOn": 1756709902063,
            "startDate": 1756665000000,
            "endDate": 1759256999999,
            "campaignId": 264140,
            "promotionRestrictions": {},
            "earnLimitedToSpecificAudience": true,
            "customFieldValues": {},
            "customerActivationRequired": false,
            "mode": "DISCOUNT",
            "maxIssuancePerCustomer": -1,
            "isStackable": false
        },
        {
            "id": "68afffd77880ba5aa7cf2fb9",
            "name": "AugustCartPromo",
            "orgId": 100737,
            "priority": 0,
            "active": true,
            "messageLabel": "",
            "type": "CUSTOMER",
            "condition": {
                "type": "CART",
                "cartCondition": {
                    "kpi": "SUBTOTAL",
                    "operator": "GREATER_THAN_OR_EQUAL",
                    "value": "500.000000"
                }
            },
            "action": {
                "type": "CART_BASED",
                "cartBasedAction": {
                    "type": "PERCENTAGE",
                    "value": "15.000000"
                }
            },
            "createdBy": 75139931,
            "createdOn": 1756364759642,
            "lastUpdatedBy": 75139931,
            "lastUpdatedOn": 1756364759642,
            "startDate": 1756319400000,
            "endDate": 1756664999999,
            "campaignId": 264140,
            "promotionRestrictions": {},
            "earnLimitedToSpecificAudience": true,
            "customFieldValues": {
                "Age": "25"
            },
            "customerActivationRequired": false,
            "mode": "DISCOUNT",
            "maxIssuancePerCustomer": 10,
            "isStackable": false
        },
        {
            "id": "68661fe0ee52f074465e1062",
            "name": "code promotion",
            "orgId": 100737,
            "priority": 0,
            "active": true,
            "messageLabel": "",
            "type": "CODE",
            "condition": {
                "type": "CART",
                "cartCondition": {
                    "kpi": "SUBTOTAL",
                    "operator": "GREATER_THAN_OR_EQUAL",
                    "value": "1000.000000"
                }
            },
            "action": {
                "type": "CART_BASED",
                "cartBasedAction": {
                    "type": "ABSOLUTE",
                    "value": "100.000000"
                }
            },
            "createdBy": 75139931,
            "createdOn": 1751523296171,
            "lastUpdatedBy": 75139931,
            "lastUpdatedOn": 1751523296171,
            "startDate": 1751481000000,
            "endDate": 1753986599999,
            "campaignId": 264140,
            "promotionRestrictions": {
                "Code": [
                    {
                        "kpi": "REDEMPTION",
                        "limit": "5.000000"
                    }
                ]
            },
            "earnLimitedToSpecificAudience": false,
            "customFieldValues": {},
            "customerActivationRequired": false,
            "mode": "DISCOUNT",
            "maxIssuancePerCustomer": 1,
            "isStackable": false
        },
        {
            "id": "686611bfee52f074465e1004",
            "name": "doc_promotions",
            "orgId": 100737,
            "priority": 0,
            "active": true,
            "messageLabel": "",
            "type": "POS",
            "condition": {
                "type": "CART",
                "cartCondition": {
                    "kpi": "ITEMCOUNT",
                    "operator": "EQUALS",
                    "value": "200.000000"
                }
            },
            "action": {
                "type": "CART_BASED",
                "cartBasedAction": {
                    "type": "ABSOLUTE",
                    "value": "200.000000"
                }
            },
            "createdBy": 75160045,
            "createdOn": 1751519679886,
            "lastUpdatedBy": 75160045,
            "lastUpdatedOn": 1751519679886,
            "startDate": 1751481000000,
            "endDate": 1756664999999,
            "campaignId": 264140,
            "promotionRestrictions": {},
            "earnLimitedToSpecificAudience": false,
            "customFieldValues": {},
            "customerActivationRequired": false,
            "mode": "DISCOUNT",
            "maxIssuancePerCustomer": 1,
            "isStackable": false
        }
    ]
}
{
    "data": [
        {
            "id": "68b5401db51b7777eca02900",
            "name": "SeptemberPromo",
            "orgId": 100737,
            "priority": 0,
            "active": true,
            "messageLabel": "",
            "type": "CUSTOMER",
            "condition": {
                "type": "CART",
                "cartCondition": {
                    "kpi": "SUBTOTAL",
                    "operator": "GREATER_THAN_OR_EQUAL",
                    "value": "500.000000"
                }
            },
            "action": {
                "type": "CART_BASED",
                "cartBasedAction": {
                    "type": "PERCENTAGE",
                    "value": "15.000000"
                }
            },
            "createdBy": 75139931,
            "createdOn": 1756708893457,
            "lastUpdatedBy": 75139931,
            "lastUpdatedOn": 1756709902063,
            "startDate": 1756665000000,
            "endDate": 1759256999999,
            "campaignId": 264140,
            "promotionRestrictions": {},
            "earnLimitedToSpecificAudience": true,
            "customFieldValues": {},
            "customerActivationRequired": false,
            "mode": "DISCOUNT",
            "maxIssuancePerCustomer": -1,
            "isStackable": false
        }
    ]
}
{
    "data": [
        {
            "id": "68b096527880ba5aa7cf349b",
            "name": "Rake Crazy Deal",
            "orgId": 100458,
            "priority": 0,
            "active": true,
            "messageLabel": "Rake Crazy Deal",
            "type": "EARNING",
            "condition": {
                "type": "PRODUCT",
                "productCondition": {
                    "criteriaList": [
                        {
                            "entity": "ATTRIBUTE",
                            "operator": "IN",
                            "values": [
                                "SKU456"
                            ],
                            "attributeName": "sku_code"
                        }
                    ],
                    "kpi": "QUANTITY",
                    "value": "1.000000",
                    "operator": "GREATER_THAN_OR_EQUAL"
                }
            },
            "action": {
                "type": "CART_BASED",
                "cartBasedAction": {
                    "type": "ABSOLUTE",
                    "value": "15.000000"
                }
            },
            "createdBy": 75083493,
            "createdOn": 1756403282590,
            "lastUpdatedBy": 75083493,
            "lastUpdatedOn": 1756403425504,
            "startDate": 1756353600000,
            "endDate": 1759291199999,
            "campaignId": 257548,
            "earningCriteria": {
                "criteriaName": "TransactionAdd_Criteria",
                "earnedFromType": "ACTIVITY",
                "milestoneId": 0,
                "groupId": 0,
                "eventType": "TransactionAdd",
                "criteriaDsl": "currentLineItem.doesItemMatch(\"sku_code\",\"221900\")",
                "criteriaDslJson": "\n{\n  \"arity\":\"method_call\",\n  \"type\":\"boolean:primitive\",\n  \"operands\":[\n    {\n      \"arity\":\"name\",\n      \"value\":\"currentLineItem\",\n      \"type\":\"tx.item:object:primitive\"\n    },\n    {\n      \"arity\":\"name\",\n      \"value\":\"doesItemMatch\",\n      \"type\":\"anonymous:function:primitive\"\n    },\n    {\n      \"arity\":\"literal\",\n      \"value\":\"sku_code\",\n      \"type\":\"EEnum__InvAttr:enum:string:object:primitive\"\n    },\n    {\n      \"arity\":\"literal\",\n      \"value\":\"221900\",\n      \"type\":\"EEnum__InvAttr__EDepEnum__InvAttrVal__sku_code:string:object:primitive\"\n    }\n  ]\n}",
                "active": true
            },
            "promotionRestrictions": {},
            "earnLimitedToSpecificAudience": true,
            "customFieldValues": {
                "Crazy Deal": "TRUE"
            },
            "customerActivationRequired": false,
            "mode": "DISCOUNT",
            "maxIssuancePerCustomer": 1,
            "isStackable": false
        },
        {
            "id": "68b095087880ba5aa7cf3499",
            "name": "Rake 50% Discount",
            "orgId": 100458,
            "priority": 0,
            "active": true,
            "messageLabel": "Rake Discount",
            "type": "EARNING",
            "condition": {
                "type": "CART",
                "cartCondition": {
                    "kpi": "ITEMCOUNT",
                    "operator": "GREATER_THAN_OR_EQUAL",
                    "value": "1.000000"
                }
            },
            "action": {
                "type": "PRODUCT_BASED",
                "productBasedAction": {
                    "productBasedCondition": {
                        "type": "PRODUCT",
                        "productCondition": {
                            "criteriaList": [
                                {
                                    "entity": "ATTRIBUTE",
                                    "operator": "IN",
                                    "values": [
                                        "SKU456"
                                    ],
                                    "attributeName": "sku_code"
                                }
                            ],
                            "kpi": "NONE",
                            "value": "0.000000",
                            "operator": "NONE"
                        }
                    },
                    "type": "PERCENTAGE",
                    "value": "50.000000",
                    "includeItemsFromConditionSet": false
                }
            },
            "createdBy": 75083493,
            "createdOn": 1756402952534,
            "lastUpdatedBy": 75083493,
            "lastUpdatedOn": 1756403046218,
            "startDate": 1756353600000,
            "endDate": 1759291199999,
            "campaignId": 257548,
            "earningCriteria": {
                "criteriaName": "TransactionAdd_Criteria",
                "earnedFromType": "ACTIVITY",
                "milestoneId": 0,
                "groupId": 0,
                "eventType": "TransactionAdd",
                "criteriaDsl": "currentLineItem.doesItemMatch(\"sku_code\",\"221900\")",
                "criteriaDslJson": "\n{\n  \"arity\":\"method_call\",\n  \"type\":\"boolean:primitive\",\n  \"operands\":[\n    {\n      \"arity\":\"name\",\n      \"value\":\"currentLineItem\",\n      \"type\":\"tx.item:object:primitive\"\n    },\n    {\n      \"arity\":\"name\",\n      \"value\":\"doesItemMatch\",\n      \"type\":\"anonymous:function:primitive\"\n    },\n    {\n      \"arity\":\"literal\",\n      \"value\":\"sku_code\",\n      \"type\":\"EEnum__InvAttr:enum:string:object:primitive\"\n    },\n    {\n      \"arity\":\"literal\",\n      \"value\":\"221900\",\n      \"type\":\"EEnum__InvAttr__EDepEnum__InvAttrVal__sku_code:string:object:primitive\"\n    }\n  ]\n}",
                "active": true
            },
            "promotionRestrictions": {},
            "earnLimitedToSpecificAudience": true,
            "customFieldValues": {},
            "customerActivationRequired": false,
            "mode": "DISCOUNT",
            "maxIssuancePerCustomer": 1,
            "isStackable": false
        },
        {
            "id": "689c2fcf746fa670a410074f",
            "name": "20% on Dengue Test",
            "orgId": 100458,
            "priority": 0,
            "active": true,
            "messageLabel": "20% on Dengue Test",
            "type": "CUSTOMER",
            "condition": {
                "type": "PRODUCT",
                "productCondition": {
                    "criteriaList": [
                        {
                            "entity": "CATEGORY",
                            "operator": "IN",
                            "values": [
                                "Health  Wellness"
                            ]
                        }
                    ],
                    "kpi": "QUANTITY",
                    "value": "1.000000",
                    "operator": "GREATER_THAN_OR_EQUAL"
                }
            },
            "action": {
                "type": "PRODUCT_BASED",
                "productBasedAction": {
                    "type": "PERCENTAGE",
                    "value": "20.000000",
                    "includeItemsFromConditionSet": true
                }
            },
            "createdBy": 75060328,
            "createdOn": 1755066319408,
            "lastUpdatedBy": 75060328,
            "lastUpdatedOn": 1755066332629,
            "startDate": 1755057600000,
            "endDate": 1759291199999,
            "campaignId": 283791,
            "promotionRestrictions": {},
            "earnLimitedToSpecificAudience": true,
            "customFieldValues": {},
            "customerActivationRequired": false,
            "mode": "DISCOUNT",
            "maxIssuancePerCustomer": 1,
            "isStackable": false
        },
        {
            "id": "689c2e3fcad0166913dd0bad",
            "name": "OH 20% on All",
            "orgId": 100458,
            "priority": 0,
            "active": true,
            "messageLabel": "OH 20% on All",
            "type": "CUSTOMER",
            "condition": {
                "type": "CART",
                "cartCondition": {
                    "kpi": "SUBTOTAL",
                    "operator": "GREATER_THAN_OR_EQUAL",
                    "value": "1.000000"
                }
            },
            "action": {
                "type": "CART_BASED",
                "cartBasedAction": {
                    "type": "PERCENTAGE",
                    "value": "20.000000"
                }
            },
            "createdBy": 75060328,
            "createdOn": 1755065919793,
            "lastUpdatedBy": 75060328,
            "lastUpdatedOn": 1755065919793,
            "startDate": 1755057600000,
            "endDate": 1759291199999,
            "campaignId": 283791,
            "promotionRestrictions": {},
            "earnLimitedToSpecificAudience": true,
            "customFieldValues": {},
            "customerActivationRequired": false,
            "mode": "DISCOUNT",
            "maxIssuancePerCustomer": 1,
            "isStackable": false
        },
        {
            "id": "68959d200484736895ddd59b",
            "name": "Buy any Biba product, get 15% off",
            "orgId": 100458,
            "priority": 0,
            "active": true,
            "messageLabel": "Buy any Biba product, get 15% off",
            "type": "POS",
            "condition": {
                "type": "PRODUCT",
                "productCondition": {
                    "criteriaList": [
                        {
                            "entity": "SKU",
                            "operator": "IN",
                            "values": [
                                "A24BI10476EEN"
                            ]
                        }
                    ],
                    "kpi": "QUANTITY",
                    "value": "1.000000",
                    "operator": "GREATER_THAN_OR_EQUAL"
                }
            },
            "action": {
                "type": "CART_BASED",
                "cartBasedAction": {
                    "type": "PERCENTAGE",
                    "value": "15.000000"
                }
            },
            "createdBy": 75067382,
            "createdOn": 1754635552282,
            "lastUpdatedBy": 75067382,
            "lastUpdatedOn": 1754635552282,
            "startDate": 1754625600000,
            "endDate": 1761969599999,
            "campaignId": 280989,
            "promotionRestrictions": {},
            "earnLimitedToSpecificAudience": false,
            "customFieldValues": {},
            "customerActivationRequired": false,
            "mode": "DISCOUNT",
            "maxIssuancePerCustomer": 1,
            "isStackable": false
        },
        {
            "id": "68936f996762432a0d913c10",
            "name": "$10 off any order when you spend more than $100",
            "orgId": 100458,
            "priority": 0,
            "active": true,
            "messageLabel": "$10 off any order when you spend more than $100",
            "type": "EARNING",
            "condition": {
                "type": "CART",
                "cartCondition": {
                    "kpi": "SUBTOTAL",
                    "operator": "GREATER_THAN_OR_EQUAL",
                    "value": "100.000000"
                }
            },
            "action": {
                "type": "CART_BASED",
                "cartBasedAction": {
                    "type": "ABSOLUTE",
                    "value": "10.000000"
                }
            },
            "createdBy": 75125097,
            "createdOn": 1754492825610,
            "lastUpdatedBy": 75125097,
            "lastUpdatedOn": 1754492825610,
            "startDate": 1754452800000,
            "endDate": 1759291199999,
            "campaignId": 282928,
            "earningCriteria": {
                "criteriaName": "TransactionAdd_Criteria",
                "earnedFromType": "ACTIVITY",
                "milestoneId": 0,
                "groupId": 0,
                "eventType": "TransactionAdd",
                "criteriaDsl": "true",
                "criteriaDslJson": "\n{\n  \"arity\":\"literal\",\n  \"value\":\"true\",\n  \"type\":\"boolean:primitive\"\n}",
                "active": true
            },
            "promotionRestrictions": {},
            "earnLimitedToSpecificAudience": true,
            "customFieldValues": {},
            "customerActivationRequired": false,
            "mode": "DISCOUNT",
            "maxIssuancePerCustomer": 1,
            "isStackable": false
        },
        {
            "id": "6880c80dd9234a5350ca4b21",
            "name": "Region based offers Flat 500 INR off (West)",
            "orgId": 100458,
            "priority": 0,
            "active": true,
            "messageLabel": "Region based offers Flat 500 INR off (West)",
            "type": "POS",
            "storeCriteria": {
                "type": "ZONE",
                "values": [
                    75175598
                ],
                "operator": "IN"
            },
            "condition": {
                "type": "CART",
                "cartCondition": {
                    "kpi": "SUBTOTAL",
                    "operator": "GREATER_THAN_OR_EQUAL",
                    "value": "3000.000000"
                }
            },
            "action": {
                "type": "CART_BASED",
                "cartBasedAction": {
                    "type": "ABSOLUTE",
                    "value": "500.000000"
                }
            },
            "createdBy": 75067382,
            "createdOn": 1753270285640,
            "lastUpdatedBy": 75067382,
            "lastUpdatedOn": 1753270285640,
            "startDate": 1753243200000,
            "endDate": 1761969599999,
            "campaignId": 280989,
            "promotionRestrictions": {},
            "earnLimitedToSpecificAudience": false,
            "customFieldValues": {},
            "customerActivationRequired": false,
            "isLoyaltyOnly": true,
            "mode": "DISCOUNT",
            "maxIssuancePerCustomer": 1,
            "isStackable": false
        },
        {
            "id": "6880c7802420517ca07cb4f5",
            "name": "Region based offers Flat 500 INR off (Nautica)",
            "orgId": 100458,
            "priority": 0,
            "active": true,
            "messageLabel": "Region based offers Flat 500 INR off (Nautica)",
            "type": "POS",
            "storeCriteria": {
                "type": "STORE",
                "values": [
                    75027647
                ],
                "operator": "IN"
            },
            "condition": {
                "type": "CART",
                "cartCondition": {
                    "kpi": "SUBTOTAL",
                    "operator": "GREATER_THAN_OR_EQUAL",
                    "value": "5000.000000"
                }
            },
            "action": {
                "type": "CART_BASED",
                "cartBasedAction": {
                    "type": "ABSOLUTE",
                    "value": "500.000000"
                }
            },
            "createdBy": 75067382,
            "createdOn": 1753270144654,
            "lastUpdatedBy": 75067382,
            "lastUpdatedOn": 1753270162983,
            "startDate": 1753243200000,
            "endDate": 1761969599999,
            "campaignId": 280989,
            "promotionRestrictions": {},
            "earnLimitedToSpecificAudience": false,
            "customFieldValues": {},
            "customerActivationRequired": false,
            "isLoyaltyOnly": true,
            "mode": "DISCOUNT",
            "maxIssuancePerCustomer": 1,
            "isStackable": false
        },
        {
            "id": "6880c7062420517ca07cb4ec",
            "name": "Category based offers",
            "orgId": 100458,
            "priority": 0,
            "active": true,
            "messageLabel": "Category based offers",
            "type": "POS",
            "condition": {
                "type": "PRODUCT",
                "productCondition": {
                    "criteriaList": [
                        {
                            "entity": "SKU",
                            "operator": "IN",
                            "values": [
                                "33257531",
                                "32059180"
                            ]
                        }
                    ],
                    "kpi": "AMOUNT",
                    "value": "5000.000000",
                    "operator": "GREATER_THAN_OR_EQUAL"
                }
            },
            "action": {
                "type": "CART_BASED",
                "cartBasedAction": {
                    "type": "PERCENTAGE",
                    "value": "50.000000"
                }
            },
            "createdBy": 75067382,
            "createdOn": 1753270022250,
            "lastUpdatedBy": 75067382,
            "lastUpdatedOn": 1753270022250,
            "startDate": 1753243200000,
            "endDate": 1764565199999,
            "campaignId": 280989,
            "promotionRestrictions": {},
            "earnLimitedToSpecificAudience": false,
            "customFieldValues": {},
            "customerActivationRequired": false,
            "mode": "DISCOUNT",
            "maxIssuancePerCustomer": 1,
            "isStackable": false
        },
        {
            "id": "6880c4c8d9234a5350ca4b06",
            "name": "Buy 1 get 1",
            "orgId": 100458,
            "priority": 0,
            "active": true,
            "messageLabel": "Buy 1 get 1",
            "type": "POS",
            "condition": {
                "type": "PRODUCT",
                "productCondition": {
                    "criteriaList": [
                        {
                            "entity": "SKU",
                            "operator": "IN",
                            "values": [
                                "32753189"
                            ]
                        }
                    ],
                    "kpi": "QUANTITY",
                    "value": "2.000000",
                    "operator": "GREATER_THAN_OR_EQUAL"
                }
            },
            "action": {
                "type": "PER_UNIT",
                "perUnitAction": {
                    "rewardAction": {
                        "type": "FREE_PRODUCT",
                        "freeProductAction": {
                            "productBasedCondition": {
                                "type": "PRODUCT",
                                "productCondition": {
                                    "criteriaList": [
                                        {
                                            "entity": "SKU",
                                            "operator": "IN",
                                            "values": [
                                                "32753189"
                                            ]
                                        }
                                    ],
                                    "kpi": "NONE",
                                    "value": "0.000000",
                                    "operator": "NONE"
                                }
                            },
                            "includeItemsFromConditionSet": false
                        }
                    },
                    "perUnitKPI": "QUANTITY",
                    "perUnitDivider": "1.000000",
                    "includeItemsFromConditionSet": false
                }
            },
            "createdBy": 75067382,
            "createdOn": 1753269448554,
            "lastUpdatedBy": 75067382,
            "lastUpdatedOn": 1753269850045,
            "startDate": 1753243200000,
            "endDate": 1761969599999,
            "campaignId": 280989,
            "promotionRestrictions": {},
            "earnLimitedToSpecificAudience": false,
            "customFieldValues": {},
            "customerActivationRequired": false,
            "mode": "DISCOUNT",
            "maxIssuancePerCustomer": 1,
            "isStackable": false
        }
    ]
}

Response parameters

Field

Type

Description

.data

Array

Array containing the cart promotion details.

..id

string

Unique identifier of the cart promotion.

..name

string

Name of the cart promotion.

..orgId

integer

Organization identifier where the cart promotion exists.

..priority

integer

Priority of the cart promotion. Lower value means higher priority.

..active

boolean

Shows if the cart promotion is active. true - enabled, false - disabled

..messageLabel

string

Custom label or message for the promotion.

..type

enum

Type of cart promotion. Possible values: CUSTOMER, POS, CODE, EARNING, REWARD.

..condition

Object

Object containing information on the conditions.

...type

enum

Type of condition applied. Possible value: CART, PRODUCT, COMBO_PRODUCT, TENDER

...cartCondition

Object

Object containing the details of the conditions.

....kpi

enum

KPI on which the condition is based. Possible values: SUBTOTAL, ITEMCOUNT

....operator

enum

Operator used for evaluation. Possible values: EQUALS, GREATER_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN, LESS_THAN_OR_EQUAL, IN, NONE

....value

integer

Value used in the condition check.

..action

Object

Object containing details of the action.

...type

enum

Type of action triggered. Possible value: CART_BASED, FIXED_PRICE, PRODUCT_BASED, FREE_PRODUCT, TENDER, PER_UNIT

...cartBasedAction

Object

Object containing the

....type

enum

Type of benefit or discount applied. Possible values: PERCENTAGE, ABSOLUTE

....value

integer

Value of the discount in percentage.

..createdBy

integer

User ID of the creator.

..createdOn

string

Timestamp when the cart promotion is created

..lastUpdatedBy

integer

User ID of the last updater.

..lastUpdatedOn

string

Timestamp when the cart promotion was last updated

..startDate

integer

Start date of the cart promotion.

..endDate

integer

End date of the cart promotion.

..campaignId

integer

Campaign identifier.

..promotionRestrictions

Object

Restrictions for applying the promotion.

..earnLimitedToSpecificAudience

Boolean

Indicates whether the cart promotion is limited to a specific audience.

..customFieldValues

Object

Custom fields or additional values.

..customerActivationRequired

boolean

Whether customers must activate the cart promotion before use.

..mode

enum

Mode of the promotion. Possible values: DISCOUNT, PAYMENT_VOUCHER

..maxIssuancePerCustomer

integer

Maximum times the promotion can be issued per customer. Maximum value: 50

..isStackable

boolean

Whether the promotion can be stacked with others.

Error codes

CodeDescription
400Invalid request. Check required parameters. Ensure all required parameters are provided and valid.
701Error while calling the segmentation engine. Check segmentation engine service connectivity and logs.
702Error while getting org entities. Confirm org entities exist and relevant services are operational.
703Org timezone fetch failed. Verify org timezone configuration and service availability.
704Invalid reward type passed. Provide a valid reward type as per API specification.
705Exceeded maximum active promotions for an org. Deactivate some active promotions before creating a new one.
706Promotion has expired. Use a valid, non-expired promotion for the operation.
707The passed promotion type is not supported. Change the promotion type to one supported by the system.
708Exceeded the max earn per customer limit. Adjust the earn amount or check the customer limits setup.
709Promotion not in running state. Ensure the promotion is currently running before proceeding.
710Error while saving earned promotion. Retry after checking backend/infrastructure logs.
711Error while saving promotion or could not get product details. Check input data and ensure product service is available.
712Error while creating/updating emf rules. Check rule configuration and retry or contact support.
713Earned from type cannot be changed. Do not change earnedFromType on existing earned promotions.
714Earn is not supported for this promotion type. Switch to a supported promotion type for earn operations.
715Promotion was not issued to current customer. Ensure the promotion was issued to the specified customer.
716Promotion name must be unique. Use an unused, unique promotion name.
500Internal server error. Retry the request after a short delay, and contact support if the error persists.

Language
URL
Click Try It! to start a request and see the response here!