You are reading the documentation for v7.x and earlier, which is no longer the latest version. Switch to v8.x
AddVoucherAndGetNewCartVersionProps
Composed properties for applying a coupon to a cart and getting a new version of the cart.
export interface AddVoucherAndGetNewCartVersionProps extends BaseProps, BaseUserId {
cartId: string;
voucherId: string;
}Properties
| Name | Required | Type | Description |
|---|---|---|---|
cartId | Required | string | Cart identifier: cart code for logged-in user, cart guid for anonymous user, current for the last modified cart. |
voucherId | Required | string | Voucher identifier (code). |