younifyd
Menu

Remove Loyalty Points

Deduct points from customer profile

PUT/v1/loyalty_programs/{loyaltyProgramId}/profile/{integrationId}/deduct_points

Use it in a workflow

  1. Add a step and choose the Talon.One connector.
  2. Pick the Remove Loyalty Points action (under management).
  3. Fill in the fields below, then reference the result from later steps as {{removeLoyaltyPoints.response.data}}.

Request

Path parameters

loyaltyProgramIdstringrequired

The identifier for the loyalty program.

integrationIdstringrequired

The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier.

Request body

Enter the body as JSON in the step's Body field.

pointsnumberrequired

Amount of loyalty points.

namestring

Name / reason for the point deduction.

subledgerIdstring

ID of the subledger the points are deducted from.

applicationIdinteger (int64)

ID of the Application that is connected to the loyalty program.

json
{
  "points": 300,
  "name": "Penalty",
  "subledgerId": "sub-123",
  "applicationId": 322
}

Response

Returns 204 with a any. Read it in later steps with {{removeLoyaltyPoints.response.data.<field>}}.

Need more? See the Talon.One guide for connection setup and behaviour shared by every action.

Was this page helpful?