Home > @vsf-enterprise/sapcc-api > AddVoucherAndGetNewCartVersionProps

AddVoucherAndGetNewCartVersionProps interface

Definition of composed params for applying coupon to the cart and getting a new version of it.

Signature:

export interface AddVoucherAndGetNewCartVersionProps extends BaseProps 

Extends: BaseProps

Properties

Property Type Description
cartId string Cart identifier: cart code for logged-in user, cart guid for anonymous user, current for the last modified cart.
userId string User identifier or one of the literals: current for currently authenticated user, anonymous for anonymous user.
voucherId string Voucher identifier (code)