| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
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.
NoteFor 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
| URI | v3/milestones |
| HTTP Method | GET |
| Pagination | Yes |
| Batch support | No |
| Rate limit information | None |
Request query parameters
| Parameter Name | Data Type | Description |
|---|---|---|
start-date | Date | Filter on the start date of the milestone. This param is used to get the active milestones on and after the specified date. |
end-date | Date | Filter on the end date of the milestone. This param is used to get the milestones active on and before the specified date. |
status | Enum | Filter based on the status of the milestone. Supported values: LIVE, UPCOMING, ENDED, STOPPED. |
type | Enum | Filter based on the tracking type of the milestone. Supported values: DEFAULT, CAPPING, UNIFIED, STREAKS. |
target-on | Enum | Filter 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 |
name | String | Filter based on the name of the milestone. |
require-periods | Boolean | Set true to retrieve all period information. |
limit | Integer | Page size for pagination. |
offset | Integer | Page offset for pagination. |
includeUserCreatedTargetGroups | Boolean | Include the user created target groups in the response. This value is false by default. |
Response parameters
| Parameter | Data Type | Description |
|---|---|---|
| id | Integer | Unique identifier of the milestone. |
| createdOn | String | Creation date and time of the target group. Note: This field will be deprecated in the future and is being replaced by createdOnISO. |
| lastUpdatedOn | String | Last update date and time of the target group. Note: This field will be deprecated in the future and is being replaced by lastUpdatedOnISO. |
| createdOnISO | String | Indicates the creation date and time of the target in ISO 8601 format, returned in the server time zone. EU server example: India server example: |
| lastUpdatedOn | String | Indicates the last updated date and time of the target in ISO 8601 format, returned in the server time zone. EU server example: India server example: |
| createdBy.id | Integer | ID of the user who created the target group. |
| name | String | Name of the target group. |
| fromDate | Date | Start date of the target group's active period. |
| toDate | Date | End date of the target group's active period. |
| active | Boolean | Indicates if the target group is currently active. |
| preferredTillId | Integer | Reference ID for internal use, possibly related to prioritization. |
| periods | Array | Collection of periods within the target group. |
| periods.id | Integer | Unique identifier for each period. |
| periods.startDate | Date | Start date of the period. |
| periods.endDate | Date | End date of the period. |
| periods.refCode | String | Reference code for the period. |
| periods.periodStatus | String | Status of the period (e.g., RUNNING, NOT_STARTED). |
| periods.targetGroupId | Integer | ID of the target group to which the period belongs. |
| periods.description | String | Description of the period. |
| periods.active | Boolean | Indicates if the period is active. |
| streaks | Array | Collection of streaks within the target group. |
| streaks.id | Integer | Unique identifier for each streak. |
| streaks.targetGroupId | Integer | ID of the target group to which the streak belongs. |
| streaks.name | String | Name of the streak. |
| streaks.targetCountOfSequence | Integer | Target count of sequences for the streak. |
| activePeriod.id | Integer | ID of the currently active period. |
| totalPeriods | Integer | Total number of periods over which the tracking is evaluated. |
| description | String | Description of the non-continuous-streaks group. |
| targetEvaluationType | String | Evaluation strategy for the targets. Supported values: FIXED_CALENDAR_WINDOW, CYCLIC_WINDOW, PERIOD_AGNOSTIC_WINDOW. |
| recurringCycles | Integer | Number of recurring cycles. |
| frequency | Integer | Frequency count relevant to the frequencyType. |
| targetCycleStartDate | DateTime | Start date and time of the target cycle. Note: This field will be deprecated in the future and is being replaced by targetCycleStartDateISO. |
| targetCycleStartDateISO | DateTime | Indicates the start date and time of the target cycle in ISO 8601 format, returned in the server time zone. EU server example: India server example: |
| targetCycleEndDate | DateTime | End date and time of the target cycle. Note: This field will be deprecated in the future and is being replaced by targetCycleEndDateISO. |
| targetCycleEndDateISO | DateTime | Indicates the end date and time of the target cycle in ISO 8601 format, returned in the server time zone. EU server example: India server example: |
| frequencyType | Enum | Frequency of each cycle. Supported values: Monthly, Quarterly, Half-yearly, Yearly, Weekly. |
| trackingType | Enum | Type of tracking. Supported values: Default, Unified, Streak, Capping. |
| createdOn | Long | Creation timestamp in milliseconds since epoch. |
| targets | Array | Collection of targets within the target group. |
| targets.id | Integer | Unique identifier for each target. |
| targets.name | String | Name of the target. |
| targets.emfRuleSetId | Integer | Rule set ID associated with the target. |
| targets.targetType | Enum | Type of target (e.g., COUNT). |
| targets.targetEntity | Enum | Entity of the target. Supported values: CUSTOMER, TRANSACTIONS, STORE, PRODUCT, BEHAVIOURAL EVENTS. |
| targets.eventName | String | Event name associated with the target. |
| targets.targetGroupId | Integer | ID of the target group to which the target belongs. |
| targets.description | String | Description of the target. |
| targets.expression | String | Expression defining the target condition. |
| targets.expressionJson | JSON | JSON format of the expression defining the target condition. |
| targets.filters | Array | Filters applied to the target. |
| targets.enrolmentMethod | String | Method of enrolment for the target. |
| targets.defaultValues | Array | Default values associated with periods for the target. |
| targets.defaultValues.id | Integer | Unique identifier for each default value. |
| targets.defaultValues.periodId | Integer | ID of the period to which the default value belongs. |
| targets.defaultValues.defaultValue | Decimal | Default value of the period. |
| targetAudienceFilter | Array | List of audience filters used for the milestone. |
| targetAudienceFilter.audienceGroupId | Integer | Unique identifier for the audience group. |
| targetAudienceFilter.versionId | Integer | Version identifier for the audience filter. |
| targetAudienceFilter.audienceFilterMetaId | Integer | Metadata identifier for the audience filter. |
| targetAudienceFilter.lastUpdatedOn | String | Timestamp of the last update (ISO 8601 format). |
| userCreated | Boolean | Indicates if the target is user-created. |
| leaderboardEnabled | Boolean | Indicates if leaderboard tracking is enabled. |
| timeZoneName | String | IANA 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": []
}