This endpoint is used to add a product that has been gifted to the shopping cart, after which the customer can be redirected to the shopping cart page in order to complete the purchase of that product as a solo.The add gift to cart endpoint has been implemented in the Gifting Web Component, and It's all setup to save developer's time and effort. Payload authenticated
#
Response#
product.addGiftToCart.success
Usage#
To perform the action of adding a product that has been gifted to the shopping cart, the developer may call the method addGiftToCart
as follows.Events#
This endpoint may trigger two events, the onAddGiftToCartSucceeded and onAddGiftToCartFailed events.onAddGiftToCartSucceeded#
This event is triggered when the action of adding a product that has been gifted to the shopping cart is done without having any errors coming back from the backend.onAddGiftToCartFailed#
This event is triggered when the action of adding a product that has been gifted to the shopping cart is not completed and an error has occurred. 
扫码加入 Apifox 微信交流群
在这里,获得 Apifox 使用上的任何帮助,快速上手让你的研测效率得到大幅提升

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