Actions38
- Order Actions
- Product Actions
- Customer Actions
- Address Actions
- Special Offer Actions
- Coupon Actions
- Shipment Actions
- Digital Product Actions
Overview
This node integrates with the Salla.sa e-commerce platform API to manage various resources, including coupons. Specifically, for the Coupon resource and the Delete operation, it allows users to delete a coupon by its unique ID. This is useful in scenarios where a coupon is no longer valid or needs to be removed from the system to prevent further use.
Practical examples:
- Automatically removing expired or invalid coupons from your store.
- Cleaning up test coupons created during development.
- Managing promotional campaigns by deleting outdated coupons.
Properties
| Name | Meaning |
|---|---|
| ID | The unique identifier of the coupon to delete. This is required to specify which coupon should be removed. |
Output
The output of this operation is the JSON response returned by the Salla API after attempting to delete the coupon. Typically, this will confirm whether the deletion was successful or provide error details if it failed.
The json output field contains the API's response data about the deleted coupon resource or an error message.
No binary data is involved in this operation.
Dependencies
- Requires an active connection to the Salla.sa e-commerce platform API.
- Requires an API authentication token credential configured in n8n (e.g., OAuth2 or API key).
- The node uses internal helper functions to make HTTP requests to the Salla API endpoints.
Troubleshooting
Common issues:
- Providing an invalid or non-existent coupon ID will result in an error from the API.
- Network connectivity problems can cause request failures.
- Insufficient permissions or invalid credentials will prevent deletion.
Error messages:
"The operation "delete" is not supported for coupons!"β This would indicate a misconfiguration or unsupported operation, but according to the code, "delete" is supported for coupons.- API errors related to authorization or resource not found will be passed through; check that the coupon ID exists and credentials are correct.
Resolution tips:
- Verify the coupon ID is correct and exists in the Salla system.
- Ensure the API credentials have permission to delete coupons.
- Check network connectivity and API endpoint availability.
Links and References
- Salla API Documentation (general reference for API endpoints)
- n8n documentation on creating custom nodes