Salla icon

Salla

Interact with Salla.sa e-commerce platform API

Actions38

Overview

This node integrates with the Salla.sa e-commerce platform API to manage "Special Offer" resources. Specifically, the Update operation allows users to modify an existing special offer by specifying its ID and providing updated fields such as name, description, or status.

Typical use cases include:

  • Updating promotional campaigns or discounts on products.
  • Changing the status of a special offer (e.g., from draft to active).
  • Modifying the details of an ongoing special offer without recreating it.

For example, you might update a special offer's description to reflect new terms or change its status to inactive once the promotion ends.

Properties

Name Meaning
ID The unique identifier of the special offer to update.
Additional Fields Optional fields to update for the special offer:
- Name The new name/title of the special offer.
- Description A textual description explaining the special offer.
- Status The current state of the special offer. Possible values: Active, Inactive, Draft.

Output

The node outputs a JSON object representing the updated special offer resource as returned by the Salla API. This typically includes all properties of the special offer after the update, such as its ID, name, description, status, creation date, and any other metadata provided by the API.

No binary data output is involved in this operation.

Dependencies

  • Requires an API authentication credential configured in n8n to access the Salla.sa API.
  • Uses HTTP methods (PUT) to communicate with the endpoint /special-offers/{id}.
  • Relies on helper functions to make authenticated API requests and handle pagination if needed.

Troubleshooting

  • Invalid ID error: If the specified ID does not exist or is malformed, the API will return an error. Verify that the ID corresponds to an existing special offer.
  • Missing required fields: Although only the ID is strictly required, ensure that at least one additional field is provided to update; otherwise, the request may have no effect.
  • Authentication errors: Ensure the API key or OAuth token is valid and has sufficient permissions to update special offers.
  • Status value errors: When setting the status, use only the allowed options (active, inactive, draft). Invalid values will cause the API to reject the request.
  • Network issues: Check connectivity and API availability if requests time out or fail unexpectedly.

Links and References

Discussion