Salla icon

Salla

Interact with Salla.sa e-commerce platform API

Actions45

Product Image → Upload

AI-generated

Overview

This node operation uploads an image to a specified product on the Salla e-commerce platform. It supports uploading images either by providing a direct URL or by using binary image data from the workflow. Additional optional fields allow setting the image as the main product image, specifying the display order, and adding alternative text for SEO purposes. This operation is useful for automating product image management, such as adding new images to products in bulk or integrating with external image sources.

Use Case Examples

  1. Uploading a product image by URL to quickly add images hosted on external servers.
  2. Uploading a product image using binary data from a previous node, such as an image downloaded or generated within the workflow.
  3. Setting an uploaded image as the main product image to update the product's primary display image automatically.

Properties

Name Meaning
Product ID The ID of the product to add the image to.
Image Source Source of the image to upload, either a URL or binary data.
Image URL URL of the image to upload (required if Image Source is URL).
Binary Property Name of the binary property containing the image data (required if Image Source is Binary Data).
Additional Fields Optional fields to set image attributes such as main image flag, sort order, and alt text.

Output

JSON

  • id - ID of the uploaded image.
  • main - Boolean indicating if the image is set as the main product image.
  • sort - Sort order of the image.
  • alt - Alternative text for the image.
  • original - Original image URL or reference.

Dependencies

  • Salla API with OAuth2 authentication

Troubleshooting

  • Error if the specified binary property does not exist or contains no data when using binary image source. Ensure the binary property name is correct and the previous node outputs the image data.
  • API errors if the product ID is invalid or the image upload fails due to network or permission issues. Verify the product ID and API credentials.
  • Errors if required parameters are missing, such as product ID or image URL when using URL source.

Discussion