Salla icon

Salla

Interact with Salla.sa e-commerce platform API

Actions45

Special Offer → Create

AI-generated

Overview

This node operation creates a new special offer in the Salla e-commerce platform. It allows users to define promotional offers with various configurations such as offer name, applied channel, offer type, and what the offer applies to (order, product, category, or payment method). Additional optional fields include message, start and expiry dates, status, minimum purchase requirements, coupon application, and specific details for 'Buy X Get Y' type offers.

Use Case Examples

  1. Create a percentage discount special offer applicable to products on both browser and application channels.
  2. Create a 'Buy X Get Y' special offer specifying quantities and product IDs for both the 'buy' and 'get' parts.

Properties

Name Meaning
Offer Name Title or label for the promotional offer.
Applied Channel Where the offer applies, either browser only or both browser and application.
Offer Type Type of special offer such as Buy X Get Y, Percentage Discount, Fixed Amount Discount, or Discounts Table.
Applied To What the offer applies to, such as order, product, category, or payment method.
Additional Fields Optional fields to further define the special offer, including message, start and expiry dates, status, minimum purchase amount, minimum items count, coupon requirement, and specific fields for Buy X Get Y offers like buy quantity, buy product IDs, get quantity, get discount type, and get product IDs.

Output

JSON

  • id - Unique identifier of the created special offer.
  • name - Name of the special offer.
  • applied_channel - Channel where the offer is applied.
  • offer_type - Type of the special offer.
  • applied_to - What the offer applies to.
  • 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.
  • 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 - Whether the offer requires a valid coupon.
  • buy - Details of the 'buy' part in Buy X Get Y offers, including type, quantity, and product IDs.
  • get - Details of the 'get' part in Buy X Get Y offers, including type, discount type, quantity, and product IDs.

Dependencies

  • Salla API with OAuth2 authentication

Troubleshooting

  • Ensure all required fields like Offer Name, Applied Channel, Offer Type, and Applied To are provided to avoid validation errors.
  • For 'Buy X Get Y' offer type, ensure buy and get quantities and product IDs are correctly specified to prevent incomplete data errors.
  • Check API credentials and permissions if the request fails due to authentication issues.

Links

Discussion