ReadonlycartOptional ReadonlycartDiscountCode can only be applied to Carts that match this predicate.
ReadonlycodeUser-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 ReadonlycustomCustom Fields for the DiscountCode.
Optional ReadonlydescriptionDescription of the DiscountCode.
Optional ReadonlygroupsGroups to which the DiscountCode will belong to.
Optional ReadonlyisOnly active DiscountCodes can be applied to the Cart.
Optional ReadonlykeyUser-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](/../api/import-export/overview) and the [Merchant Center](/../merchant-center/import-data).
Optional ReadonlymaxNumber of times the DiscountCode can be applied.
If not set, the DiscountCode can be applied any number of times.
Optional ReadonlymaxNumber of times the DiscountCode can be applied per Customer.
If not set, the DiscountCode can be applied any number of times.
Optional ReadonlynameName of the DiscountCode.
Optional ReadonlyvalidDate and time (UTC) from which the DiscountCode is effective. Must be earlier than validUntil.
Optional ReadonlyvalidDate 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.