Get Cart Promotions Configurations Using Promotion ID

This API can be used fetch the configurations of the cart promotions through promotion ID.

Example request

curl --location 'https://{Host}/api_gateway/v1/promotions/config?promotionIds=68e7966845de881062349048&includeExpired=true&includeInactive=true' \
--header 'Authorization: Basic Z2VvcmdlvY2RlbNWI5ZjAxMzU5NGIwNDllZTk=' \
--header 'Cookie: _cfuvid=DWAI.W93CwD84bJoUrRqwVps-1761979737913-0.0.1.1-604800000' \
--data ''

Prerequisites

  • Authentication: Basic or OAuth authentication.

  • Default access group

Resource information

PaginationNo
Batch supportNo

Rate limit

  • Demo and Testing Clusters: 1,000 requests per minute per API key

  • Other Organizations: The rate limit is brand-specific.

To modify the limit, create a ticket with the Capillary Product support team.

Query parameters

FieldTypeRequiredDescription
promotionIdsStringYesDefines the promotion ID using which you want to retrieve the cart promotion configuration details.
includeExpiredBooleanOptionalIf set as true, includes expired cart promotions in the response.
includeInactiveBooleanOptionalIf set as true, includes inactive cart promotions in the response.

Example response

{
    "data": [
        {
            "promotionId": "68e7966845de881062349048",
            "promotionName": "Goldpromo",
            "promotionType": "REWARD",
            "expiry": 1758738599999,
            "expiryISO": "2025-09-24T18:29:59Z",
            "description": "testing 1234",
            "reward": "Buy items of amount =  100.000000 Get 1000.000000 off on the bill",
            "isActive": true,
            "customFieldValues": {
                "qwer": ""
            },
            "promotionRestrictions": {}
        }
    ],
    "errors": []
}

Response parameters

FieldTypeDescription
dataArrayDefines a list of cart promotion configuration objects.
..promotionIdStringSpecifies the unique identifier for the cart promotion.
..promotionNameStringSpecifies the name of the cart promotion.
..promotionTypeStringSpecifies the type of cart promotion.
..milestoneIdNumberSpecifies the milestone ID.
..groupIdNumberSpecifies the group ID.
..ruleIdNumberSpecifies the rule ID.
..expiryNumberIndicates the timestamp of when the cart promotion expires in UTC time zone.Time format: Epoch milliseconds
..expiryISOStringSpecifies the ISO 8601 timestamp of when the cart promotion expires in UTC.
..descriptionStringSpecifies the description of the cart promotion.
..storeCriteriaObjectDefines store-based applicability rules.
..supplementaryCriteriaObjectDefines supplementary criteria.
..rewardStringSpecifies the reward details.
..maxEarningPerCustomerNumberSpecifies the maximum number of times a customer can earn the cart promotion.
..isActiveBooleanIndicates whether the cart promotion is currently active.
..customFieldValuesObjectContains custom field key-value pairs associated with the cart promotion.
..promotionRestrictionsObjectContains any restrictions applied to the cart promotion.
errorsArraySpecifies the errors messages.

Language
Credentials
Basic
base64
:
URL
Click Try It! to start a request and see the response here!