Salla icon

Salla

Execute Salla Merchant API operations through the unified Actions backend.

Actions144

Customers → Update Customer Loyalty Points

AI-generated

Summary

Update customer loyalty points for specified customers

Inputs

  • subResource (required) — Select a sub-resource within the chosen category. Must be 'loyalty' for this operation.
  • returnMode — Choose how the node should emit responses. 'Data Only' returns the Salla data payload (arrays may emit multiple items). 'Full Envelope' returns the full backend response envelope, including status and raw data. Default: 'dataOnly'.
  • points (required) — Loyalty points to apply. Required unless 'reset_points' additional field is set to true. Default: 0.
  • type (required) — The type of points change: 'plus' to increase points, 'minus' to decrease points.
  • reason (required) — Text for showing the reason for the update. Displayed to administrators in Salla.
  • channel_send (required) — Select which channel(s) to send the loyalty points update through.
  • customers (required) — Customers list that will receive loyalty points. Accepts comma/newline separated IDs or a JSON array (e.g. [123,456]). IDs are normalized to positive integers and deduplicated.
  • additionalFields — Optional additional fields container. Available fields: 'reset_points' (boolean, reset loyalty points body field), 'select_all' (boolean, select all customers body field). Default: {}.

Output shape

Depends on returnMode setting.

The node's source (dist/nodes/Actions/SallaActions.node.js) processes the body payload via the Salla Merchant API and returns a response envelope. The 'returnMode' parameter emitted by the node controls whether the workflow receives just the data payload or the full backend response including status codes and raw data. Customer IDs are normalized through the source's 'normalizeCustomersValue' function (line 5494) which validates, coerces to numbers, and deduplicates before API transmission.

Examples

Example 1: Increase loyalty points by 100 for customer ID 456 via the 'plus' type.

subResource: loyalty; returnMode: dataOnly; points: 100; type: plus; reason: 'Monthly reward'; channel_send: {}; customers: [456]

Links

Discussion