Get Cart Promotions Configurations Using Promotion ID

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

This API retrieves the configuration details of cart promotions using their promotion IDs.

  • When you call this API, the system returns a simplified view of the promotion configuration, including the promotion name, type, expiry date, description, reward summary, and current status.
  • Use this API when you need a quick summary of promotion configurations without the full rule definitions, such as displaying promotion information to customers or store associates.
  • You can retrieve configurations for multiple promotions in a single request by passing comma-separated promotion IDs.
  • Set includeExpired or includeInactive to true if you need to include promotions that have ended or been deactivated.

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

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
..expiryISOString

Specifies the ISO 8601 timestamp of when the cart promotion expires in UTC, returned in the server time zone.

EU server example 2026-02-04T09:14:45Z → 04 February 2026, 09:14:45 (UTC)

India server example 2026-02-04T14:44:45+05:30 → 04 February 2026, 14:44:45 (IST)

Note: The response time zone always matches the server time zone, regardless of the time zone offset in the request.

..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.
...CustomerArrayContains customer-level redemption limits.
...CartArrayContains cart-level redemption limits.
....kpiStringSpecifies the key metric used for the restriction.
....limitStringSpecifies the maximum allowed value for the restriction.
....windowTypeEnumSpecifies the type of limit window applied to the restriction.
....fixedWindowConfigObjectContains the cycle configuration for the restriction when windowType is FIXED.
.....cycleTypeEnumSpecifies the type of fixed cycle.
.....weekStartDayEnumSpecifies the start day of the weekly cycle when cycleType is WEEK.
.....refreshRateIntegerSpecifies the number of days per cycle when cycleType is N_DAY.
.....cycleReferenceDateLongEpoch timestamp in milliseconds. The anchor date from which N_DAY cycles are calculated. Interpreted in the org's configured timezone. Defaults to the promotion's startDate if omitted.
errorsArraySpecifies the errors messages.

Error codes

CodeDescription
400Invalid request. Check required parameters. Ensure all required parameters are provided and valid.
404Configuration not found. Use a valid request or check if the promotions configuration exists for the provided context.
500Internal server error. Retry the request after a short delay, and contact support if the error persists.
704Invalid reward type passed. Provide a valid reward type as per API specification.
707The passed promotion type is not supported. Change the promotion type to one supported by the system.

Query Params
boolean
boolean
promotionIds
array of strings
promotionIds
Responses

Language
Credentials
Basic
base64
:
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json