Record a Customer Action

This endpoint records an action performed by a customer. It will apply the action to all active custom action campaigns and award the necessary points and/or discounts.

Body Params
string
required
Defaults to CustomAction

The type of action. Almost always set this to CustomAction

string
required

The email address used to identify the customer who performed the action. Required if no customer_id is passed.

string

The unique identifier of the customer who performed the action in your system. Required if no customer_email is passed.

string
required

The name of the action that was performed. This must match the name set for one of your Custom Action Campaigns.

string

The ip address of the user when the action was performed. This is required if this action completes a referral program requirement.

string

The browser user agent of the user when the action was performed. This is strongly recommended if this action completes a referral program requirements.

string

The time the action was performed. This will default to the current time. Use this if you need to back date an action.

int32

Use this to override the normal amount of points awarded for performing the action. Will default to the rules of the campaign otherwise.

string

Use this to override the normal description shown to the user in their history. Will default to the campaign settings otherwise.

Responses

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