This endpoint is used to upload a product image associated with the gifted product.The upload gift image endpoint has been implemented in the Gifting Web Component, and It's all setup to save developer's time and effort. Payload#
An object for the form that contains the details of the uploaded image.
Response#
product.upoladGiftImage.success
Data is available when the success is true
this is the url of the uploaded image
Usage#
To perform the action of uploading a product image associated with a gifted product, the developer may call the method uploadGiftImage()
as follows.Events#
This endpoint may trigger two events, the onGiftImageUploadSucceeded and onGiftImageUploadFailed events.onGiftImageUploadSucceeded#
This event is triggered when uploading a product image associated with a gifted product is done without having any errors coming back from the backend.onGiftImageUploadFailed#
This event is triggered when uploading a product image associated with a gifted product is not completed and an error has occurred. Modified at 2025-03-04 12:54:02