Poq.SDK.Node

Home > @poq/sdk-sfcc > ICartService > removeCoupon

ICartService.removeCoupon() method

Removes coupon code from coupon codes collection

Signature:

removeCoupon(authInfo: AuthInfo, customerId: string, appIdentifier: string, poqUserId: string, couponItemId: string, isGuest: boolean, locale?: string): Promise<PoqResponse<void>>;

Parameters

Parameter Type Description
authInfo AuthInfo The auth info to make request (credentials or token).
customerId string The customer id.
appIdentifier string The unique guid v4 app identifier.
poqUserId string The unique identifier of the poq user.
couponItemId string The coupon item identifier.
isGuest boolean The flag indicates whether user is guest.
locale string (Optional) The indicator carries information about locale.

Returns:

Promise<PoqResponse<void>>