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 coupons. Specifically, the Coupon - Get All operation retrieves multiple coupon records from the platform. It supports filtering by status, date range, and search terms, as well as controlling the number of results returned.

Typical use cases include:

  • Fetching all available coupons for reporting or analytics.
  • Retrieving active or specific-status coupons to apply business logic.
  • Searching coupons by keywords or filtering by creation/modification dates.
  • Limiting the number of coupons fetched to optimize performance.

For example, a user might want to get all active coupons created in the last month or retrieve only 20 coupons matching a certain search term.

Properties

Name Meaning
Return All Whether to return all matching coupons or limit the number of results.
Limit Maximum number of coupons to return if "Return All" is false (minimum 1, maximum 100).
Filters Collection of filters to narrow down results:
   Status Filter coupons by one or more statuses: Active, Inactive, Draft, Pending, Completed, Cancelled.
   Date From Filter coupons created or modified from this date/time onward.
   Date To Filter coupons created or modified up to this date/time.
   Search Search term to filter coupons by matching text fields.

Output

The output is a JSON array where each element represents a coupon object retrieved from the Salla API. Each coupon object contains the data fields as provided by the API, such as coupon ID, name, status, description, creation date, and other relevant coupon details.

No binary data output is produced by this operation.

Dependencies

  • Requires an API authentication credential configured in n8n to access the Salla.sa API.
  • The node uses internal helper functions to make authenticated HTTP requests to the Salla API endpoints.
  • No additional external dependencies are required beyond the configured API key/token.

Troubleshooting

  • Common issues:

    • Authentication errors if the API credential is missing or invalid.
    • Exceeding API rate limits when requesting large datasets without using filters or limits.
    • Incorrect filter values causing no results to be returned.
  • Error messages:

    • "The operation "getAll" is not supported for coupons!" — indicates an unsupported operation was requested; ensure the operation parameter is correctly set to "getAll".
    • Network or API errors will typically propagate from the underlying request function; verify network connectivity and API credentials.
  • Resolutions:

    • Verify that the API credential is properly set up and has necessary permissions.
    • Use filters and limits to reduce the size of data requests.
    • Check the spelling and values of filter parameters.

Links and References

Discussion