Get product video

Upload video instead of main product image using URL

Headers

NameTypeDescription
AuthorizationstringoAuth token with mandatory Bearer before it. Example: Bearer e***s0, where e***s0 should be replaced with your oAuth token.

Response

A JSON object of type 'video' with the following fields:

Video

FieldTypeDescription
idnumberInternal video ID
videoCoverIdnumberID of the cover image for the video (from 'images')
urlbooleanURL to the video file
embedHtmlstringEmbedded code for the video file
providerNamestringVideo hosting provider name (could be empty)
titlestringVideo title (could be empty)
image160pxUrlstringURL of the video cover image resized to fit 160x160px
image400pxUrlstringURL of the video cover image resized to fit 400x400px
image800pxUrlstringURL of the video cover image resized to fit 800x800px
image1500pxUrlstringURL of the video cover image resized to fit 1500x1500px

Errors

In case of error, Ecwid responds with an error HTTP status code and JSON-formatted body containing error description

HTTP codes

HTTP StatusDescription
400Request parameters are malformed
403Access token doesn't have update_catalog scope
404Product is not found
500Adding video process failed or there was an internal server error while processing a link

Error response body (optional)

FieldTypeDescription
errorMessagestringError message
Language