get
https://{host}/api_gateway/v1/promotions/config
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
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
includeExpiredorincludeInactivetotrueif 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
| Pagination | No |
| Batch support | No |
Query parameters
| Field | Type | Required | Description |
|---|---|---|---|
| promotionIds | String | Yes | Defines the promotion ID using which you want to retrieve the cart promotion configuration details. |
| includeExpired | Boolean | Optional | If set as true, includes expired cart promotions in the response. |
| includeInactive | Boolean | Optional | If 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
| Field | Type | Description |
|---|---|---|
| data | Array | Defines a list of cart promotion configuration objects. |
| ..promotionId | String | Specifies the unique identifier for the cart promotion. |
| ..promotionName | String | Specifies the name of the cart promotion. |
| ..promotionType | String | Specifies the type of cart promotion. |
| ..milestoneId | Number | Specifies the milestone ID. |
| ..groupId | Number | Specifies the group ID. |
| ..ruleId | Number | Specifies the rule ID. |
| ..expiry | Number | Indicates the timestamp of when the cart promotion expires in UTC time zone.Time format: Epoch milliseconds |
| ..expiryISO | String | 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. |
| ..description | String | Specifies the description of the cart promotion. |
| ..storeCriteria | Object | Defines store-based applicability rules. |
| ..supplementaryCriteria | Object | Defines supplementary criteria. |
| ..reward | String | Specifies the reward details. |
| ..maxEarningPerCustomer | Number | Specifies the maximum number of times a customer can earn the cart promotion. |
| ..isActive | Boolean | Indicates whether the cart promotion is currently active. |
| ..customFieldValues | Object | Contains custom field key-value pairs associated with the cart promotion. |
| ..promotionRestrictions | Object | Contains any restrictions applied to the cart promotion. |
| ...Customer | Array | Contains customer-level redemption limits. |
| ...Cart | Array | Contains cart-level redemption limits. |
| ....kpi | String | Specifies the key metric used for the restriction. |
| ....limit | String | Specifies the maximum allowed value for the restriction. |
| ....windowType | Enum | Specifies the type of limit window applied to the restriction. |
| ....fixedWindowConfig | Object | Contains the cycle configuration for the restriction when windowType is FIXED. |
| .....cycleType | Enum | Specifies the type of fixed cycle. |
| .....weekStartDay | Enum | Specifies the start day of the weekly cycle when cycleType is WEEK. |
| .....refreshRate | Integer | Specifies the number of days per cycle when cycleType is N_DAY. |
| .....cycleReferenceDate | Long | Epoch 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. |
| errors | Array | Specifies the errors messages. |
Error codes
| Code | Description |
|---|---|
| 400 | Invalid request. Check required parameters. Ensure all required parameters are provided and valid. |
| 404 | Configuration not found. Use a valid request or check if the promotions configuration exists for the provided context. |
| 500 | Internal server error. Retry the request after a short delay, and contact support if the error persists. |
| 704 | Invalid reward type passed. Provide a valid reward type as per API specification. |
| 707 | The passed promotion type is not supported. Change the promotion type to one supported by the system. |
