Salla icon

Salla

Interact with Salla.sa e-commerce platform API

Actions38

Overview

This node integrates with the Salla.sa e-commerce platform API to manage coupons. Specifically, the "Create" operation under the "Coupon" resource allows users to create new coupon entries in their Salla store. This is useful for automating marketing campaigns, discount management, or promotional activities by programmatically adding coupons without manual intervention.

Practical examples include:

  • Automatically generating coupons when a new marketing campaign starts.
  • Creating personalized discount codes for customers based on certain triggers.
  • Bulk creating multiple coupons as part of an automated workflow.

Properties

Name Meaning
Additional Fields Optional fields to specify details about the coupon:
- Name The name of the coupon.
- Description A description providing more information about the coupon.
- Status The status of the coupon; possible values are: "Active", "Inactive", or "Draft".

Output

The output of this node is a JSON object representing the newly created coupon resource as returned by the Salla API. It typically includes all properties of the coupon such as its ID, name, description, status, and any other metadata provided by the API.

No binary data output is involved in this operation.

Dependencies

  • Requires an API authentication token configured via OAuth2 credentials to access the Salla API.
  • The node depends on the sallaApiRequest function (from bundled dependencies) to make HTTP requests to the Salla API endpoints.
  • Proper network connectivity to the Salla.sa API endpoint is necessary.

Troubleshooting

  • Common issues:

    • Missing or invalid API credentials will cause authentication failures.
    • Providing invalid or incomplete additional fields may result in API validation errors.
    • Network issues can prevent successful communication with the Salla API.
  • Error messages:

    • "The operation "create" is not supported for coupons!" β€” This error should not occur if the operation is correctly set to "create" for the "coupon" resource. If it does, verify that the node parameters are correctly configured.
    • API response errors related to invalid input will be passed through; ensure all required fields meet the API's expectations.
  • Resolution tips:

    • Double-check the API credentials and permissions.
    • Validate the input fields before execution.
    • Ensure the Salla API service is reachable from your environment.

Links and References

Discussion