Adds one or more images to a product.


  • product_id GET

    Product ID.

  • files POST

    Array of image files. Files must be sent to the server in the same way as it occurs with the use of HTML tag <form> with the enctype="multipart/form-data" attribute.

  • descriptions POST Optional

    Array of image descriptions ordered according to the image files.

  • format GET Optional

    Sets response format. Available options: json (default), xml.

Return value

Added images’ data. The sub-array corresponding to each image contains values with the following keys:

  • product_id int ID of the product for which the image is uploaded.
  • id int Image ID.
  • description string Description.
  • height int Height in pixels.
  • width int With in pixels.
  • size int File size in bytes.
  • sort int Sort order value starting with 0.
  • upload_datetime datetime Image upload date and time.
  • ext string File name extension.
  • url_thumb string URL of the image thumbnail with size '200x0'.
  • url_big string URL of the image thumbnail with size '750x0'.