Salla icon

Salla

Interact with Salla.sa e-commerce platform API

Actions38

Overview

This node integrates with the Salla.sa e-commerce platform API, allowing users to manage various resources such as orders, products, customers, addresses, special offers, coupons, shipments, and digital products. Specifically, for the Special Offer resource, it supports operations including getting a single special offer, retrieving all special offers, creating, updating, and deleting special offers.

The Delete operation for the Special Offer resource enables users to remove a special offer from their Salla store by specifying its unique ID. This is useful for managing promotions and ensuring outdated or invalid offers are no longer available to customers.

Practical example:
A marketing team wants to automatically remove expired special offers from their online store. Using this node's Delete operation on the Special Offer resource, they can set up an automated workflow that deletes specific special offers by their IDs, keeping the store's promotions up-to-date without manual intervention.

Properties

Name Meaning
ID The unique identifier of the special offer to delete. This is required to specify which special offer should be removed.

Output

The node outputs a JSON array containing the response from the Salla API after attempting to delete the specified special offer. Typically, this will include confirmation of deletion or details about the deleted resource. If the deletion is successful, the output confirms the removal; if not, it may contain error information.

No binary data output is involved in this operation.

Dependencies

  • Requires an active connection to the Salla.sa e-commerce platform via an OAuth2 API credential.
  • The node depends on the sallaApiRequest helper function to make authenticated HTTP requests to the Salla API endpoints.
  • Proper configuration of the OAuth2 credentials within n8n is necessary to authenticate API calls.

Troubleshooting

  • Common issues:

    • Providing an invalid or non-existent special offer ID will result in an error from the API indicating the resource was not found.
    • Insufficient permissions or incorrect OAuth2 credentials may cause authentication errors.
    • Network connectivity problems can prevent the node from reaching the Salla API.
  • Error messages and resolutions:

    • "The operation "delete" is not supported for special offers!" — This indicates a misconfiguration or unsupported operation; ensure the operation parameter is correctly set to "delete" for the Special Offer resource.
    • API errors related to authorization (e.g., 401 Unauthorized) suggest checking and refreshing the OAuth2 credentials.
    • Errors indicating missing or invalid ID mean the user must provide a valid special offer ID.

Links and References

Discussion