You are reading the documentation for v7.x and earlier, which is no longer the latest version. Switch to v8.x
AddVoucherToCartProps
Properties for adding a voucher to a cart.
export interface AddVoucherToCartProps extends 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). |