Salla icon

Salla

Execute Salla Merchant API operations through the unified Actions backend.

Actions150

Marketing → Update Coupon

AI-generated

Summary

Update an existing marketing coupon in Salla by specifying its unique Coupon Id and optional fields to modify the coupon's properties such as code, type, amount, usage restrictions, scope limits (products, categories, brands, groups, shipping companies), and marketing commission details.

Inputs

  • Sub-resource (required) — Select a sub-resource within the Marketing category, typically 'coupons' for this operation.
  • Return Mode — Choose the response format: 'Data Only' for the Salla data payload or 'Full Envelope' for the complete backend response including status and raw data.
  • Coupon Id (required) — The unique identification number assigned to the Coupon to update.
  • Additional Fields — Optional fields to update coupon details, including but not limited to Coupon Code, Type (percentage or fixed amount), Amount, Start and Expiry Dates, Usage Limits, Minimum and Maximum Amounts, Free Shipping flag, Exclusions or Inclusions of Products, Categories, Brands, Groups, Shipping Companies, Payment Methods, and Marketing commission details such as marketer name, type, amount, and visibility.

Output shape

a list of JSON objects representing the updated coupon data or the full response envelope, depending on the Return Mode selected.

The output contains either the specific data payload for the updated coupon or the full backend response envelope. Arrays in data payloads may emit multiple items. Errors from the Salla API are surfaced as node execution errors with detailed messages.

Examples

Example 1: Update the amount and usage limit of an existing coupon

Specify the Coupon Id, set the 'type' to 'fixed', set the new 'amount', and optionally update 'usage_limit'. Choose 'Data Only' as Return Mode to get the updated coupon payload.

Discussion