Get
/api/3/Preview/GetPreviewImage?websiteId={websiteId}&webApiClientKey={webApiClientKey}&designId={designId}&viewCode={viewCode}&isThumbnail={isThumbnail}
This API is used to show the preview image of the customized products on the webstore.
It returns the preview of the product one view at a time, which is based on the view code that is being passed in the key of the ‘viewcode’ parameter.
It returns the response object, which contains the status of the operation along with the message if any error occurs during this process.
Request Information
Parameters
Response Information
Response body formats
On Success
On success, this method will revert with an image of a specific view of the product with the respective customization of the view for which the API is being called.
On Error
On error, this method will call back the JavaScript method in the website which is specified in the "errorCallback" parameter with errorMessage.
Error can occur if any of the parameters is passed with the wrong key value of data type.
Error Response:
{
"Response": "Error",
"Message": "Invalid webapiclientkey.",
"Data": null,
"ErrorCode": "226"
}