@plentymarkets/shop-api / deleteCoupon
Function: deleteCoupon() ​
deleteCoupon(
context
,params
):Promise
<Data
<DeleteCouponResponse
>>
Method deleteCoupon - Used to delete the coupon from the cart.
Parameters ​
• context: PlentysystemsIntegrationContext
• params: DoAddCouponParams
couponCode: string,
Returns ​
Promise
<Data
<DeleteCouponResponse
>>
The cart or error.
Remarks ​
- Calls /rest/storefront/coupons/
- Method should be used to delete the coupon from the cart.
Example ​
ts
const { data } = await sdk.boilerplate.deleteCoupon({
couponCode: ''
});