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 retrieve coupon data. Specifically, the "Get All" operation for the "Coupon" resource fetches multiple coupons from the store, optionally filtered and limited by user-defined criteria.

Common scenarios where this node is beneficial include:

  • Retrieving a list of all available coupons to display or process in workflows.
  • Filtering coupons by status or date range to analyze active promotions.
  • Searching coupons by keywords to find specific discount codes.

For example, an e-commerce manager could use this node to automatically pull all active coupons created within the last month and send them in a report email.

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 not returning all (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 on or after this date/time.
- Date To Filter coupons created on or before this date/time.
- Search Search term to filter coupons by keyword.

Output

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

No binary data output is produced by this operation.

Dependencies

  • Requires an API authentication token configured in n8n credentials to access the Salla 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 credential.

Troubleshooting

  • Common issues:

    • Authentication errors if the API key/token is missing or invalid.
    • Exceeding rate limits imposed by the Salla API.
    • Providing invalid filter values or date formats may cause request failures.
  • Error messages:

    • "The operation "getAll" is not supported for coupons!" β€” indicates an unsupported operation was requested; ensure the operation parameter is correctly set.
    • Network or API errors will typically propagate with their message; verify connectivity and API credentials.
  • Resolutions:

    • Verify that the API credential is correctly set up and has necessary permissions.
    • Check filter inputs for correct types and valid values.
    • Use the "Return All" option carefully to avoid large data loads that might time out.

Links and References

Discussion