Get all milestones (target)

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 the milestone.
createdOnStringThe creation date and time of the target group.
lastUpdatedOnStringThe last update date and time of the target group.
lastUpdatedBy.idIntegerThe ID of the last user who updated the target group.
createdBy.idIntegerThe ID 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.
activeBooleanStatus indicating if the target group is currently active.
preferredTillIdIntegerA reference ID for internal use, possibly related to prioritization.
periodsArrayA collection of periods within the target group.
- idIntegerUnique identifier for each period.
-startDateDateStart date of the period.
- endDateDateEnd date of the period.
- refCodeStringReference code for the period.
- periodStatusStringStatus of the period (e.g., RUNNING, NOT_STARTED).
- targetGroupIdIntegerID of the target group to which the period belongs.
- descriptionStringDescription of the period.
- activeBooleanStatus indicating if the period is currently active.
streaksArrayA collection of streaks within the target group.
- idIntegerUnique identifier for each streak.
-targetGroupIdIntegerID of the target group to which the streak belongs.
- nameStringName of the streak.
- targetCountOfSequenceIntegerTarget count of sequences for the streak.
activePeriod.idIntegerThe ID of the currently active period.
totalPeriodsIntegerThe total number of periods over which the tracking is evaluated.
descriptionStringDescription of the non-continuous-streaks group.
targetEvaluationTypeStringThe evaluation strategy for the targets. Supported values:
FIXED_CALENDAR_WINDOW, CYCLIC_WINDOW,
PERIOD_AGNOSTIC_WINDOW
recurringCyclesIntegerNumber of recurring cycles.
frequencyIntegerThe frequency count, relevant to the frequencyType.
targetCycleStartDateDateTimeStart date and time of the target cycle.
targetCycleEndDateDateTimeEnd date and time of the target cycle.
frequencyTypeEnumThe frequency of each cycle in which the user has to achieve the target value. Supported values: Monthly, Quarterly, Half-yearly, Yearly, Weekly.
trackingTypeEnumThe type of tracking the milestone is created for. Supported values:
Default (single target tracking),
Unified (tracking multiple targets as a unit),
Streak (Tracking the achievement of a user across the cycles continuously),
Capping (Tracking the number of points a user has got over a period, so that capping can be applied).
createdOnLongThe creation timestamp of the data in milliseconds since epoch.
targetsArrayA collection of targets within the target group.
- idIntegerUnique identifier for each target.
- nameStringName of the target.
- emfRuleSetIdIntegerRule set ID associated with the target.
- targetTypeEumType of target (e.g., COUNT).
- targetEntityEnumEntity of the target. Supported values:
CUSTOMER, TRANSACTIONS, STORE, PRODUCT, BEHAVIOURAL EVENTS
- eventNameStringEvent name associated with the target.
- targetGroupIdIntegerID of the target group to which the target belongs.
- descriptionStringDescription of the target.
- expressionStringExpression defining the target condition.
- expressionJsonJSONJSON format of the expression defining the target condition.
- filtersArrayFilters applied to the target.
- enrolmentMethodStringMethod of enrolment for the target.
- defaultValuesArrayDefault values associated with periods for the target.
--idIntegerUnique identifier for each default value.
-- periodIdIntegerID of the period to which the default value belongs.
-- defaultValueDecimalDefault value of the period.
targetAudienceFilterArrayList of audience filters used for the milestone. This applies when the target customers are selected from the audience list during the creation of the milestone in the UI.
- audienceGroupIdIntegerUnique identifier for the audience group
- versionIdIntegerVersion identifier for the audience filter
- audienceFilterMetaIdIntegerMetadata identifier for the audience filter
- lastUpdatedOnStringTimestamp of the last update (ISO 8601 format)
userCreatedBooleanWhether the target is a user created target. If true, the target is a user created target.
leaderboardEnabledBooleanIndicates if the target has a leaderboard tracking enabled
{
    "pagination": {
        "limit": 10,
        "offset": 0,
        "total": 20
    },
    "data": [
        {
            "id": 23113,
            "attribution": {
                "createdOn": "2024-04-02T10:35:15.000+0530",
                "lastUpdatedOn": "2024-04-02T10:35:15.000+0530",
                "lastUpdatedBy": {
                    "id": 50685529,
                    "code": "[email protected]",
                    "description": "",
                    "name": "Vinayak Radhakrishnan",
                    "type": "ADMIN_USER"
                },
                "createdBy": {
                    "id": 50685529,
                    "code": "[email protected]",
                    "description": "",
                    "name": "Vinayak Radhakrishnan",
                    "type": "ADMIN_USER"
                }
            },
            "name": "testsub",
            "active": true,
            "preferredTillId": 50681568,
            "activePeriod": {
                "id": 28714,
                "attribution": {
                    "createdOn": "2024-04-02T10:35:15.000+0530",
                    "lastUpdatedOn": "2024-04-02T10:35:15.000+0530",
                    "lastUpdatedBy": {
                        "id": 50685529,
                        "code": "[email protected]",
                        "description": "",
                        "name": "Vinayak Radhakrishnan",
                        "type": "ADMIN_USER"
                    },
                    "createdBy": {
                        "id": 50685529,
                        "code": "[email protected]",
                        "description": "",
                        "name": "Vinayak Radhakrishnan",
                        "type": "ADMIN_USER"
                    }
                },
                "startDate": "2024-04-02",
                "endDate": "2024-05-01",
                "refCode": "Cycle_1",
                "periodStatus": "RUNNING",
                "targetGroupId": 23113,
                "active": true
            },
            "totalPeriods": 1,
            "description": "testsub",
            "targetEvaluationType": "FIXED_CALENDAR_WINDOW",
            "recurringCycles": -1,
            "frequency": 0,
            "targetCycleStartDate": "2024-04-02T05:04:45.000Z",
            "targetCycleEndDate": "2024-05-31T18:30:00.000Z",
            "frequencyType": "MONTHLY",
            "trackingType": "DEFAULT",
            "createdOn": 1712034315000,
            "targets": [
                {
                    "id": 43653,
                    "attribution": {
                        "createdOn": "2024-04-02T10:35:16.000+0530",
                        "lastUpdatedOn": "2024-04-02T10:35:16.000+0530",
                        "lastUpdatedBy": {
                            "id": 50685529,
                            "code": "[email protected]",
                            "description": "",
                            "name": "Vinayak Radhakrishnan",
                            "type": "ADMIN_USER"
                        },
                        "createdBy": {
                            "id": 50685529,
                            "code": "[email protected]",
                            "description": "",
                            "name": "Vinayak Radhakrishnan",
                            "type": "ADMIN_USER"
                        }
                    },
                    "name": "testsub",
                    "emfRuleSetId": 1294439,
                    "targetType": "GROSS_SALES",
                    "targetEntity": "TRANSACTION",
                    "eventName": "TransactionAdd",
                    "targetGroupId": 23113,
                    "active": true,
                    "expression": "true",
                    "expressionJson": "\n{\n  \"arity\":\"literal\",\n  \"value\":\"true\",\n  \"type\":\"boolean:primitive\"\n}",
                    "filters": [],
                    "enrolmentMethod": "TRANSACTION",
                    "defaultValues": [
                        {
                            "id": 52582,
                            "periodId": 28714,
                            "defaultValue": 10000.000
                        }
                    ]
                }
            ]
        },
        {
            "id": 16832,
            "attribution": {
                "createdOn": "2024-02-07T17:53:40.000+0530",
                "lastUpdatedOn": "2024-02-07T17:53:40.000+0530",
                "lastUpdatedBy": {
                    "id": 50685529,
                    "code": "[email protected]",
                    "description": "",
                    "name": "Vinayak Radhakrishnan",
                    "type": "ADMIN_USER"
                },
                "createdBy": {
                    "id": 50685529,
                    "code": "[email protected]",
                    "description": "",
                    "name": "Vinayak Radhakrishnan",
                    "type": "ADMIN_USER"
                }
            },
            "name": "ew",
            "active": false,
            "preferredTillId": 50681568,
            "totalPeriods": 1,
            "targetEvaluationType": "FIXED_CALENDAR_WINDOW",
            "recurringCycles": -1,
            "frequency": 0,
            "targetCycleStartDate": "2024-02-07T12:22:48.000Z",
            "targetCycleEndDate": "2024-03-31T18:30:00.000Z",
            "frequencyType": "MONTHLY",
            "trackingType": "DEFAULT",
            "createdOn": 1707308620000,
            "targets": [
                {
                    "id": 31203,
                    "attribution": {
                        "createdOn": "2024-02-07T17:53:40.000+0530",
                        "lastUpdatedOn": "2024-02-07T17:53:40.000+0530",
                        "lastUpdatedBy": {
                            "id": 50685529,
                            "code": "[email protected]",
                            "description": "",
                            "name": "Vinayak Radhakrishnan",
                            "type": "ADMIN_USER"
                        },
                        "createdBy": {
                            "id": 50685529,
                            "code": "[email protected]",
                            "description": "",
                            "name": "Vinayak Radhakrishnan",
                            "type": "ADMIN_USER"
                        }
                    },
                    "name": "ew",
                    "emfRuleSetId": 1276042,
                    "targetType": "GROSS_SALES",
                    "targetEntity": "TRANSACTION",
                    "eventName": "TransactionAdd",
                    "targetGroupId": 16832,
                    "active": false,
                    "expression": "true",
                    "expressionJson": "\n{\n  \"arity\":\"literal\",\n  \"value\":\"true\",\n  \"type\":\"boolean:primitive\"\n}",
                    "filters": [],
                    "enrolmentMethod": "TRANSACTION",
                    "defaultValues": [
                        {
                            "id": 36763,
                            "periodId": 20639,
                            "defaultValue": 1.000
                        }
                    ]
                }
            ]
        },
        {
            "id": 16794,
            "attribution": {
                "createdOn": "2024-02-07T11:59:06.000+0530",
                "lastUpdatedOn": "2024-02-07T11:59:06.000+0530",
                "lastUpdatedBy": {
                    "id": 50685529,
                    "code": "[email protected]",
                    "description": "",
                    "name": "Vinayak Radhakrishnan",
                    "type": "ADMIN_USER"
                },
                "createdBy": {
                    "id": 50685529,
                    "code": "[email protected]",
                    "description": "",
                    "name": "Vinayak Radhakrishnan",
                    "type": "ADMIN_USER"
                }
            },
            "name": "unified",
            "active": false,
            "preferredTillId": 50681568,
            "totalPeriods": 1,
            "targetEvaluationType": "FIXED_CALENDAR_WINDOW",
            "recurringCycles": -1,
            "frequency": 0,
            "targetCycleStartDate": "2024-02-07T06:28:45.000Z",
            "targetCycleEndDate": "2024-03-31T18:30:00.000Z",
            "frequencyType": "MONTHLY",
            "trackingType": "UNIFIED",
            "createdOn": 1707287346000,
            "targets": [
                {
                    "id": 31133,
                    "attribution": {
                        "createdOn": "2024-02-07T11:59:06.000+0530",
                        "lastUpdatedOn": "2024-02-07T11:59:06.000+0530",
                        "lastUpdatedBy": {
                            "id": 50685529,
                            "code": "[email protected]",
                            "description": "",
                            "name": "Vinayak Radhakrishnan",
                            "type": "ADMIN_USER"
                        },
                        "createdBy": {
                            "id": 50685529,
                            "code": "[email protected]",
                            "description": "",
                            "name": "Vinayak Radhakrishnan",
                            "type": "ADMIN_USER"
                        }
                    },
                    "name": "unified_b8abd528-02b2-42ca-98b4-b296b2d6940f",
                    "emfRuleSetId": 1275657,
                    "targetType": "SALES",
                    "targetEntity": "TRANSACTION",
                    "eventName": "TransactionAdd",
                    "targetGroupId": 16794,
                    "active": false,
                    "expression": "true",
                    "expressionJson": "\n{\n  \"arity\":\"literal\",\n  \"value\":\"true\",\n  \"type\":\"boolean:primitive\"\n}",
                    "filters": [],
                    "enrolmentMethod": "TRANSACTION",
                    "defaultValues": [
                        {
                            "id": 36693,
                            "periodId": 20604,
                            "defaultValue": 100.000
                        }
                    ]
                },
                {
                    "id": 31132,
                    "attribution": {
                        "createdOn": "2024-02-07T11:59:06.000+0530",
                        "lastUpdatedOn": "2024-02-07T11:59:06.000+0530",
                        "lastUpdatedBy": {
                            "id": 50685529,
                            "code": "[email protected]",
                            "description": "",
                            "name": "Vinayak Radhakrishnan",
                            "type": "ADMIN_USER"
                        },
                        "createdBy": {
                            "id": 50685529,
                            "code": "[email protected]",
                            "description": "",
                            "name": "Vinayak Radhakrishnan",
                            "type": "ADMIN_USER"
                        }
                    },
                    "name": "unified_e96004bd-4d78-48da-9f66-e93b3c3dbd7a",
                    "emfRuleSetId": 1275656,
                    "targetType": "GROSS_SALES",
                    "targetEntity": "TRANSACTION",
                    "eventName": "TransactionAdd",
                    "targetGroupId": 16794,
                    "active": false,
                    "expression": "true",
                    "expressionJson": "\n{\n  \"arity\":\"literal\",\n  \"value\":\"true\",\n  \"type\":\"boolean:primitive\"\n}",
                    "filters": [],
                    "enrolmentMethod": "TRANSACTION",
                    "defaultValues": [
                        {
                            "id": 36692,
                            "periodId": 20604,
                            "defaultValue": 100.000
                        }
                    ]
                }
            ],
            "combinationType": "ALL",
            "unifiedTargetExpression": {
                "aggregation": null,
                "thresholdValue": null,
                "ruleExpression": "(31132 & 31133)"
            }
        },
        {
            "id": 16503,
            "attribution": {
                "createdOn": "2024-02-05T15:03:08.000+0530",
                "lastUpdatedOn": "2024-02-05T15:03:08.000+0530",
                "lastUpdatedBy": {
                    "id": 50685529,
                    "code": "[email protected]",
                    "description": "",
                    "name": "Vinayak Radhakrishnan",
                    "type": "ADMIN_USER"
                },
                "createdBy": {
                    "id": 50685529,
                    "code": "[email protected]",
                    "description": "",
                    "name": "Vinayak Radhakrishnan",
                    "type": "ADMIN_USER"
                }
            },
            "name": "wbc",
            "active": false,
            "preferredTillId": 50681568,
            "totalPeriods": 1,
            "targetEvaluationType": "FIXED_CALENDAR_WINDOW",
            "recurringCycles": -1,
            "frequency": 0,
            "targetCycleStartDate": "2024-02-05T09:32:53.000Z",
            "targetCycleEndDate": "2024-03-31T18:30:00.000Z",
            "frequencyType": "MONTHLY",
            "trackingType": "DEFAULT",
            "createdOn": 1707125588000,
            "targets": [
                {
                    "id": 30534,
                    "attribution": {
                        "createdOn": "2024-02-05T15:03:08.000+0530",
                        "lastUpdatedOn": "2024-02-05T15:03:08.000+0530",
                        "lastUpdatedBy": {
                            "id": 50685529,
                            "code": "[email protected]",
                            "description": "",
                            "name": "Vinayak Radhakrishnan",
                            "type": "ADMIN_USER"
                        },
                        "createdBy": {
                            "id": 50685529,
                            "code": "[email protected]",
                            "description": "",
                            "name": "Vinayak Radhakrishnan",
                            "type": "ADMIN_USER"
                        }
                    },
                    "name": "wbc",
                    "emfRuleSetId": 1274403,
                    "targetType": "EXTENDED_FIELD",
                    "targetEntity": "TRANSACTION",
                    "eventName": "TransactionAdd",
                    "targetGroupId": 16503,
                    "active": false,
                    "expression": "true",
                    "expressionJson": "\n{\n  \"arity\":\"literal\",\n  \"value\":\"true\",\n  \"type\":\"boolean:primitive\"\n}",
                    "filters": [],
                    "enrolmentMethod": "TRANSACTION",
                    "defaultValues": [
                        {
                            "id": 36017,
                            "periodId": 20267,
                            "defaultValue": 12.000
                        }
                    ],
                    "extendedFieldInfo": {
                        "name": "CentralGST",
                        "aggregateFunction": "COUNT"
                    }
                }
            ]
        },
        {
            "id": 16500,
            "attribution": {
                "createdOn": "2024-02-05T10:29:38.000+0530",
                "lastUpdatedOn": "2024-02-05T10:29:38.000+0530",
                "lastUpdatedBy": {
                    "id": 50685529,
                    "code": "[email protected]",
                    "description": "",
                    "name": "Vinayak Radhakrishnan",
                    "type": "ADMIN_USER"
                },
                "createdBy": {
                    "id": 50685529,
                    "code": "[email protected]",
                    "description": "",
                    "name": "Vinayak Radhakrishnan",
                    "type": "ADMIN_USER"
                }
            },
            "name": "wew",
            "active": false,
            "preferredTillId": 50681568,
            "totalPeriods": 1,
            "targetEvaluationType": "FIXED_CALENDAR_WINDOW",
            "recurringCycles": -1,
            "frequency": 0,
            "targetCycleStartDate": "2024-02-05T04:58:38.000Z",
            "targetCycleEndDate": "2024-03-31T18:30:00.000Z",
            "frequencyType": "MONTHLY",
            "trackingType": "DEFAULT",
            "createdOn": 1707109178000,
            "targets": [
                {
                    "id": 30533,
                    "attribution": {
                        "createdOn": "2024-02-05T10:29:38.000+0530",
                        "lastUpdatedOn": "2024-02-05T10:29:38.000+0530",
                        "lastUpdatedBy": {
                            "id": 50685529,
                            "code": "[email protected]",
                            "description": "",
                            "name": "Vinayak Radhakrishnan",
                            "type": "ADMIN_USER"
                        },
                        "createdBy": {
                            "id": 50685529,
                            "code": "[email protected]",
                            "description": "",
                            "name": "Vinayak Radhakrishnan",
                            "type": "ADMIN_USER"
                        }
                    },
                    "name": "wew",
                    "emfRuleSetId": 1274390,
                    "targetType": "GROSS_SALES",
                    "targetEntity": "TRANSACTION",
                    "eventName": "TransactionAdd",
                    "targetGroupId": 16500,
                    "active": false,
                    "expression": "true",
                    "expressionJson": "\n{\n  \"arity\":\"literal\",\n  \"value\":\"true\",\n  \"type\":\"boolean:primitive\"\n}",
                    "filters": [],
                    "enrolmentMethod": "TRANSACTION",
                    "defaultValues": [
                        {
                            "id": 36016,
                            "periodId": 20265,
                            "defaultValue": 12.000
                        }
                    ]
                }
            ]
        },
        {
            "id": 16175,
            "attribution": {
                "createdOn": "2024-01-31T12:48:16.000+0530",
                "lastUpdatedOn": "2024-01-31T12:48:16.000+0530",
                "lastUpdatedBy": {
                    "id": 50685529,
                    "code": "[email protected]",
                    "description": "",
                    "name": "Vinayak Radhakrishnan",
                    "type": "ADMIN_USER"
                },
                "createdBy": {
                    "id": 50685529,
                    "code": "[email protected]",
                    "description": "",
                    "name": "Vinayak Radhakrishnan",
                    "type": "ADMIN_USER"
                }
            },
            "name": "ewdwe",
            "active": true,
            "preferredTillId": 50681568,
            "activePeriod": {
                "id": 19881,
                "attribution": {
                    "createdOn": "2024-01-31T12:48:16.000+0530",
                    "lastUpdatedOn": "2024-01-31T12:48:16.000+0530",
                    "lastUpdatedBy": {
                        "id": 50685529,
                        "code": "[email protected]",
                        "description": "",
                        "name": "Vinayak Radhakrishnan",
                        "type": "ADMIN_USER"
                    },
                    "createdBy": {
                        "id": 50685529,
                        "code": "[email protected]",
                        "description": "",
                        "name": "Vinayak Radhakrishnan",
                        "type": "ADMIN_USER"
                    }
                },
                "startDate": "2024-01-31",
                "endDate": "2024-04-29",
                "refCode": "wdse",
                "periodStatus": "RUNNING",
                "targetGroupId": 16175,
                "active": true
            },
            "totalPeriods": 1,
            "targetEvaluationType": "FIXED_CALENDAR_WINDOW",
            "recurringCycles": -1,
            "frequency": 0,
            "targetCycleStartDate": "2024-01-31T00:00:00.000Z",
            "targetCycleEndDate": "2024-04-29T23:59:59.000Z",
            "frequencyType": "QUARTERLY",
            "trackingType": "DEFAULT",
            "createdOn": 1706685496000,
            "targets": [
                {
                    "id": 29827,
                    "attribution": {
                        "createdOn": "2024-01-31T12:48:57.000+0530",
                        "lastUpdatedOn": "2024-01-31T12:48:57.000+0530",
                        "lastUpdatedBy": {
                            "id": 50685529,
                            "code": "[email protected]",
                            "description": "",
                            "name": "Vinayak Radhakrishnan",
                            "type": "ADMIN_USER"
                        },
                        "createdBy": {
                            "id": 50685529,
                            "code": "[email protected]",
                            "description": "",
                            "name": "Vinayak Radhakrishnan",
                            "type": "ADMIN_USER"
                        }
                    },
                    "name": "e",
                    "emfRuleSetId": 1273473,
                    "emfUnrolledRulesetId": 1273472,
                    "targetType": "GROSS_SALES",
                    "targetEntity": "LINEITEM",
                    "eventName": "TransactionAdd",
                    "targetGroupId": 16175,
                    "active": true,
                    "expression": "true",
                    "expressionJson": "\n{\n  \"arity\":\"literal\",\n  \"value\":\"true\",\n  \"type\":\"boolean:primitive\"\n}",
                    "filters": [
                        {
                            "entityType": "STORE",
                            "entityIds": [
                                50681567
                            ]
                        }
                    ],
                    "enrolmentMethod": "IMPORT",
                    "defaultValues": [
                        {
                            "id": 35203,
                            "periodId": 19881,
                            "defaultValue": 12.000
                        }
                    ]
                },
                {
                    "id": 30532,
                    "attribution": {
                        "createdOn": "2024-02-05T10:27:13.000+0530",
                        "lastUpdatedOn": "2024-02-05T10:27:13.000+0530",
                        "lastUpdatedBy": {
                            "id": 50685529,
                            "code": "[email protected]",
                            "description": "",
                            "name": "Vinayak Radhakrishnan",
                            "type": "ADMIN_USER"
                        },
                        "createdBy": {
                            "id": 50685529,
                            "code": "[email protected]",
                            "description": "",
                            "name": "Vinayak Radhakrishnan",
                            "type": "ADMIN_USER"
                        }
                    },
                    "name": "eeeeee",
                    "emfRuleSetId": 1274389,
                    "emfUnrolledRulesetId": 1274388,
                    "targetType": "GROSS_SALES",
                    "targetEntity": "LINEITEM",
                    "eventName": "TransactionAdd",
                    "targetGroupId": 16175,
                    "active": true,
                    "expression": "true",
                    "expressionJson": "\n{\n  \"arity\":\"literal\",\n  \"value\":\"true\",\n  \"type\":\"boolean:primitive\"\n}",
                    "filters": [
                        {
                            "entityType": "STORE",
                            "entityIds": [
                                50681567
                            ]
                        }
                    ],
                    "enrolmentMethod": "TRANSACTION",
                    "defaultValues": [
                        {
                            "id": 36015,
                            "periodId": 19881,
                            "defaultValue": 11.000
                        }
                    ]
                }
            ]
        },
        {
            "id": 8670,
            "attribution": {
                "createdOn": "2023-12-28T17:38:42.000+0530",
                "lastUpdatedOn": "2023-12-28T17:38:42.000+0530",
                "lastUpdatedBy": {
                    "id": 50681568,
                    "code": "kerala1_till1",
                    "description": "",
                    "name": "kerala1_till1",
                    "type": "TILL"
                },
                "createdBy": {
                    "id": 50681568,
                    "code": "kerala1_till1",
                    "description": "",
                    "name": "kerala1_till1",
                    "type": "TILL"
                }
            },
            "name": "Madridstaloyaltystreak",
            "active": false,
            "preferredTillId": 0,
            "streaks": [
                {
                    "id": 10,
                    "attribution": {
                        "createdOn": "2023-11-06T18:59:52.000+0530",
                        "lastUpdatedOn": "2023-11-06T18:59:52.000+0530",
                        "lastUpdatedBy": {
                            "id": 50681568,
                            "code": "kerala1_till1",
                            "description": "",
                            "name": "kerala1_till1",
                            "type": "TILL"
                        },
                        "createdBy": {
                            "id": 50681568,
                            "code": "kerala1_till1",
                            "description": "",
                            "name": "kerala1_till1",
                            "type": "TILL"
                        }
                    },
                    "targetGroupId": 8670,
                    "name": "streakmad2",
                    "targetCountOfSequence": 2
                },
                {
                    "id": 11,
                    "attribution": {
                        "createdOn": "2023-11-06T18:59:52.000+0530",
                        "lastUpdatedOn": "2023-11-06T18:59:52.000+0530",
                        "lastUpdatedBy": {
                            "id": 50681568,
                            "code": "kerala1_till1",
                            "description": "",
                            "name": "kerala1_till1",
                            "type": "TILL"
                        },
                        "createdBy": {
                            "id": 50681568,
                            "code": "kerala1_till1",
                            "description": "",
                            "name": "kerala1_till1",
                            "type": "TILL"
                        }
                    },
                    "targetGroupId": 8670,
                    "name": "streakmad4",
                    "targetCountOfSequence": 4
                },
                {
                    "id": 12,
                    "attribution": {
                        "createdOn": "2023-11-06T18:59:52.000+0530",
                        "lastUpdatedOn": "2023-11-06T18:59:52.000+0530",
                        "lastUpdatedBy": {
                            "id": 50681568,
                            "code": "kerala1_till1",
                            "description": "",
                            "name": "kerala1_till1",
                            "type": "TILL"
                        },
                        "createdBy": {
                            "id": 50681568,
                            "code": "kerala1_till1",
                            "description": "",
                            "name": "kerala1_till1",
                            "type": "TILL"
                        }
                    },
                    "targetGroupId": 8670,
                    "name": "streakmad7",
                    "targetCountOfSequence": 7
                }
            ],
            "totalPeriods": 15,
            "description": "edit",
            "targetEvaluationType": "FIXED_CALENDAR_WINDOW",
            "recurringCycles": 0,
            "frequency": 0,
            "targetCycleStartDate": "2023-11-01T00:00:00.000Z",
            "targetCycleEndDate": "2023-11-15T23:59:59.000Z",
            "frequencyType": "DAILY",
            "trackingType": "STREAKS",
            "createdOn": 1703765322000,
            "targets": [
                {
                    "id": 15106,
                    "attribution": {
                        "createdOn": "2023-10-31T19:59:51.000+0530",
                        "lastUpdatedOn": "2023-10-31T19:59:51.000+0530",
                        "lastUpdatedBy": {
                            "id": 50681568,
                            "code": "kerala1_till1",
                            "description": "",
                            "name": "kerala1_till1",
                            "type": "TILL"
                        },
                        "createdBy": {
                            "id": 50681568,
                            "code": "kerala1_till1",
                            "description": "",
                            "name": "kerala1_till1",
                            "type": "TILL"
                        }
                    },
                    "name": "MadridstaloyaltystreakTXN500",
                    "emfRuleSetId": 1254321,
                    "targetType": "SALES",
                    "targetEntity": "TRANSACTION",
                    "eventName": "TransactionAdd",
                    "targetGroupId": 8670,
                    "description": "streak",
                    "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\"}]}",
                    "filters": [
                        {
                            "entityType": "STORE",
                            "entityIds": [
                                50681567
                            ]
                        }
                    ],
                    "enrolmentMethod": "TRANSACTION",
                    "defaultValues": [
                        {
                            "id": 16963,
                            "periodId": 10034,
                            "defaultValue": 500.000
                        },
                        {
                            "id": 16964,
                            "periodId": 10035,
                            "defaultValue": 500.000
                        },
                        {
                            "id": 16965,
                            "periodId": 10036,
                            "defaultValue": 500.000
                        },
                        {
                            "id": 16966,
                            "periodId": 10037,
                            "defaultValue": 500.000
                        },
                        {
                            "id": 16967,
                            "periodId": 10038,
                            "defaultValue": 500.000
                        },
                        {
                            "id": 16968,
                            "periodId": 10039,
                            "defaultValue": 500.000
                        },
                        {
                            "id": 16969,
                            "periodId": 10040,
                            "defaultValue": 500.000
                        },
                        {
                            "id": 16970,
                            "periodId": 10041,
                            "defaultValue": 500.000
                        },
                        {
                            "id": 16971,
                            "periodId": 10042,
                            "defaultValue": 500.000
                        },
                        {
                            "id": 16972,
                            "periodId": 10043,
                            "defaultValue": 500.000
                        },
                        {
                            "id": 16973,
                            "periodId": 10044,
                            "defaultValue": 500.000
                        },
                        {
                            "id": 16974,
                            "periodId": 10045,
                            "defaultValue": 500.000
                        },
                        {
                            "id": 16975,
                            "periodId": 10046,
                            "defaultValue": 500.000
                        },
                        {
                            "id": 16976,
                            "periodId": 10047,
                            "defaultValue": 500.000
                        },
                        {
                            "id": 16977,
                            "periodId": 10048,
                            "defaultValue": 500.000
                        }
                    ]
                }
            ]
        },
        {
            "id": 12951,
            "attribution": {
                "createdOn": "2023-12-28T15:26:54.000+0530",
                "lastUpdatedOn": "2023-12-28T15:26:54.000+0530",
                "lastUpdatedBy": {
                    "id": 50681568,
                    "code": "kerala1_till1",
                    "description": "",
                    "name": "kerala1_till1",
                    "type": "TILL"
                },
                "createdBy": {
                    "id": 50681568,
                    "code": "kerala1_till1",
                    "description": "",
                    "name": "kerala1_till1",
                    "type": "TILL"
                }
            },
            "name": "MadridstaloyaltystreakTargetGroup003",
            "active": false,
            "preferredTillId": 0,
            "streaks": [
                {
                    "id": 252,
                    "attribution": {
                        "createdOn": "2023-12-28T15:26:54.000+0530",
                        "lastUpdatedOn": "2023-12-28T15:26:54.000+0530",
                        "lastUpdatedBy": {
                            "id": 50681568,
                            "code": "kerala1_till1",
                            "description": "",
                            "name": "kerala1_till1",
                            "type": "TILL"
                        },
                        "createdBy": {
                            "id": 50681568,
                            "code": "kerala1_till1",
                            "description": "",
                            "name": "kerala1_till1",
                            "type": "TILL"
                        }
                    },
                    "targetGroupId": 12951,
                    "name": "Madridstaloyaltystreak003Streak3",
                    "targetCountOfSequence": 2
                },
                {
                    "id": 253,
                    "attribution": {
                        "createdOn": "2023-12-28T15:26:54.000+0530",
                        "lastUpdatedOn": "2023-12-28T15:26:54.000+0530",
                        "lastUpdatedBy": {
                            "id": 50681568,
                            "code": "kerala1_till1",
                            "description": "",
                            "name": "kerala1_till1",
                            "type": "TILL"
                        },
                        "createdBy": {
                            "id": 50681568,
                            "code": "kerala1_till1",
                            "description": "",
                            "name": "kerala1_till1",
                            "type": "TILL"
                        }
                    },
                    "targetGroupId": 12951,
                    "name": "Madridstaloyaltystreak003Streak4",
                    "targetCountOfSequence": 3
                }
            ],
            "totalPeriods": 5,
            "description": "Madridsta Demo streak 1",
            "targetEvaluationType": "FIXED_CALENDAR_WINDOW",
            "recurringCycles": 0,
            "frequency": 0,
            "targetCycleStartDate": "2023-12-29T00:00:00.000Z",
            "targetCycleEndDate": "2024-01-03T23:59:59.000Z",
            "frequencyType": "DAILY",
            "trackingType": "STREAKS",
            "createdOn": 1703757414000,
            "targets": [
                {
                    "id": 23511,
                    "attribution": {
                        "createdOn": "2023-12-28T15:26:54.000+0530",
                        "lastUpdatedOn": "2023-12-28T15:26:54.000+0530",
                        "lastUpdatedBy": {
                            "id": 50681568,
                            "code": "kerala1_till1",
                            "description": "",
                            "name": "kerala1_till1",
                            "type": "TILL"
                        },
                        "createdBy": {
                            "id": 50681568,
                            "code": "kerala1_till1",
                            "description": "",
                            "name": "kerala1_till1",
                            "type": "TILL"
                        }
                    },
                    "name": "MadridstaloyaltystreakTargetGroup003TXN500",
                    "emfRuleSetId": 1265434,
                    "targetType": "SALES",
                    "targetEntity": "TRANSACTION",
                    "eventName": "TransactionAdd",
                    "targetGroupId": 12951,
                    "description": "streak",
                    "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\"}]}",
                    "filters": [
                        {
                            "entityType": "STORE",
                            "entityIds": [
                                50681567
                            ]
                        }
                    ],
                    "enrolmentMethod": "TRANSACTION",
                    "defaultValues": [
                        {
                            "id": 27002,
                            "periodId": 15576,
                            "defaultValue": 500.000
                        },
                        {
                            "id": 27003,
                            "periodId": 15577,
                            "defaultValue": 500.000
                        },
                        {
                            "id": 27004,
                            "periodId": 15578,
                            "defaultValue": 500.000
                        },
                        {
                            "id": 27005,
                            "periodId": 15579,
                            "defaultValue": 500.000
                        },
                        {
                            "id": 27006,
                            "periodId": 15580,
                            "defaultValue": 500.000
                        }
                    ]
                }
            ]
        },
        {
            "id": 12949,
            "attribution": {
                "createdOn": "2023-12-28T15:22:28.000+0530",
                "lastUpdatedOn": "2023-12-28T15:22:28.000+0530",
                "lastUpdatedBy": {
                    "id": 50681568,
                    "code": "kerala1_till1",
                    "description": "",
                    "name": "kerala1_till1",
                    "type": "TILL"
                },
                "createdBy": {
                    "id": 50681568,
                    "code": "kerala1_till1",
                    "description": "",
                    "name": "kerala1_till1",
                    "type": "TILL"
                }
            },
            "name": "MadridstaloyaltystreakTargetGroup002",
            "active": false,
            "preferredTillId": 0,
            "streaks": [
                {
                    "id": 250,
                    "attribution": {
                        "createdOn": "2023-12-28T15:22:28.000+0530",
                        "lastUpdatedOn": "2023-12-28T15:22:28.000+0530",
                        "lastUpdatedBy": {
                            "id": 50681568,
                            "code": "kerala1_till1",
                            "description": "",
                            "name": "kerala1_till1",
                            "type": "TILL"
                        },
                        "createdBy": {
                            "id": 50681568,
                            "code": "kerala1_till1",
                            "description": "",
                            "name": "kerala1_till1",
                            "type": "TILL"
                        }
                    },
                    "targetGroupId": 12949,
                    "name": "Madridstaloyaltystreak001Streak22",
                    "targetCountOfSequence": 2
                },
                {
                    "id": 251,
                    "attribution": {
                        "createdOn": "2023-12-28T15:22:28.000+0530",
                        "lastUpdatedOn": "2023-12-28T15:22:28.000+0530",
                        "lastUpdatedBy": {
                            "id": 50681568,
                            "code": "kerala1_till1",
                            "description": "",
                            "name": "kerala1_till1",
                            "type": "TILL"
                        },
                        "createdBy": {
                            "id": 50681568,
                            "code": "kerala1_till1",
                            "description": "",
                            "name": "kerala1_till1",
                            "type": "TILL"
                        }
                    },
                    "targetGroupId": 12949,
                    "name": "Madridstaloyaltystreak001Streak44",
                    "targetCountOfSequence": 3
                }
            ],
            "totalPeriods": 5,
            "description": "Madridsta Demo streak 1",
            "targetEvaluationType": "FIXED_CALENDAR_WINDOW",
            "recurringCycles": 0,
            "frequency": 0,
            "targetCycleStartDate": "2023-12-29T00:00:00.000Z",
            "targetCycleEndDate": "2024-01-03T23:59:59.000Z",
            "frequencyType": "DAILY",
            "trackingType": "STREAKS",
            "createdOn": 1703757148000,
            "targets": [
                {
                    "id": 23510,
                    "attribution": {
                        "createdOn": "2023-12-28T15:22:28.000+0530",
                        "lastUpdatedOn": "2023-12-28T15:22:28.000+0530",
                        "lastUpdatedBy": {
                            "id": 50681568,
                            "code": "kerala1_till1",
                            "description": "",
                            "name": "kerala1_till1",
                            "type": "TILL"
                        },
                        "createdBy": {
                            "id": 50681568,
                            "code": "kerala1_till1",
                            "description": "",
                            "name": "kerala1_till1",
                            "type": "TILL"
                        }
                    },
                    "name": "MadridstaloyaltystreakTargetGroup002TXN500",
                    "emfRuleSetId": 1265433,
                    "targetType": "SALES",
                    "targetEntity": "TRANSACTION",
                    "eventName": "TransactionAdd",
                    "targetGroupId": 12949,
                    "description": "streak",
                    "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\"}]}",
                    "filters": [
                        {
                            "entityType": "STORE",
                            "entityIds": [
                                50681567
                            ]
                        }
                    ],
                    "enrolmentMethod": "TRANSACTION",
                    "defaultValues": [
                        {
                            "id": 26997,
                            "periodId": 15566,
                            "defaultValue": 500.000
                        },
                        {
                            "id": 26998,
                            "periodId": 15567,
                            "defaultValue": 500.000
                        },
                        {
                            "id": 26999,
                            "periodId": 15568,
                            "defaultValue": 500.000
                        },
                        {
                            "id": 27000,
                            "periodId": 15569,
                            "defaultValue": 500.000
                        },
                        {
                            "id": 27001,
                            "periodId": 15570,
                            "defaultValue": 500.000
                        }
                    ]
                }
            ]
        },
        {
            "id": 11905,
            "attribution": {
                "createdOn": "2023-12-18T17:22:30.000+0530",
                "lastUpdatedOn": "2023-12-18T17:22:30.000+0530",
                "lastUpdatedBy": {
                    "id": 50681568,
                    "code": "kerala1_till1",
                    "description": "",
                    "name": "kerala1_till1",
                    "type": "TILL"
                },
                "createdBy": {
                    "id": 50681568,
                    "code": "kerala1_till1",
                    "description": "",
                    "name": "kerala1_till1",
                    "type": "TILL"
                }
            },
            "name": "MadridstaloyaltystreakTargetGroup001",
            "active": false,
            "preferredTillId": 0,
            "streaks": [
                {
                    "id": 219,
                    "attribution": {
                        "createdOn": "2023-12-18T17:22:30.000+0530",
                        "lastUpdatedOn": "2023-12-18T17:22:30.000+0530",
                        "lastUpdatedBy": {
                            "id": 50681568,
                            "code": "kerala1_till1",
                            "description": "",
                            "name": "kerala1_till1",
                            "type": "TILL"
                        },
                        "createdBy": {
                            "id": 50681568,
                            "code": "kerala1_till1",
                            "description": "",
                            "name": "kerala1_till1",
                            "type": "TILL"
                        }
                    },
                    "targetGroupId": 11905,
                    "name": "Madridstaloyaltystreak001Streak2",
                    "targetCountOfSequence": 2
                },
                {
                    "id": 220,
                    "attribution": {
                        "createdOn": "2023-12-18T17:22:30.000+0530",
                        "lastUpdatedOn": "2023-12-18T17:22:30.000+0530",
                        "lastUpdatedBy": {
                            "id": 50681568,
                            "code": "kerala1_till1",
                            "description": "",
                            "name": "kerala1_till1",
                            "type": "TILL"
                        },
                        "createdBy": {
                            "id": 50681568,
                            "code": "kerala1_till1",
                            "description": "",
                            "name": "kerala1_till1",
                            "type": "TILL"
                        }
                    },
                    "targetGroupId": 11905,
                    "name": "Madridstaloyaltystreak001Streak4",
                    "targetCountOfSequence": 4
                },
                {
                    "id": 221,
                    "attribution": {
                        "createdOn": "2023-12-18T17:22:30.000+0530",
                        "lastUpdatedOn": "2023-12-18T17:22:30.000+0530",
                        "lastUpdatedBy": {
                            "id": 50681568,
                            "code": "kerala1_till1",
                            "description": "",
                            "name": "kerala1_till1",
                            "type": "TILL"
                        },
                        "createdBy": {
                            "id": 50681568,
                            "code": "kerala1_till1",
                            "description": "",
                            "name": "kerala1_till1",
                            "type": "TILL"
                        }
                    },
                    "targetGroupId": 11905,
                    "name": "Madridstaloyaltystreak001Streak7",
                    "targetCountOfSequence": 7
                }
            ],
            "totalPeriods": 15,
            "description": "Madridsta Demo streak 1",
            "targetEvaluationType": "FIXED_CALENDAR_WINDOW",
            "recurringCycles": 0,
            "frequency": 0,
            "targetCycleStartDate": "2023-12-19T00:00:00.000Z",
            "targetCycleEndDate": "2024-01-02T23:59:59.000Z",
            "frequencyType": "DAILY",
            "trackingType": "STREAKS",
            "createdOn": 1702900350000,
            "targets": [
                {
                    "id": 21401,
                    "attribution": {
                        "createdOn": "2023-12-18T17:22:30.000+0530",
                        "lastUpdatedOn": "2023-12-18T17:22:30.000+0530",
                        "lastUpdatedBy": {
                            "id": 50681568,
                            "code": "kerala1_till1",
                            "description": "",
                            "name": "kerala1_till1",
                            "type": "TILL"
                        },
                        "createdBy": {
                            "id": 50681568,
                            "code": "kerala1_till1",
                            "description": "",
                            "name": "kerala1_till1",
                            "type": "TILL"
                        }
                    },
                    "name": "MadridstaloyaltystreakTargetGroup001TXN500",
                    "emfRuleSetId": 1262814,
                    "targetType": "SALES",
                    "targetEntity": "TRANSACTION",
                    "eventName": "TransactionAdd",
                    "targetGroupId": 11905,
                    "description": "streak",
                    "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\"}]}",
                    "filters": [
                        {
                            "entityType": "STORE",
                            "entityIds": [
                                50681567
                            ]
                        }
                    ],
                    "enrolmentMethod": "TRANSACTION",
                    "defaultValues": [
                        {
                            "id": 24442,
                            "periodId": 14189,
                            "defaultValue": 500.000
                        },
                        {
                            "id": 24443,
                            "periodId": 14190,
                            "defaultValue": 500.000
                        },
                        {
                            "id": 24444,
                            "periodId": 14191,
                            "defaultValue": 500.000
                        },
                        {
                            "id": 24445,
                            "periodId": 14192,
                            "defaultValue": 500.000
                        },
                        {
                            "id": 24446,
                            "periodId": 14193,
                            "defaultValue": 500.000
                        },
                        {
                            "id": 24447,
                            "periodId": 14194,
                            "defaultValue": 500.000
                        },
                        {
                            "id": 24448,
                            "periodId": 14195,
                            "defaultValue": 500.000
                        },
                        {
                            "id": 24449,
                            "periodId": 14196,
                            "defaultValue": 500.000
                        },
                        {
                            "id": 24450,
                            "periodId": 14197,
                            "defaultValue": 500.000
                        },
                        {
                            "id": 24451,
                            "periodId": 14198,
                            "defaultValue": 500.000
                        },
                        {
                            "id": 24452,
                            "periodId": 14199,
                            "defaultValue": 500.000
                        },
                        {
                            "id": 24453,
                            "periodId": 14200,
                            "defaultValue": 500.000
                        },
                        {
                            "id": 24454,
                            "periodId": 14201,
                            "defaultValue": 500.000
                        },
                        {
                            "id": 24455,
                            "periodId": 14202,
                            "defaultValue": 500.000
                        },
                        {
                            "id": 24456,
                            "periodId": 14203,
                            "defaultValue": 500.000
                        }
                    ]
                }
            ]
        }
    ],
    "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": []
}
Language
Credentials
Basic
base64
:
URL
Click Try It! to start a request and see the response here!