post https://app.ecwid.com/api/v3//products//combinations//image/async
This method allows displaying the variation image almost instantly as Ecwid will use the provided URL for the image. It will be downloaded later to Ecwid's CDN for display in the store.
All body params are mandatory. Width and height must be positive. The maximum allowed file size is 20Mb.
Headers
Name | Type | Description |
---|---|---|
Authorization | string | oAuth token with mandatory Bearer before it. Example: Bearer e***s0 , where e***s0 should be replaced with your oAuth token. |
Request
A JSON object with the following fields:
Field | Type | Description |
---|---|---|
url | string | Image URL |
width | number | Width of the image |
height | number | Height of the image |
Response
An empty JSON response. The image should be uploaded almost instantly.
Errors
In case of error, Ecwid responds with an error HTTP status code and JSON-formatted body containing the error description.