Readonly
cartOptional
Readonly
cartDiscountCode can only be applied to Carts that match this predicate.
Readonly
codeUser-defined unique identifier for the DiscountCode that can be added to the Cart to apply the related CartDiscounts. It cannot be modified after the DiscountCode is created.
Optional
Readonly
customCustom Fields for the DiscountCode.
Optional
Readonly
descriptionDescription of the DiscountCode.
Optional
Readonly
groupsGroups to which the DiscountCode will belong to.
Optional
Readonly
isOnly active DiscountCodes can be applied to the Cart.
Optional
Readonly
keyUser-defined unique identifier for the DiscountCode.
This field is optional for backwards compatibility reasons, but we strongly recommend setting it. Keys are mandatory for importing Discount Codes with the [Import API](/../import-export/) and the [Merchant Center](/../merchant-center/import-data).
Optional
Readonly
maxNumber of times the DiscountCode can be applied.
If not set, the DiscountCode can be applied any number of times.
Optional
Readonly
maxNumber of times the DiscountCode can be applied per Customer.
If not set, the DiscountCode can be applied any number of times.
Optional
Readonly
nameName of the DiscountCode.
Optional
Readonly
validDate and time (UTC) from which the DiscountCode is effective. Must be earlier than validUntil
.
Optional
Readonly
validDate and time (UTC) until which the DiscountCode is effective. Must be later than validFrom
.
Specify what CartDiscounts the API applies when you add the DiscountCode to the Cart.