Salla icon

Salla

Execute Salla Merchant API operations through the unified Actions backend.

Actions150

Customers → Update Customer Loyalty Points

AI-generated

Summary

Update the loyalty points for one or more customers on the Salla platform, specifying the points change, operation type (increase or decrease), reason, and communication channels.

Inputs

  • Sub-resource (required) — Select the sub-resource within Customers resource, must be 'loyalty' for this operation.
  • Points (required) — The number of loyalty points to add or subtract, unless Reset Points is set to true.
  • Type (required) — Specify whether to increase ('plus') or decrease ('minus') the loyalty points.
  • Reason (required) — A text reason explaining why the loyalty points are updated.
  • Channel Send (required) — JSON object selecting which communication channels to send updates through.
  • Customers (required) — JSON array listing customer IDs that will receive the loyalty points update.
  • Additional Fields — Optional fields including 'Reset Points' (boolean to reset loyalty points) and 'Select All' (boolean to select all customers for the update).
  • Return Mode — Choose response format: 'Data Only' returns only the data payload, 'Full Envelope' returns full backend response including status.

Output shape

a list of response items each containing the updated loyalty points data or full backend response envelope depending on Return Mode setting

The output list may include multiple entries if the API returns multiple data items. Errors in the request or response will raise node execution errors with detailed messages.

Examples

Example 1: Add 100 loyalty points to specified customers via the web channel with a reason 'Promotion Bonus'.

Set Type to 'plus', Points to 100, provide Customer IDs array, Reason as 'Promotion Bonus', Channel Send specifying 'web', Sub-resource as 'loyalty', and Return Mode as needed.

Discussion