Home > @poq/sdk-sfcc > CartService > addCoupon
Adds coupon code to coupon codes collection.
Signature:
addCoupon(authInfo: AuthInfo, customerId: string, appIdentifier: string, poqUserId: string, couponCode: string, isGuest: boolean, locale?: string): Promise<PoqResponse<void>>;
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. |
couponCode | string | The coupon code. |
isGuest | boolean | The flag indicates whether user is guest. |
locale | string | (Optional) The indicator carries information about locale. |
Returns:
Promise<PoqResponse<void>>