Modify targets

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

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

To create a new milestone, use the Create a Loyalty Promotion API


This API is used to modify targets in a target group. Meaning, "target group id", "target id" is needed and that is a mandatory parameter while calling this API.

Click on 200 symbol to see sample 200 response.

Click on request body example to see the example for the same.

Both will be available on the right side of the screen.

Path Params
int32
required

Group ID for which target needs to be added.

int64
required

Id of the target that need to be modified

Body Params
boolean

Current status of the target.

string

Short description of the target.

int32
int32
string
enum

How to enroll customers and add target values. Values: TRANSACTION (enroll loyalty customers who transacts during the target period), IMPORT (to import a list of customers with custom target value).

Allowed:
string

expression of the rule

string

Condition (rule expression) to be evaluated based for the chosen targetEntity.

filters
object

Restrict the target to specific stores.

string
required

Name of the target. Modifying the name is not recommended as it may lead to issues in loyalty promotions.

string
enum

Entity to define target condition. Values: TRANSACTION, LINEITEM, POINTS. For example, pass LINEITEM to define condition on the transaction line item.

Allowed:
int32

Unique ID of the target group associated with the target.

string
enum
required

Transaction parameter to consider for the target. Values: QUANTITY, SALES, COUNT, VISIT.

Allowed:
Responses

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