Poq.SDK.Node

Home > @poq/sdk-sfcc > IBasketsClient > postBasketsByIDCoupons

IBasketsClient.postBasketsByIDCoupons() method

Adds a coupon to an existing basket.

Signature:

postBasketsByIDCoupons(basketId: string, body: CouponItem, options?: RequestOptions): Promise<PoqResponse<Basket>>;

Parameters

Parameter Type Description
basketId string The id of the basket to be modified.
body CouponItem  
options RequestOptions (Optional) Override http request option.

Returns:

Promise<PoqResponse<Basket>>