Get all milestones (target)

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

This API is being phased out and will no longer be available for viewing milestones.

To view milestones, use the Get Details of all Loyalty Promotions API


This API is used to retrieve details of the milestones configured for the org.

👍

Note

For detailed information about our APIs and for hands-on testing, refer documentation in API overview and step-by-step guide on making your first API call in Make your first API call .

API endpoint example

https://eucrm.cc.capillarytech.com/v3/milestones

Prerequisites

  • Basic or OAuth authentication
  • Default access group

API Specification

URIv3/milestones
HTTP MethodGET
PaginationYes
Batch supportNo
Rate limit informationNone

Request query parameters

Parameter NameData TypeDescription
start-dateDateFilter on the start date of the milestone. This param is used to get the active milestones on and after the specified date.
end-dateDateFilter on the end date of the milestone. This param is used to get the milestones active on and before the specified date.
statusEnumFilter based on the status of the milestone. Supported values: LIVE, UPCOMING, ENDED, STOPPED.
typeEnumFilter based on the tracking type of the milestone. Supported values: DEFAULT, CAPPING, UNIFIED, STREAKS.
target-onEnumFilter based on the target type of the milestone. Supported values: QUANTITY,SALES,COUNT,VISIT,GROSS_SALES,REGULAR_POINTS, PROMOTIONAL_POINTS,ALL_POINTS,EXTENDED_FIELD,EVENT_ATTRIBUTE
nameStringFilter based on the name of the milestone.
require-periodsBooleanSet true to retrieve all period information.
limitIntegerPage size for pagination.
offsetIntegerPage offset for pagination.
includeUserCreatedTargetGroupsBooleanInclude the user created target groups in the response. This value is false by default.

Response parameters

ParameterData TypeDescription
idIntegerUnique identifier of the milestone.
createdOnStringCreation date and time of the target group.
Note: This field will be deprecated in the future and is being replaced by createdOnISO.
lastUpdatedOnStringLast update date and time of the target group.
Note: This field will be deprecated in the future and is being replaced by lastUpdatedOnISO.
createdOnISOString

Indicates the creation date and time of the target in ISO 8601 format, returned in the server time zone.

EU server example:
2025-12-16T14:30:45Z → 16 December 2025, 14:30:45 (UTC)

India server example:
2025-12-16T14:30:45+05:30 → 16 December 2025, 14:30:45 (IST)
Note: The response time zone always matches the server time zone, regardless of the time zone offset in the request.

lastUpdatedOnString

Indicates the last updated date and time of the target in ISO 8601 format, returned in the server time zone.

EU server example:
2025-12-16T14:30:45Z → 16 December 2025, 14:30:45 (UTC)

India server example:
2025-12-16T14:30:45+05:30 → 16 December 2025, 14:30:45 (IST)
Note: The response time zone always matches the server time zone, regardless of the time zone offset in the request.

createdBy.idIntegerID of the user who created the target group.
nameStringName of the target group.
fromDateDateStart date of the target group's active period.
toDateDateEnd date of the target group's active period.
activeBooleanIndicates if the target group is currently active.
preferredTillIdIntegerReference ID for internal use, possibly related to prioritization.
periodsArrayCollection of periods within the target group.
periods.idIntegerUnique identifier for each period.
periods.startDateDateStart date of the period.
periods.endDateDateEnd date of the period.
periods.refCodeStringReference code for the period.
periods.periodStatusStringStatus of the period (e.g., RUNNING, NOT_STARTED).
periods.targetGroupIdIntegerID of the target group to which the period belongs.
periods.descriptionStringDescription of the period.
periods.activeBooleanIndicates if the period is active.
streaksArrayCollection of streaks within the target group.
streaks.idIntegerUnique identifier for each streak.
streaks.targetGroupIdIntegerID of the target group to which the streak belongs.
streaks.nameStringName of the streak.
streaks.targetCountOfSequenceIntegerTarget count of sequences for the streak.
activePeriod.idIntegerID of the currently active period.
totalPeriodsIntegerTotal number of periods over which the tracking is evaluated.
descriptionStringDescription of the non-continuous-streaks group.
targetEvaluationTypeStringEvaluation strategy for the targets. Supported values: FIXED_CALENDAR_WINDOW, CYCLIC_WINDOW, PERIOD_AGNOSTIC_WINDOW.
recurringCyclesIntegerNumber of recurring cycles.
frequencyIntegerFrequency count relevant to the frequencyType.
targetCycleStartDateDateTimeStart date and time of the target cycle.
Note: This field will be deprecated in the future and is being replaced by targetCycleStartDateISO.
targetCycleStartDateISODateTime

Indicates the start date and time of the target cycle in ISO 8601 format, returned in the server time zone.

EU server example:
2025-12-16T14:30:45Z → 16 December 2025, 14:30:45 (UTC)

India server example:
2025-12-16T14:30:45+05:30 → 16 December 2025, 14:30:45 (IST)
Note: The response time zone always matches the server time zone, regardless of the time zone offset in the request.

targetCycleEndDateDateTimeEnd date and time of the target cycle.
Note: This field will be deprecated in the future and is being replaced by targetCycleEndDateISO.
targetCycleEndDateISODateTime

Indicates the end date and time of the target cycle in ISO 8601 format, returned in the server time zone.

EU server example:
2025-12-16T14:30:45Z → 16 December 2025, 14:30:45 (UTC)

India server example:
2025-12-16T14:30:45+05:30 → 16 December 2025, 14:30:45 (IST)
Note: The response time zone always matches the server time zone, regardless of the time zone offset in the request.

frequencyTypeEnumFrequency of each cycle. Supported values: Monthly, Quarterly, Half-yearly, Yearly, Weekly.
trackingTypeEnumType of tracking. Supported values: Default, Unified, Streak, Capping.
createdOnLongCreation timestamp in milliseconds since epoch.
targetsArrayCollection of targets within the target group.
targets.idIntegerUnique identifier for each target.
targets.nameStringName of the target.
targets.emfRuleSetIdIntegerRule set ID associated with the target.
targets.targetTypeEnumType of target (e.g., COUNT).
targets.targetEntityEnumEntity of the target. Supported values: CUSTOMER, TRANSACTIONS, STORE, PRODUCT, BEHAVIOURAL EVENTS.
targets.eventNameStringEvent name associated with the target.
targets.targetGroupIdIntegerID of the target group to which the target belongs.
targets.descriptionStringDescription of the target.
targets.expressionStringExpression defining the target condition.
targets.expressionJsonJSONJSON format of the expression defining the target condition.
targets.filtersArrayFilters applied to the target.
targets.enrolmentMethodStringMethod of enrolment for the target.
targets.defaultValuesArrayDefault values associated with periods for the target.
targets.defaultValues.idIntegerUnique identifier for each default value.
targets.defaultValues.periodIdIntegerID of the period to which the default value belongs.
targets.defaultValues.defaultValueDecimalDefault value of the period.
targetAudienceFilterArrayList of audience filters used for the milestone.
targetAudienceFilter.audienceGroupIdIntegerUnique identifier for the audience group.
targetAudienceFilter.versionIdIntegerVersion identifier for the audience filter.
targetAudienceFilter.audienceFilterMetaIdIntegerMetadata identifier for the audience filter.
targetAudienceFilter.lastUpdatedOnStringTimestamp of the last update (ISO 8601 format).
userCreatedBooleanIndicates if the target is user-created.
leaderboardEnabledBooleanIndicates if leaderboard tracking is enabled.
timeZoneNameStringIANA time zone name for the target group.
This is a reference label to identify the time zone where the target group is created. There is no validation for this parameter; it is recommended to follow the IANA format.
{
    "pagination": {
        "limit": 10,
        "offset": 0,
        "total": 194
    },
    "data": [
        {
            "id": 2773,
            "attribution": {
                "createdOn": "2025-11-24T09:23:57.000+0000",
                "createdOnISO": "2025-11-24T09:23:57Z",
                "lastUpdatedOn": "2025-11-24T09:23:57.000+0000",
                "lastUpdatedOnISO": "2025-11-24T09:23:57Z",
                "lastUpdatedBy": {
                    "id": 75152721,
                    "code": "tom_doc",
                    "description": "",
                    "name": "tom",
                    "type": "TILL"
                },
                "createdBy": {
                    "id": 75152721,
                    "code": "tom_doc",
                    "description": "",
                    "name": "tom",
                    "type": "TILL"
                }
            },
            "orgId": 100737,
            "name": "uatTargetGroup102",
            "active": true,
            "preferredTillId": 751552970000,
            "totalPeriods": 2,
            "description": "UAT target group number hundered and two",
            "targetEvaluationType": "FIXED_CALENDAR_WINDOW",
            "recurringCycles": 1,
            "frequency": 1,
            "targetCycleStartDate": "2025-05-11T00:00:00.000Z",
            "targetCycleEndDate": "2025-06-11T23:59:59.000Z",
            "targetCycleStartDateISO": "2025-05-11T00:00:00Z",
            "targetCycleEndDateISO": "2025-06-11T23:59:59Z",
            "frequencyType": "DAILY",
            "trackingType": "DEFAULT",
            "createdOn": 1763976237000,
            "targets": [
                {
                    "id": 3018,
                    "attribution": {
                        "createdOn": "2025-11-24T09:23:57.000+0000",
                        "createdOnISO": "2025-11-24T09:23:57Z",
                        "lastUpdatedOn": "2025-11-24T09:23:57.000+0000",
                        "lastUpdatedOnISO": "2025-11-24T09:23:57Z",
                        "lastUpdatedBy": {
                            "id": 75152721,
                            "code": "tom_doc",
                            "description": "",
                            "name": "tom",
                            "type": "TILL"
                        },
                        "createdBy": {
                            "id": 75152721,
                            "code": "tom_doc",
                            "description": "",
                            "name": "tom",
                            "type": "TILL"
                        }
                    },
                    "name": "uat_target_group_101_update",
                    "emfRuleSetId": 126456403,
                    "targetType": "COUNT",
                    "targetEntity": "EVENT",
                    "eventName": "TransactionAdd",
                    "targetGroupId": 2773,
                    "description": "",
                    "active": true,
                    "expression": "true",
                    "expressionJson": "{\"arity\":\"literal\",\"value\":\"true\",\"type\":\"boolean:primitive\"}",
                    "filters": [],
                    "enrolmentMethod": "IMPORT",
                    "defaultValues": [
                        {
                            "id": 127069,
                            "periodId": 30164,
                            "defaultValue": 1.000
                        },
                        {
                            "id": 127070,
                            "periodId": 30165,
                            "defaultValue": 1.000
                        }
                    ],
                    "targetPeriodDefaultValuesMap": {
                        "30164": {
                            "id": 127069,
                            "periodId": 30164,
                            "defaultValue": 1.000
                        },
                        "30165": {
                            "id": 127070,
                            "periodId": 30165,
                            "defaultValue": 1.000
                        }
                    },
                    "targetMilestoneTriggers": []
                },
                {
                    "id": 3019,
                    "attribution": {
                        "createdOn": "2025-11-24T09:23:57.000+0000",
                        "createdOnISO": "2025-11-24T09:23:57Z",
                        "lastUpdatedOn": "2025-11-24T09:23:57.000+0000",
                        "lastUpdatedOnISO": "2025-11-24T09:23:57Z",
                        "lastUpdatedBy": {
                            "id": 75152721,
                            "code": "tom_doc",
                            "description": "",
                            "name": "tom",
                            "type": "TILL"
                        },
                        "createdBy": {
                            "id": 75152721,
                            "code": "tom_doc",
                            "description": "",
                            "name": "tom",
                            "type": "TILL"
                        }
                    },
                    "name": "uat_target_group_102_2",
                    "emfRuleSetId": 126456404,
                    "targetType": "COUNT",
                    "targetEntity": "EVENT",
                    "eventName": "TransactionAdd",
                    "targetGroupId": 2773,
                    "description": "",
                    "active": true,
                    "expression": "true",
                    "expressionJson": "{\"arity\":\"literal\",\"value\":\"true\",\"type\":\"boolean:primitive\"}",
                    "filters": [],
                    "enrolmentMethod": "IMPORT",
                    "defaultValues": [
                        {
                            "id": 127071,
                            "periodId": 30164,
                            "defaultValue": 1.000
                        },
                        {
                            "id": 127072,
                            "periodId": 30165,
                            "defaultValue": 1.000
                        }
                    ],
                    "targetPeriodDefaultValuesMap": {
                        "30164": {
                            "id": 127071,
                            "periodId": 30164,
                            "defaultValue": 1.000
                        },
                        "30165": {
                            "id": 127072,
                            "periodId": 30165,
                            "defaultValue": 1.000
                        }
                    },
                    "targetMilestoneTriggers": [],
                    "extendedFieldInfo": {
                        "name": "points",
                        "aggregateFunction": "SUM"
                    }
                }
            ],
            "leaderboardEnabled": false,
            "userCreated": false,
            "timeZoneName": "Asia/Kolkata"
        },
        {
            "id": 2771,
            "attribution": {
                "createdOn": "2025-11-20T13:07:49.000+0000",
                "createdOnISO": "2025-11-20T13:07:49Z",
                "lastUpdatedOn": "2025-11-20T13:07:49.000+0000",
                "lastUpdatedOnISO": "2025-11-20T13:07:49Z",
                "lastUpdatedBy": {
                    "id": 75152721,
                    "code": "tom_doc",
                    "description": "",
                    "name": "tom",
                    "type": "TILL"
                },
                "createdBy": {
                    "id": 75152721,
                    "code": "tom_doc",
                    "description": "",
                    "name": "tom",
                    "type": "TILL"
                }
            },
            "orgId": 100737,
            "name": "uatTargetGroup101",
            "active": false,
            "preferredTillId": 751552970000,
            "totalPeriods": 2,
            "description": "UAT target group number hundered and one",
            "targetEvaluationType": "FIXED_CALENDAR_WINDOW",
            "recurringCycles": 1,
            "frequency": 1,
            "targetCycleStartDate": "2025-05-11T00:00:00.000Z",
            "targetCycleEndDate": "2025-06-11T23:59:59.000Z",
            "targetCycleStartDateISO": "2025-05-11T00:00:00Z",
            "targetCycleEndDateISO": "2025-06-11T23:59:59Z",
            "frequencyType": "DAILY",
            "trackingType": "DEFAULT",
            "createdOn": 1763644069000,
            "targets": [
                {
                    "id": 3017,
                    "attribution": {
                        "createdOn": "2025-11-20T13:07:49.000+0000",
                        "createdOnISO": "2025-11-20T13:07:49Z",
                        "lastUpdatedOn": "2025-11-20T13:07:49.000+0000",
                        "lastUpdatedOnISO": "2025-11-20T13:07:49Z",
                        "lastUpdatedBy": {
                            "id": 75152721,
                            "code": "tom_doc",
                            "description": "",
                            "name": "tom",
                            "type": "TILL"
                        },
                        "createdBy": {
                            "id": 75152721,
                            "code": "tom_doc",
                            "description": "",
                            "name": "tom",
                            "type": "TILL"
                        }
                    },
                    "name": "uat_target_group_101",
                    "emfRuleSetId": 126455464,
                    "targetType": "COUNT",
                    "targetEntity": "EVENT",
                    "eventName": "TransactionAdd",
                    "targetGroupId": 2771,
                    "description": "",
                    "active": false,
                    "expression": "true",
                    "expressionJson": "{\"arity\":\"literal\",\"value\":\"true\",\"type\":\"boolean:primitive\"}",
                    "filters": [],
                    "enrolmentMethod": "IMPORT",
                    "defaultValues": [
                        {
                            "id": 127067,
                            "periodId": 30160,
                            "defaultValue": 1.000
                        },
                        {
                            "id": 127068,
                            "periodId": 30161,
                            "defaultValue": 1.000
                        }
                    ],
                    "targetPeriodDefaultValuesMap": {
                        "30160": {
                            "id": 127067,
                            "periodId": 30160,
                            "defaultValue": 1.000
                        },
                        "30161": {
                            "id": 127068,
                            "periodId": 30161,
                            "defaultValue": 1.000
                        }
                    },
                    "targetMilestoneTriggers": [],
                    "extendedFieldInfo": {
                        "name": "points",
                        "aggregateFunction": "SUM"
                    }
                }
            ],
            "leaderboardEnabled": false,
            "userCreated": false,
            "timeZoneName": "Asia/Kolkata"
        },
        {
            "id": 2770,
            "attribution": {
                "createdOn": "2025-11-20T13:04:51.000+0000",
                "createdOnISO": "2025-11-20T13:04:51Z",
                "lastUpdatedOn": "2025-11-20T13:04:51.000+0000",
                "lastUpdatedOnISO": "2025-11-20T13:04:51Z",
                "lastUpdatedBy": {
                    "id": 75152721,
                    "code": "tom_doc",
                    "description": "",
                    "name": "tom",
                    "type": "TILL"
                },
                "createdBy": {
                    "id": 75152721,
                    "code": "tom_doc",
                    "description": "",
                    "name": "tom",
                    "type": "TILL"
                }
            },
            "orgId": 100737,
            "name": "uatTargetGroup100",
            "active": false,
            "preferredTillId": 751552970000,
            "totalPeriods": 2,
            "description": "UAT target group number hundered",
            "targetEvaluationType": "FIXED_CALENDAR_WINDOW",
            "recurringCycles": 1,
            "frequency": 1,
            "targetCycleStartDate": "2025-05-11T00:00:00.000Z",
            "targetCycleEndDate": "2025-06-11T23:59:59.000Z",
            "targetCycleStartDateISO": "2025-05-11T00:00:00Z",
            "targetCycleEndDateISO": "2025-06-11T23:59:59Z",
            "frequencyType": "DAILY",
            "trackingType": "DEFAULT",
            "createdOn": 1763643891000,
            "targets": [
                {
                    "id": 3016,
                    "attribution": {
                        "createdOn": "2025-11-20T13:04:51.000+0000",
                        "createdOnISO": "2025-11-20T13:04:51Z",
                        "lastUpdatedOn": "2025-11-20T13:04:51.000+0000",
                        "lastUpdatedOnISO": "2025-11-20T13:04:51Z",
                        "lastUpdatedBy": {
                            "id": 75152721,
                            "code": "tom_doc",
                            "description": "",
                            "name": "tom",
                            "type": "TILL"
                        },
                        "createdBy": {
                            "id": 75152721,
                            "code": "tom_doc",
                            "description": "",
                            "name": "tom",
                            "type": "TILL"
                        }
                    },
                    "name": "uat_target_group_100",
                    "emfRuleSetId": 126455463,
                    "targetType": "COUNT",
                    "targetEntity": "EVENT",
                    "eventName": "TransactionAdd",
                    "targetGroupId": 2770,
                    "description": "",
                    "active": false,
                    "expression": "true",
                    "expressionJson": "{\"arity\":\"literal\",\"value\":\"true\",\"type\":\"boolean:primitive\"}",
                    "filters": [],
                    "enrolmentMethod": "IMPORT",
                    "defaultValues": [
                        {
                            "id": 127065,
                            "periodId": 30158,
                            "defaultValue": 1.000
                        },
                        {
                            "id": 127066,
                            "periodId": 30159,
                            "defaultValue": 1.000
                        }
                    ],
                    "targetPeriodDefaultValuesMap": {
                        "30158": {
                            "id": 127065,
                            "periodId": 30158,
                            "defaultValue": 1.000
                        },
                        "30159": {
                            "id": 127066,
                            "periodId": 30159,
                            "defaultValue": 1.000
                        }
                    },
                    "targetMilestoneTriggers": [],
                    "extendedFieldInfo": {
                        "name": "points",
                        "aggregateFunction": "SUM"
                    }
                }
            ],
            "leaderboardEnabled": false,
            "userCreated": false,
            "timeZoneName": "GMT"
        },
        {
            "id": 2769,
            "attribution": {
                "createdOn": "2025-11-20T12:22:20.000+0000",
                "createdOnISO": "2025-11-20T12:22:20Z",
                "lastUpdatedOn": "2025-11-20T12:22:20.000+0000",
                "lastUpdatedOnISO": "2025-11-20T12:22:20Z",
                "lastUpdatedBy": {
                    "id": 75152721,
                    "code": "tom_doc",
                    "description": "",
                    "name": "tom",
                    "type": "TILL"
                },
                "createdBy": {
                    "id": 75152721,
                    "code": "tom_doc",
                    "description": "",
                    "name": "tom",
                    "type": "TILL"
                }
            },
            "orgId": 100737,
            "name": "uatUnifiedTargetGroup60",
            "active": false,
            "preferredTillId": 75155297,
            "totalPeriods": 1,
            "description": "Unified Target Group number 2 for UAT purpose",
            "targetEvaluationType": "FIXED_CALENDAR_WINDOW",
            "recurringCycles": 0,
            "frequency": 0,
            "targetCycleStartDate": "2025-07-09T00:00:00.000Z",
            "targetCycleEndDate": "2025-07-12T23:59:59.000Z",
            "targetCycleStartDateISO": "2025-07-09T00:00:00Z",
            "targetCycleEndDateISO": "2025-07-12T23:59:59Z",
            "frequencyType": "CUSTOM",
            "trackingType": "UNIFIED",
            "createdOn": 1763641340000,
            "targets": [
                {
                    "id": 3014,
                    "attribution": {
                        "createdOn": "2025-11-20T12:22:20.000+0000",
                        "createdOnISO": "2025-11-20T12:22:20Z",
                        "lastUpdatedOn": "2025-11-20T12:22:20.000+0000",
                        "lastUpdatedOnISO": "2025-11-20T12:22:20Z",
                        "lastUpdatedBy": {
                            "id": 75152721,
                            "code": "tom_doc",
                            "description": "",
                            "name": "tom",
                            "type": "TILL"
                        },
                        "createdBy": {
                            "id": 75152721,
                            "code": "tom_doc",
                            "description": "",
                            "name": "tom",
                            "type": "TILL"
                        }
                    },
                    "name": "uatUnifiedTarget90",
                    "emfRuleSetId": 126455453,
                    "targetType": "SALES",
                    "targetEntity": "TRANSACTION",
                    "eventName": "TransactionAdd",
                    "targetGroupId": 2769,
                    "description": "uatUnifiedTarget90",
                    "active": false,
                    "expression": "currentTxn.value>500",
                    "expressionJson": "{\"arity\":\"binary_operation\",\"value\":\">\",\"type\":\"boolean:primitive\",\"operands\":[{\"arity\":\"object_dereference\",\"type\":\"real:object:primitive\",\"operands\":[{\"arity\":\"name\",\"value\":\"currentTxn\",\"type\":\"tx:object:primitive\"},{\"arity\":\"name\",\"value\":\"value\",\"type\":\"real:object:primitive\"}]},{\"arity\":\"literal\",\"value\":\"500\",\"type\":\"number:primitive\"}]}",
                    "enrolmentMethod": "TRANSACTION",
                    "defaultValues": [
                        {
                            "id": 127063,
                            "periodId": 30157,
                            "defaultValue": 2000.000
                        }
                    ],
                    "targetPeriodDefaultValuesMap": {
                        "30157": {
                            "id": 127063,
                            "periodId": 30157,
                            "defaultValue": 2000.000
                        }
                    },
                    "targetMilestoneTriggers": []
                },
                {
                    "id": 3015,
                    "attribution": {
                        "createdOn": "2025-11-20T12:22:20.000+0000",
                        "createdOnISO": "2025-11-20T12:22:20Z",
                        "lastUpdatedOn": "2025-11-20T12:22:20.000+0000",
                        "lastUpdatedOnISO": "2025-11-20T12:22:20Z",
                        "lastUpdatedBy": {
                            "id": 75152721,
                            "code": "tom_doc",
                            "description": "",
                            "name": "tom",
                            "type": "TILL"
                        },
                        "createdBy": {
                            "id": 75152721,
                            "code": "tom_doc",
                            "description": "",
                            "name": "tom",
                            "type": "TILL"
                        }
                    },
                    "name": "uatUnifiedTarget91",
                    "emfRuleSetId": 126455454,
                    "targetType": "SALES",
                    "targetEntity": "TRANSACTION",
                    "eventName": "TransactionAdd",
                    "targetGroupId": 2769,
                    "description": "uatUnifiedTarget91",
                    "active": false,
                    "expression": "currentTxn.value>500",
                    "expressionJson": "{\"arity\":\"literal\",\"value\":\"true\",\"type\":\"boolean:primitive\"}",
                    "enrolmentMethod": "TRANSACTION",
                    "defaultValues": [
                        {
                            "id": 127064,
                            "periodId": 30157,
                            "defaultValue": 2000.000
                        }
                    ],
                    "targetPeriodDefaultValuesMap": {
                        "30157": {
                            "id": 127064,
                            "periodId": 30157,
                            "defaultValue": 2000.000
                        }
                    },
                    "targetMilestoneTriggers": []
                }
            ],
            "combinationType": "ALL",
            "unifiedTargetExpression": {
                "aggregation": "SUM",
                "thresholdValue": 5000,
                "ruleExpression": "(3014 & 3015)"
            },
            "leaderboardEnabled": false,
            "userCreated": false,
            "timeZoneName": "GMT"
        },
        {
            "id": 2768,
            "attribution": {
                "createdOn": "2025-11-20T12:12:47.000+0000",
                "createdOnISO": "2025-11-20T12:12:47Z",
                "lastUpdatedOn": "2025-11-20T12:12:47.000+0000",
                "lastUpdatedOnISO": "2025-11-20T12:12:47Z",
                "lastUpdatedBy": {
                    "id": 75152721,
                    "code": "tom_doc",
                    "description": "",
                    "name": "tom",
                    "type": "TILL"
                },
                "createdBy": {
                    "id": 75152721,
                    "code": "tom_doc",
                    "description": "",
                    "name": "tom",
                    "type": "TILL"
                }
            },
            "orgId": 100737,
            "name": "uatTargetGroup92",
            "active": false,
            "preferredTillId": 751552970000,
            "totalPeriods": 1,
            "description": "UAT target group number ninety two",
            "targetEvaluationType": "FIXED_CALENDAR_WINDOW",
            "recurringCycles": 1,
            "frequency": 1,
            "targetCycleStartDate": "2025-06-11T00:00:00.000Z",
            "targetCycleEndDate": "2025-06-11T23:59:59.000Z",
            "targetCycleStartDateISO": "2025-06-11T00:00:00Z",
            "targetCycleEndDateISO": "2025-06-11T23:59:59Z",
            "frequencyType": "DAILY",
            "trackingType": "DEFAULT",
            "createdOn": 1763640767000,
            "targets": [
                {
                    "id": 3013,
                    "attribution": {
                        "createdOn": "2025-11-20T12:12:47.000+0000",
                        "createdOnISO": "2025-11-20T12:12:47Z",
                        "lastUpdatedOn": "2025-11-20T12:12:47.000+0000",
                        "lastUpdatedOnISO": "2025-11-20T12:12:47Z",
                        "lastUpdatedBy": {
                            "id": 75152721,
                            "code": "tom_doc",
                            "description": "",
                            "name": "tom",
                            "type": "TILL"
                        },
                        "createdBy": {
                            "id": 75152721,
                            "code": "tom_doc",
                            "description": "",
                            "name": "tom",
                            "type": "TILL"
                        }
                    },
                    "name": "uat_target_group_92",
                    "emfRuleSetId": 126455452,
                    "targetType": "COUNT",
                    "targetEntity": "TRANSACTION",
                    "eventName": "TransactionAdd",
                    "targetGroupId": 2768,
                    "description": "",
                    "active": false,
                    "expression": "true",
                    "expressionJson": "{\"arity\":\"literal\",\"value\":\"true\",\"type\":\"boolean:primitive\"}",
                    "filters": [],
                    "enrolmentMethod": "IMPORT",
                    "defaultValues": [
                        {
                            "id": 127062,
                            "periodId": 30156,
                            "defaultValue": 1.000
                        }
                    ],
                    "targetPeriodDefaultValuesMap": {
                        "30156": {
                            "id": 127062,
                            "periodId": 30156,
                            "defaultValue": 1.000
                        }
                    },
                    "targetMilestoneTriggers": []
                }
            ],
            "leaderboardEnabled": false,
            "userCreated": false,
            "timeZoneName": "America/New_York"
        },
        {
            "id": 2767,
            "attribution": {
                "createdOn": "2025-11-20T10:22:34.000+0000",
                "createdOnISO": "2025-11-20T10:22:34Z",
                "lastUpdatedOn": "2025-11-20T10:22:34.000+0000",
                "lastUpdatedOnISO": "2025-11-20T10:22:34Z",
                "lastUpdatedBy": {
                    "id": 75152721,
                    "code": "tom_doc",
                    "description": "",
                    "name": "tom",
                    "type": "TILL"
                },
                "createdBy": {
                    "id": 75152721,
                    "code": "tom_doc",
                    "description": "",
                    "name": "tom",
                    "type": "TILL"
                }
            },
            "orgId": 100737,
            "name": "uatTargetGroup91",
            "active": true,
            "preferredTillId": 751552970000,
            "totalPeriods": 2,
            "description": "UAT target group number ninety one",
            "targetEvaluationType": "FIXED_CALENDAR_WINDOW",
            "recurringCycles": 1,
            "frequency": 1,
            "targetCycleStartDate": "2025-06-11T00:00:00.000Z",
            "targetCycleEndDate": "2025-06-11T23:59:59.000Z",
            "targetCycleStartDateISO": "2025-06-11T00:00:00Z",
            "targetCycleEndDateISO": "2025-06-11T23:59:59Z",
            "frequencyType": "DAILY",
            "trackingType": "DEFAULT",
            "createdOn": 1763634154000,
            "targets": [
                {
                    "id": 3011,
                    "attribution": {
                        "createdOn": "2025-11-20T10:22:34.000+0000",
                        "createdOnISO": "2025-11-20T10:22:34Z",
                        "lastUpdatedOn": "2025-11-20T10:22:34.000+0000",
                        "lastUpdatedOnISO": "2025-11-20T10:22:34Z",
                        "lastUpdatedBy": {
                            "id": 75152721,
                            "code": "tom_doc",
                            "description": "",
                            "name": "tom",
                            "type": "TILL"
                        },
                        "createdBy": {
                            "id": 75152721,
                            "code": "tom_doc",
                            "description": "",
                            "name": "tom",
                            "type": "TILL"
                        }
                    },
                    "name": "uat_target_group_91",
                    "emfRuleSetId": 126455423,
                    "targetType": "COUNT",
                    "targetEntity": "TRANSACTION",
                    "eventName": "TransactionAdd",
                    "targetGroupId": 2767,
                    "description": "",
                    "active": true,
                    "expression": "true",
                    "expressionJson": "{\"arity\":\"literal\",\"value\":\"true\",\"type\":\"boolean:primitive\"}",
                    "filters": [],
                    "enrolmentMethod": "IMPORT",
                    "defaultValues": [
                        {
                            "id": 127059,
                            "periodId": 30154,
                            "defaultValue": 1.000
                        }
                    ],
                    "targetPeriodDefaultValuesMap": {
                        "30154": {
                            "id": 127059,
                            "periodId": 30154,
                            "defaultValue": 1.000
                        }
                    },
                    "targetMilestoneTriggers": []
                },
                {
                    "id": 3012,
                    "attribution": {
                        "createdOn": "2025-11-20T11:36:14.000+0000",
                        "createdOnISO": "2025-11-20T11:36:14Z",
                        "lastUpdatedOn": "2025-11-20T11:36:14.000+0000",
                        "lastUpdatedOnISO": "2025-11-20T11:36:14Z",
                        "lastUpdatedBy": {
                            "id": 75152721,
                            "code": "tom_doc",
                            "description": "",
                            "name": "tom",
                            "type": "TILL"
                        },
                        "createdBy": {
                            "id": 75152721,
                            "code": "tom_doc",
                            "description": "",
                            "name": "tom",
                            "type": "TILL"
                        }
                    },
                    "name": "targetOneUnderGroup50",
                    "emfRuleSetId": 126455443,
                    "emfUnrolledRulesetId": 126455442,
                    "targetType": "SALES",
                    "targetEntity": "LINEITEM",
                    "eventName": "TransactionAdd",
                    "targetGroupId": 2767,
                    "description": "Target one under target group 50",
                    "active": false,
                    "expression": "true",
                    "expressionJson": "{\"arity\":\"literal\",\"value\":\"true\",\"type\":\"boolean:primitive\"}",
                    "filters": [
                        {
                            "entityType": "ZONE",
                            "entityIds": [
                                0
                            ]
                        }
                    ],
                    "enrolmentMethod": "TRANSACTION",
                    "defaultValues": [
                        {
                            "id": 127060,
                            "periodId": 30154,
                            "defaultValue": 110.000
                        },
                        {
                            "id": 127061,
                            "periodId": 30155,
                            "defaultValue": 110.000
                        }
                    ],
                    "targetPeriodDefaultValuesMap": {
                        "30154": {
                            "id": 127060,
                            "periodId": 30154,
                            "defaultValue": 110.000
                        },
                        "30155": {
                            "id": 127061,
                            "periodId": 30155,
                            "defaultValue": 110.000
                        }
                    },
                    "targetMilestoneTriggers": []
                }
            ],
            "leaderboardEnabled": false,
            "userCreated": false,
            "timeZoneName": "America/New_York"
        },
        {
            "id": 2766,
            "attribution": {
                "createdOn": "2025-11-20T09:13:51.000+0000",
                "createdOnISO": "2025-11-20T09:13:51Z",
                "lastUpdatedOn": "2025-11-20T09:13:51.000+0000",
                "lastUpdatedOnISO": "2025-11-20T09:13:51Z",
                "lastUpdatedBy": {
                    "id": 75152721,
                    "code": "tom_doc",
                    "description": "",
                    "name": "tom",
                    "type": "TILL"
                },
                "createdBy": {
                    "id": 75152721,
                    "code": "tom_doc",
                    "description": "",
                    "name": "tom",
                    "type": "TILL"
                }
            },
            "orgId": 100737,
            "name": "uatTargetGroup90",
            "active": false,
            "preferredTillId": 75155297,
            "totalPeriods": 1,
            "description": "description update number 3",
            "targetEvaluationType": "FIXED_CALENDAR_WINDOW",
            "recurringCycles": 1,
            "frequency": 1,
            "targetCycleStartDate": "2025-06-11T00:00:00.000Z",
            "targetCycleEndDate": "2025-06-11T23:59:59.000Z",
            "targetCycleStartDateISO": "2025-06-11T00:00:00Z",
            "targetCycleEndDateISO": "2025-06-11T23:59:59Z",
            "frequencyType": "DAILY",
            "trackingType": "DEFAULT",
            "createdOn": 1763630031000,
            "targets": [
                {
                    "id": 3010,
                    "attribution": {
                        "createdOn": "2025-11-20T06:49:45.000+0000",
                        "createdOnISO": "2025-11-20T06:49:45Z",
                        "lastUpdatedOn": "2025-11-20T06:49:45.000+0000",
                        "lastUpdatedOnISO": "2025-11-20T06:49:45Z",
                        "lastUpdatedBy": {
                            "id": 75152721,
                            "code": "tom_doc",
                            "description": "",
                            "name": "tom",
                            "type": "TILL"
                        },
                        "createdBy": {
                            "id": 75152721,
                            "code": "tom_doc",
                            "description": "",
                            "name": "tom",
                            "type": "TILL"
                        }
                    },
                    "name": "uat_target_group_90",
                    "emfRuleSetId": 126455378,
                    "targetType": "COUNT",
                    "targetEntity": "TRANSACTION",
                    "eventName": "TransactionAdd",
                    "targetGroupId": 2766,
                    "description": "",
                    "active": false,
                    "expression": "true",
                    "expressionJson": "{\"arity\":\"literal\",\"value\":\"true\",\"type\":\"boolean:primitive\"}",
                    "filters": [],
                    "enrolmentMethod": "IMPORT",
                    "defaultValues": [
                        {
                            "id": 127058,
                            "periodId": 30153,
                            "defaultValue": 1.000
                        }
                    ],
                    "targetPeriodDefaultValuesMap": {
                        "30153": {
                            "id": 127058,
                            "periodId": 30153,
                            "defaultValue": 1.000
                        }
                    },
                    "targetMilestoneTriggers": []
                }
            ],
            "leaderboardEnabled": false,
            "userCreated": false,
            "timeZoneName": "America/New_York"
        },
        {
            "id": 2765,
            "attribution": {
                "createdOn": "2025-11-20T06:48:43.000+0000",
                "createdOnISO": "2025-11-20T06:48:43Z",
                "lastUpdatedOn": "2025-11-20T06:48:43.000+0000",
                "lastUpdatedOnISO": "2025-11-20T06:48:43Z",
                "lastUpdatedBy": {
                    "id": 75152721,
                    "code": "tom_doc",
                    "description": "",
                    "name": "tom",
                    "type": "TILL"
                },
                "createdBy": {
                    "id": 75152721,
                    "code": "tom_doc",
                    "description": "",
                    "name": "tom",
                    "type": "TILL"
                }
            },
            "orgId": 100737,
            "name": "uatTargetGroup84",
            "active": false,
            "preferredTillId": 75155297,
            "totalPeriods": 1,
            "description": "description update number 3",
            "targetEvaluationType": "FIXED_CALENDAR_WINDOW",
            "recurringCycles": 1,
            "frequency": 1,
            "targetCycleStartDate": "2025-06-11T00:00:00.000Z",
            "targetCycleEndDate": "2025-06-11T23:59:59.000Z",
            "targetCycleStartDateISO": "2025-06-11T00:00:00Z",
            "targetCycleEndDateISO": "2025-06-11T23:59:59Z",
            "frequencyType": "DAILY",
            "trackingType": "DEFAULT",
            "createdOn": 1763621323000,
            "targets": [
                {
                    "id": 3009,
                    "attribution": {
                        "createdOn": "2025-11-20T06:47:21.000+0000",
                        "createdOnISO": "2025-11-20T06:47:21Z",
                        "lastUpdatedOn": "2025-11-20T06:47:21.000+0000",
                        "lastUpdatedOnISO": "2025-11-20T06:47:21Z",
                        "lastUpdatedBy": {
                            "id": 75152721,
                            "code": "tom_doc",
                            "description": "",
                            "name": "tom",
                            "type": "TILL"
                        },
                        "createdBy": {
                            "id": 75152721,
                            "code": "tom_doc",
                            "description": "",
                            "name": "tom",
                            "type": "TILL"
                        }
                    },
                    "name": "uat_target_group_84",
                    "emfRuleSetId": 126455377,
                    "targetType": "COUNT",
                    "targetEntity": "TRANSACTION",
                    "eventName": "TransactionAdd",
                    "targetGroupId": 2765,
                    "description": "",
                    "active": false,
                    "expression": "true",
                    "expressionJson": "{\"arity\":\"literal\",\"value\":\"true\",\"type\":\"boolean:primitive\"}",
                    "filters": [],
                    "enrolmentMethod": "IMPORT",
                    "defaultValues": [
                        {
                            "id": 127057,
                            "periodId": 30152,
                            "defaultValue": 1.000
                        }
                    ],
                    "targetPeriodDefaultValuesMap": {
                        "30152": {
                            "id": 127057,
                            "periodId": 30152,
                            "defaultValue": 1.000
                        }
                    },
                    "targetMilestoneTriggers": []
                }
            ],
            "leaderboardEnabled": false,
            "userCreated": false,
            "timeZoneName": "Asia/Kolkata"
        },
        {
            "id": 2764,
            "attribution": {
                "createdOn": "2025-11-20T06:12:19.000+0000",
                "createdOnISO": "2025-11-20T06:12:19Z",
                "lastUpdatedOn": "2025-11-20T06:12:19.000+0000",
                "lastUpdatedOnISO": "2025-11-20T06:12:19Z",
                "lastUpdatedBy": {
                    "id": 75152721,
                    "code": "tom_doc",
                    "description": "",
                    "name": "tom",
                    "type": "TILL"
                },
                "createdBy": {
                    "id": 75152721,
                    "code": "tom_doc",
                    "description": "",
                    "name": "tom",
                    "type": "TILL"
                }
            },
            "orgId": 100737,
            "name": "uatTargetGroup82",
            "active": false,
            "preferredTillId": 751552970000,
            "totalPeriods": 1,
            "description": "UAT target group number eighty two",
            "targetEvaluationType": "FIXED_CALENDAR_WINDOW",
            "recurringCycles": 1,
            "frequency": 1,
            "targetCycleStartDate": "2025-06-11T00:00:00.000Z",
            "targetCycleEndDate": "2025-06-11T23:59:59.000Z",
            "targetCycleStartDateISO": "2025-06-11T00:00:00Z",
            "targetCycleEndDateISO": "2025-06-11T23:59:59Z",
            "frequencyType": "DAILY",
            "trackingType": "DEFAULT",
            "createdOn": 1763619139000,
            "targets": [
                {
                    "id": 3008,
                    "attribution": {
                        "createdOn": "2025-11-20T06:12:19.000+0000",
                        "createdOnISO": "2025-11-20T06:12:19Z",
                        "lastUpdatedOn": "2025-11-20T06:12:19.000+0000",
                        "lastUpdatedOnISO": "2025-11-20T06:12:19Z",
                        "lastUpdatedBy": {
                            "id": 75152721,
                            "code": "tom_doc",
                            "description": "",
                            "name": "tom",
                            "type": "TILL"
                        },
                        "createdBy": {
                            "id": 75152721,
                            "code": "tom_doc",
                            "description": "",
                            "name": "tom",
                            "type": "TILL"
                        }
                    },
                    "name": "uat_target_group_82",
                    "emfRuleSetId": 126455370,
                    "targetType": "COUNT",
                    "targetEntity": "TRANSACTION",
                    "eventName": "TransactionAdd",
                    "targetGroupId": 2764,
                    "description": "",
                    "active": false,
                    "expression": "true",
                    "expressionJson": "{\"arity\":\"literal\",\"value\":\"true\",\"type\":\"boolean:primitive\"}",
                    "filters": [],
                    "enrolmentMethod": "IMPORT",
                    "defaultValues": [
                        {
                            "id": 127056,
                            "periodId": 30151,
                            "defaultValue": 1.000
                        }
                    ],
                    "targetPeriodDefaultValuesMap": {
                        "30151": {
                            "id": 127056,
                            "periodId": 30151,
                            "defaultValue": 1.000
                        }
                    },
                    "targetMilestoneTriggers": []
                }
            ],
            "leaderboardEnabled": false,
            "userCreated": false,
            "timeZoneName": "Asia/Kolkata"
        },
        {
            "id": 2763,
            "attribution": {
                "createdOn": "2025-11-18T13:33:09.000+0000",
                "createdOnISO": "2025-11-18T13:33:09Z",
                "lastUpdatedOn": "2025-11-18T13:33:09.000+0000",
                "lastUpdatedOnISO": "2025-11-18T13:33:09Z",
                "lastUpdatedBy": {
                    "id": 75152721,
                    "code": "tom_doc",
                    "description": "",
                    "name": "tom",
                    "type": "TILL"
                },
                "createdBy": {
                    "id": 75152721,
                    "code": "tom_doc",
                    "description": "",
                    "name": "tom",
                    "type": "TILL"
                }
            },
            "orgId": 100737,
            "name": "uatTargetGroup81",
            "active": false,
            "preferredTillId": 751552970000,
            "totalPeriods": 2,
            "description": "UAT target group number eighty one",
            "targetEvaluationType": "FIXED_CALENDAR_WINDOW",
            "recurringCycles": 1,
            "frequency": 1,
            "targetCycleStartDate": "2025-05-11T00:00:00.000Z",
            "targetCycleEndDate": "2025-06-11T23:59:59.000Z",
            "targetCycleStartDateISO": "2025-05-11T00:00:00Z",
            "targetCycleEndDateISO": "2025-06-11T23:59:59Z",
            "frequencyType": "DAILY",
            "trackingType": "DEFAULT",
            "createdOn": 1763472789000,
            "targets": [
                {
                    "id": 3007,
                    "attribution": {
                        "createdOn": "2025-11-18T13:33:09.000+0000",
                        "createdOnISO": "2025-11-18T13:33:09Z",
                        "lastUpdatedOn": "2025-11-18T13:33:09.000+0000",
                        "lastUpdatedOnISO": "2025-11-18T13:33:09Z",
                        "lastUpdatedBy": {
                            "id": 75152721,
                            "code": "tom_doc",
                            "description": "",
                            "name": "tom",
                            "type": "TILL"
                        },
                        "createdBy": {
                            "id": 75152721,
                            "code": "tom_doc",
                            "description": "",
                            "name": "tom",
                            "type": "TILL"
                        }
                    },
                    "name": "uat_target_group_81",
                    "emfRuleSetId": 126454891,
                    "targetType": "COUNT",
                    "targetEntity": "EVENT",
                    "eventName": "TransactionAdd",
                    "targetGroupId": 2763,
                    "description": "",
                    "active": false,
                    "expression": "true",
                    "expressionJson": "{\"arity\":\"literal\",\"value\":\"true\",\"type\":\"boolean:primitive\"}",
                    "filters": [],
                    "enrolmentMethod": "IMPORT",
                    "defaultValues": [
                        {
                            "id": 127054,
                            "periodId": 30149,
                            "defaultValue": 1.000
                        },
                        {
                            "id": 127055,
                            "periodId": 30150,
                            "defaultValue": 1.000
                        }
                    ],
                    "targetPeriodDefaultValuesMap": {
                        "30149": {
                            "id": 127054,
                            "periodId": 30149,
                            "defaultValue": 1.000
                        },
                        "30150": {
                            "id": 127055,
                            "periodId": 30150,
                            "defaultValue": 1.000
                        }
                    },
                    "targetMilestoneTriggers": [],
                    "extendedFieldInfo": {
                        "name": "points",
                        "aggregateFunction": "SUM"
                    }
                }
            ],
            "leaderboardEnabled": false,
            "userCreated": false,
            "timeZoneName": "GMT"
        }
    ],
    "errors": [],
    "warnings": []
}
{
            "id": 39536,
            "attribution": {
                "createdOn": "2024-08-26T13:08:58.000+0530",
                "lastUpdatedOn": "2024-08-26T13:08:58.000+0530",
                "lastUpdatedBy": {
                    "id": 50691660,
                    "code": "adm01",
                    "description": "",
                    "name": "adm01",
                    "type": "TILL"
                },
                "createdBy": {
                    "id": 50691660,
                    "code": "adm01",
                    "description": "",
                    "name": "adm01",
                    "type": "TILL"
                }
            },
            "name": "Fixed Window Milestone Group 1724657937",
            "active": true,
            "preferredTillId": 50692189,
            "activePeriod": {
                "id": 55434,
                "attribution": {
                    "createdOn": "2024-08-26T12:50:11.000+0530",
                    "lastUpdatedOn": "2024-08-26T12:50:11.000+0530",
                    "lastUpdatedBy": {
                        "id": 50691660,
                        "code": "adm01",
                        "description": "",
                        "name": "adm01",
                        "type": "TILL"
                    },
                    "createdBy": {
                        "id": 50691660,
                        "code": "adm01",
                        "description": "",
                        "name": "adm01",
                        "type": "TILL"
                    }
                },
                "startDate": "2024-08-20",
                "endDate": "2024-09-19",
                "refCode": "TP1",
                "periodStatus": "RUNNING",
                "targetGroupId": 39536,
                "active": true
            },
            "totalPeriods": 2,
            "description": "test via postman",
            "targetEvaluationType": "FIXED_CALENDAR_WINDOW",
            "recurringCycles": -1,
            "frequency": 0,
            "targetCycleStartDate": "2024-08-20T08:42:01.000Z",
            "targetCycleEndDate": "2024-10-20T08:42:01.000Z",
            "frequencyType": "MONTHLY",
            "trackingType": "DEFAULT",
            "createdOn": 1724657938000,
            "targets": [
                {
                    "id": 71087,
                    "attribution": {
                        "createdOn": "2024-08-26T12:50:11.000+0530",
                        "lastUpdatedOn": "2024-08-26T12:50:11.000+0530",
                        "lastUpdatedBy": {
                            "id": 50691660,
                            "code": "adm01",
                            "description": "",
                            "name": "adm01",
                            "type": "TILL"
                        },
                        "createdBy": {
                            "id": 50691660,
                            "code": "adm01",
                            "description": "",
                            "name": "adm01",
                            "type": "TILL"
                        }
                    },
                    "name": "target-2024-08-26T07:20:09.894Z",
                    "emfRuleSetId": 1334912,
                    "targetType": "COUNT",
                    "targetEntity": "EVENT",
                    "eventName": "TransactionAdd",
                    "targetGroupId": 39536,
                    "description": "targetf",
                    "active": true,
                    "expression": "true",
                    "expressionJson": "{\"arity\":\"literal\",\"value\":\"true\",\"type\":\"boolean:primitive\"}",
                    "enrolmentMethod": "IMPORT",
                    "defaultValues": [
                        {
                            "id": 96664,
                            "periodId": 55434,
                            "defaultValue": 500.000
                        },
                        {
                            "id": 96665,
                            "periodId": 55435,
                            "defaultValue": 500.000
                        }
                    ],
                    "targetPeriodDefaultValuesMap": {
                        "55434": {
                            "id": 96664,
                            "periodId": 55434,
                            "defaultValue": 500.000
                        },
                        "55435": {
                            "id": 96665,
                            "periodId": 55435,
                            "defaultValue": 500.000
                        }
                    },
                    "extendedFieldInfo": {
                        "name": "cartId",
                        "aggregateFunction": "SUM",
                        "aggregateWindow": null
                    },
                    "targetMilestoneTriggers": []
                }
            ],
            "userCreated": true
        }
  ],
    "errors": null,
    "warnings": null
}
 
{
  "pagination": {
    "limit": 10,
    "offset": 0,
    "total": 2
  },
  "data": [
    {
      "id": 48825,
      "attribution": {
        "createdOn": "2024-07-31T11:32:41.000+0000",
        "lastUpdatedOn": "2024-07-31T11:32:41.000+0000",
        "lastUpdatedBy": {
          "id": 50145093,
          "code": "default.till.pyapps1695382050",
          "description": "default.till.pyapps1695382050",
          "name": "default.till.pyapps1695382050",
          "type": "TILL"
        },
        "createdBy": {
          "id": 50145093,
          "code": "default.till.pyapps1695382050",
          "description": "default.till.pyapps1695382050",
          "name": "default.till.pyapps1695382050",
          "type": "TILL"
        }
      },
      "name": "TG_2024-07-31T17:02:41.041113Z",
      "active": true,
      "preferredTillId": 50145093,
      "periods": [
        {
          "id": 62128,
          "attribution": {
            "createdOn": "2024-07-31T11:32:41.000+0000",
            "lastUpdatedOn": "2024-07-31T11:32:41.000+0000",
            "lastUpdatedBy": {
              "id": 50145093,
              "code": "default.till.pyapps1695382050",
              "description": "default.till.pyapps1695382050",
              "name": "default.till.pyapps1695382050",
              "type": "TILL"
            },
            "createdBy": {
              "id": 50145093,
              "code": "default.till.pyapps1695382050",
              "description": "default.till.pyapps1695382050",
              "name": "default.till.pyapps1695382050",
              "type": "TILL"
            }
          },
          "startDate": "2024-07-31",
          "endDate": "2024-08-10",
          "refCode": "TestPeriod",
          "periodStatus": "RUNNING",
          "targetGroupId": 48825,
          "description": "Period No. 1",
          "active": true
        }
      ],
      "activePeriod": {
        "id": 62128,
        "attribution": {
          "createdOn": "2024-07-31T11:32:41.000+0000",
          "lastUpdatedOn": "2024-07-31T11:32:41.000+0000",
          "lastUpdatedBy": {
            "id": 50145093,
            "code": "default.till.pyapps1695382050",
            "description": "default.till.pyapps1695382050",
            "name": "default.till.pyapps1695382050",
            "type": "TILL"
          },
          "createdBy": {
            "id": 50145093,
            "code": "default.till.pyapps1695382050",
            "description": "default.till.pyapps1695382050",
            "name": "default.till.pyapps1695382050",
            "type": "TILL"
          }
        },
        "startDate": "2024-07-31",
        "endDate": "2024-08-10",
        "refCode": "TestPeriod",
        "periodStatus": "RUNNING",
        "targetGroupId": 48825,
        "description": "Period No. 1",
        "active": true
      },
      "totalPeriods": 1,
      "description": "New target group",
      "targetEvaluationType": "FIXED_CALENDAR_WINDOW",
      "recurringCycles": -1,
      "frequency": 0,
      "targetCycleStartDate": "2024-07-31T11:32:41.000Z",
      "targetCycleEndDate": "2029-07-31T11:32:41.000Z",
      "frequencyType": "CUSTOM",
      "trackingType": "CAPPING",
      "createdOn": 1722425561000,
      "targets": [
        {
          "id": 104296,
          "attribution": {
            "createdOn": "2024-07-31T11:32:42.000+0000",
            "lastUpdatedOn": "2024-07-31T11:32:42.000+0000",
            "lastUpdatedBy": {
              "id": 50145093,
              "code": "default.till.pyapps1695382050",
              "description": "default.till.pyapps1695382050",
              "name": "default.till.pyapps1695382050",
              "type": "TILL"
            },
            "createdBy": {
              "id": 50145093,
              "code": "default.till.pyapps1695382050",
              "description": "default.till.pyapps1695382050",
              "name": "default.till.pyapps1695382050",
              "type": "TILL"
            }
          },
          "name": "testTargetFixedWindow_2024-07-31T17:02:41.391797Z",
          "targetType": "SALES",
          "targetEntity": "TRANSACTION",
          "eventName": "TransactionAdd",
          "targetGroupId": 48825,
          "description": "milestone",
          "active": true,
          "expression": "true",
          "expressionJson": "{\"arity\":\"literal\",\"value\":\"true\",\"type\":\"boolean:primitive\"}",
          "filters": [
            {
              "entityType": "STORE",
              "entityIds": []
            }
          ],
          "enrolmentMethod": "AUDIENCE_FILTER",
          "defaultValues": [
            {
              "id": 129407,
              "periodId": 62128,
              "defaultValue": 1.0
            }
          ],
          "targetPeriodDefaultValuesMap": {
            "62128": {
              "id": 129407,
              "periodId": 62128,
              "defaultValue": 1.0
            }
          },
          "targetMilestoneTriggers": [
            {
              "id": 21799,
              "triggerName": "targetAchieved",
              "isActive": true,
              "triggerType": "SYSTEM_TRIGGER",
              "triggerValueType": "PERCENTAGE",
              "triggerValue": 100.0,
              "targetRuleId": 104296
            }
          ],
          "targetAudienceFilter": [
            {
              "audienceGroupId": 200297896,
              "versionId": 200584500,
              "audienceFilterMetaId": 1990,
              "lastUpdatedOn": "2024-07-31T11:32:44.000+0000"
            }
          ]
        }
      ]
    },
    {
      "id": 48824,
      "attribution": {
        "createdOn": "2024-07-31T11:32:34.000+0000",
        "lastUpdatedOn": "2024-07-31T11:32:34.000+0000",
        "lastUpdatedBy": {
          "id": 50145093,
          "code": "default.till.pyapps1695382050",
          "description": "default.till.pyapps1695382050",
          "name": "default.till.pyapps1695382050",
          "type": "TILL"
        },
        "createdBy": {
          "id": 50145093,
          "code": "default.till.pyapps1695382050",
          "description": "default.till.pyapps1695382050",
          "name": "default.till.pyapps1695382050",
          "type": "TILL"
        }
      },
      "name": "TG_2024-07-31T17:02:33.517716Z",
      "active": true,
      "preferredTillId": 50145093,
      "periods": [
        {
          "id": 62127,
          "attribution": {
            "createdOn": "2024-07-31T11:32:34.000+0000",
            "lastUpdatedOn": "2024-07-31T11:32:34.000+0000",
            "lastUpdatedBy": {
              "id": 50145093,
              "code": "default.till.pyapps1695382050",
              "description": "default.till.pyapps1695382050",
              "name": "default.till.pyapps1695382050",
              "type": "TILL"
            },
            "createdBy": {
              "id": 50145093,
              "code": "default.till.pyapps1695382050",
              "description": "default.till.pyapps1695382050",
              "name": "default.till.pyapps1695382050",
              "type": "TILL"
            }
          },
          "startDate": "2024-07-31",
          "endDate": "2024-08-10",
          "refCode": "TestPeriod",
          "periodStatus": "RUNNING",
          "targetGroupId": 48824,
          "description": "Period No. 1",
          "active": true
        }
      ],
      "activePeriod": {
        "id": 62127,
        "attribution": {
          "createdOn": "2024-07-31T11:32:34.000+0000",
          "lastUpdatedOn": "2024-07-31T11:32:34.000+0000",
          "lastUpdatedBy": {
            "id": 50145093,
            "code": "default.till.pyapps1695382050",
            "description": "default.till.pyapps1695382050",
            "name": "default.till.pyapps1695382050",
            "type": "TILL"
          },
          "createdBy": {
            "id": 50145093,
            "code": "default.till.pyapps1695382050",
            "description": "default.till.pyapps1695382050",
            "name": "default.till.pyapps1695382050",
            "type": "TILL"
          }
        },
        "startDate": "2024-07-31",
        "endDate": "2024-08-10",
        "refCode": "TestPeriod",
        "periodStatus": "RUNNING",
        "targetGroupId": 48824,
        "description": "Period No. 1",
        "active": true
      },
      "totalPeriods": 1,
      "description": "New target group",
      "targetEvaluationType": "FIXED_CALENDAR_WINDOW",
      "recurringCycles": -1,
      "frequency": 0,
      "targetCycleStartDate": "2024-07-31T11:32:34.000Z",
      "targetCycleEndDate": "2029-07-31T11:32:34.000Z",
      "frequencyType": "CUSTOM",
      "trackingType": "DEFAULT",
      "createdOn": 1722425554000,
      "targets": [
        {
          "id": 104294,
          "attribution": {
            "createdOn": "2024-07-31T11:32:34.000+0000",
            "lastUpdatedOn": "2024-07-31T11:32:34.000+0000",
            "lastUpdatedBy": {
              "id": 50145093,
              "code": "default.till.pyapps1695382050",
              "description": "default.till.pyapps1695382050",
              "name": "default.till.pyapps1695382050",
              "type": "TILL"
            },
            "createdBy": {
              "id": 50145093,
              "code": "default.till.pyapps1695382050",
              "description": "default.till.pyapps1695382050",
              "name": "default.till.pyapps1695382050",
              "type": "TILL"
            }
          },
          "name": "testTargetFixedWindow_2024-07-31T17:02:33.843917Z",
          "emfRuleSetId": 1303778,
          "targetType": "COUNT",
          "targetEntity": "TRANSACTION",
          "eventName": "TransactionAdd",
          "targetGroupId": 48824,
          "description": "milestone",
          "active": true,
          "expression": "true",
          "expressionJson": "{\"arity\":\"literal\",\"value\":\"true\",\"type\":\"boolean:primitive\"}",
          "filters": [
            {
              "entityType": "STORE",
              "entityIds": []
            }
          ],
          "enrolmentMethod": "AUDIENCE_FILTER",
          "defaultValues": [
            {
              "id": 129405,
              "periodId": 62127,
              "defaultValue": 1.0
            }
          ],
          "targetPeriodDefaultValuesMap": {
            "62127": {
              "id": 129405,
              "periodId": 62127,
              "defaultValue": 1.0
            }
          },
          "targetMilestoneTriggers": [
            {
              "id": 21798,
              "triggerName": "targetAchieved",
              "isActive": true,
              "triggerType": "SYSTEM_TRIGGER",
              "triggerValueType": "PERCENTAGE",
              "triggerValue": 100.0,
              "targetRuleId": 104294
            }
          ],
          "targetAudienceFilter": [
            {
              "audienceGroupId": 200297896,
              "versionId": 200584500,
              "audienceFilterMetaId": 1989,
              "lastUpdatedOn": "2024-07-31T11:32:40.000+0000"
            }
          ]
        }
      ]
    }
  ],
  "errors": [],
  "warnings": []
}
{
    "pagination": {
        "limit": 1,
        "offset": 0,
        "total": 2
    },
    "data": [
        {
            "id": 1927,
            "attribution": {
            ........
            },
            "orgId": 4000110,
            "name": "milestonename",
            "active": true,
            "preferredTillId": 0,
            "totalPeriods": 1,
            "description": "a trial test ",
            "targetEvaluationType": "FIXED_CALENDAR_WINDOW",
            "recurringCycles": 1,
            "frequency": 1,
            "targetCycleStartDate": "2024-08-02T00:00:00.000Z",
            "targetCycleEndDate": "2024-08-02T23:59:59.000Z",
            "frequencyType": "CUSTOM",
            "trackingType": "DEFAULT",
            "createdOn": 1723454603000,
            "targets": [
                ......
            ],
            "leaderboardEnabled": true,
            "userCreated": true
        }
    ],
    "errors": [],
    "warnings": []
}
Query Params
int32
string
date
date
string
enum
Allowed:
string
enum
Allowed:
string
enum
string
boolean
boolean
Defaults to false
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