Salla icon

Salla

Interact with Salla.sa e-commerce platform API

Actions45

Special Offer → Update

AI-generated

Overview

This node operation updates an existing special offer in the Salla e-commerce platform. It allows users to modify various attributes of a special offer such as message, start and expiry dates, status, minimum purchase requirements, and specific details for 'Buy X Get Y' type offers. This operation is useful for managing promotional campaigns dynamically, ensuring offers remain relevant and accurate over time.

Use Case Examples

  1. Updating the message and expiry date of a special offer to extend a promotion.
  2. Changing the minimum purchase amount required to activate a special offer.
  3. Modifying the products involved in a 'Buy X Get Y' offer to reflect new inventory or marketing strategies.

Properties

Name Meaning
ID The unique identifier of the special offer to update, required to specify which offer to modify.
Additional Fields A collection of optional fields to update the special offer's details, including message, start and expiry dates, status, minimum purchase amount, minimum items count, coupon application requirement, and specific parameters for 'Buy X Get Y' offers such as buy quantity, buy product IDs, get quantity, get discount type, and get product IDs.

Output

JSON

  • id - The ID of the updated special offer.
  • name - The name or title of the special offer.
  • applied_channel - Where the offer is applied (e.g., browser, application).
  • offer_type - The type of special offer (e.g., buy_x_get_y, percentage).
  • applied_to - What the offer applies to (e.g., order, product).
  • message - Description or message of the offer.
  • start_date - Start date of the offer.
  • expiry_date - Expiry date of the offer.
  • status - Current status of the offer (active or inactive).
  • min_purchase_amount - Minimum purchase amount required to activate the offer.
  • min_items_count - Minimum number of items required to activate the offer.
  • applied_with_coupon - Indicates if the offer requires a coupon.
  • buy - Details of the 'buy' part in a buy_x_get_y offer, including type, quantity, and products.
  • get - Details of the 'get' part in a buy_x_get_y offer, including type, discount type, quantity, and products.

Dependencies

  • Salla API OAuth2 credentials

Troubleshooting

  • Ensure the special offer ID is correct and exists in the Salla platform to avoid 'resource not found' errors.
  • Verify that the fields provided in 'Additional Fields' are valid and correctly formatted, especially date fields and product ID lists.
  • Check API credentials and permissions if the update request fails due to authentication or authorization issues.

Discussion