Salla icon

Salla

Execute Salla Merchant API operations through the unified Actions backend.

Actions144

Marketing → Update Coupon

AI-generated

Summary

Updates an existing coupon's details and scope (products, categories, payment methods, etc.) in Salla.

Inputs

  • Coupon Id (required) — Unique identification number assigned to the Coupon.
  • Return Mode — Choose how the node should emit responses: Data Only (returns Salla payload) or Full Envelope (returns status, raw data, and envelope).
  • Code — Coupon Code. Body field.
  • Type — Coupon type. Percentage or fixed amount discount. Body field.
  • Amount — Coupon Amount. Required if the variable type is updated. Body field.
  • Start Date — Optional coupon start date. Accepted formats: YYYY-MM-DD or YYYY-MM-DD HH:MM:SS. Leave empty to keep the current value. Body field.
  • Expiry Date — New expiry date. Must be a valid future date/time (YYYY-MM-DD or YYYY-MM-DD HH:MM:SS). Leave empty to keep the existing expiry date. Body field.
  • Applied In — Coupon to be applied at. Value can either all or web or app Body field.
  • Usage Limit — Coupon Usage Limit. Body field.
  • Usage Limit Per User — Coupon Usage Limit Per User. Body field.
  • Minimum Amount — Coupon Minimum Amount. Body field.
  • Maximum Amount — Coupon Maximum Amount Body field.
  • Free Shipping — Whether or not the coupon include free shipping Body field.
  • Exclude Sale Products — Whether or not the coupon exclude on-sale products Body field.
  • Show Maximum Amount — Whether or not to show the maximum amount of the coupon Body field.
  • Marketing Show Maximum Amount — Whether or not to show the marketing maximum amount of the coupon to the marketer Body field.
  • Marketing Active — Whether or not the coupon include a marketer Body field.
  • Marketing Name — Marketer Name. required-if marketing_active = true Body field.
  • Marketing Type — Marketing commission type for this coupon. Body field.
  • Marketing Amount — Marketing Amount. required-if marketing_active = true Body field.
  • Marketing Hide Total Sales — Whether or not hide total sales Body field.
  • Marketing Maximum Amount — Marketing Maximum Amount Value. required-if marketing_active = true Body field.
  • Marketing Info — Marketing Additional Info Body field.
  • Beneficiary Domain — Beneficiary Email Domain Body field.
  • Products Include (IDs) — Update scope: limit this coupon to these product IDs. Leave empty to keep current scope.
  • Products Exclude (IDs) — Update scope: exclude these product IDs from this coupon.
  • List Include Categories (IDs) — Restrict this coupon to these category IDs.
  • List Exclude Categories (IDs) — Exclude these category IDs from this coupon.
  • List Exclude Brands (IDs) — Exclude these brand IDs from this coupon.
  • List Include Groups (IDs) — Limit this coupon to these customer group IDs.
  • List Exclude Groups (IDs) — Exclude these customer group IDs from this coupon.
  • List Exclude Shipping (IDs) — Exclude these shipping companies from this coupon.
  • Payment Methods — Limit this coupon to specific payment methods. Leave empty to allow all payment methods.

Output shape

A single record or an array of records representing the updated coupon, depending on the Return Mode.

When Return Mode is 'Full Envelope', the node returns the backend response envelope including status and raw data. The 'Additional Fields' section also supports advanced raw ID lists if the builder fields are not sufficient.

Examples

Example 1: Update a coupon's expiry date and enable free shipping

Coupon Id: 12345, Expiry Date: 2025-12-31, Free Shipping: true

Example 2: Restrict a coupon to specific products and payment methods

Coupon Id: 12345, Products Include: [10, 20], Payment Methods: [credit_card, paypal]

Example 3: Update marketing tracking for a coupon

Coupon Id: 12345, Marketing Active: true, Marketing Name: 'Affiliate Campaign', Marketing Type: 'percentage', Marketing Amount: 10

Links

Discussion