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. 
扫码加入 Apifox 微信交流群
在这里,获得 Apifox 使用上的任何帮助,快速上手让你的研测效率得到大幅提升

扫码加入交流群Modified at 2025-02-20 07:53:20