younifyd
Menu

Add Loyalty Card Points

Add points to card

PUT/v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/add_points

Use it in a workflow

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

Request

Path parameters

loyaltyProgramIdinteger (int64)required

Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. **Important**: The loyalty card ID requires [URL encoding](https://www.w3schools.com/tags//ref_urlencode.asp) if it contains special characters. For example, you must encode `NewCard2026%` as `NewCard2026%25`.

loyaltyCardIdstringrequired

Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint.

Request body

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

pointsnumberrequired

Amount of loyalty points.

namestring

Name / reason for the point addition.

validityDurationstring

The time format is either: - `unlimited` or, - an **integer** followed by one letter indicating the time unit. Examples: `unlimited`, `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. If passed, `validUntil` should be omitted.

validUntilstring (date-time)

Date and time when points should expire. The value should be provided in RFC 3339 format. If passed, `validityDuration` should be omitted.

pendingDurationstring

The amount of time before the points are considered valid. The time format is either: - `immediate` or, - `on_action` or, - an **integer** followed by one letter indicating the time unit. Examples: `immediate`, `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`, `on_action`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year.

pendingUntilstring (date-time)

Date and time after the points are considered valid. The value should be provided in RFC 3339 format. If passed, `pendingDuration` should be omitted.

subledgerIdstring

ID of the subledger the points are added to. If there is no existing subledger with this ID, the subledger is created automatically.

applicationIdinteger (int64)

ID of the Application that is connected to the loyalty program. It is displayed in your Talon.One deployment URL.

json
{
  "points": 300,
  "name": "Compensation",
  "validityDuration": "5D",
  "validUntil": {},
  "pendingDuration": "12h",
  "pendingUntil": {},
  "subledgerId": "sub-123",
  "applicationId": 322
}

Response

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

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

Add Loyalty Card Points — Talon.One — Documentation