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

AddVoucherToCartProps interface

Definition of the parameter structure for addVoucherToCart.


export interface AddVoucherToCartProps 


Property Type Description
cartId string Cart identifier: cart code for logged-in user, cart guid for anonymous user, current for the last modified cart.
currency? string (Optional) Selected store currency. Default currency will be overwritten.
lang? string (Optional) Selected store language. Default language will be overwritten.
userId string User identifier or one of the literals: current for currently authenticated user, anonymous for anonymous user.
voucherId string Voucher identifier (code)