Salla icon

Salla

Interact with Salla.sa e-commerce platform API

Actions45

Coupon → Get All

AI-generated

Overview

This node operation retrieves multiple coupons from the Salla e-commerce platform. It supports fetching all coupons or limiting the number of results returned. Users can filter coupons by keyword (coupon code) and status (active, inactive, expired). This operation is useful for scenarios where you need to list or analyze available coupons, such as marketing campaigns or discount management.

Use Case Examples

  1. Fetch all active coupons to display in a marketing dashboard.
  2. Retrieve a limited number of coupons filtered by a specific code keyword for auditing purposes.

Properties

Name Meaning
Return All Whether to return all coupon results or only up to a specified limit.
Limit Maximum number of coupon results to return when 'Return All' is false.
Filters Filters to narrow down the coupon results, including keyword search by coupon code and filtering by coupon status (active, inactive, expired).

Output

JSON

  • code - Coupon code identifier.
  • type - Type of discount (percentage or fixed amount).
  • amount - Discount amount value.
  • expiry_date - Coupon expiration date.
  • free_shipping - Indicates if the coupon includes free shipping.
  • exclude_sale_products - Indicates if the coupon excludes products already on sale.
  • status - Coupon status (active, inactive, expired).

Dependencies

  • Salla API with OAuth2 authentication

Troubleshooting

  • Ensure the OAuth2 API credentials are correctly configured to avoid authentication errors.
  • If no coupons are returned, verify the filter criteria and ensure coupons exist matching those filters.
  • The 'Limit' parameter must be between 1 and 100; setting values outside this range will cause errors.

Links

Discussion