ReadonlycartReference to CartDiscounts that can be applied to the Cart once the DiscountCode is applied.
Optional ReadonlycartDiscountCode can only be applied to Carts that match this predicate.
ReadonlycodeUser-defined unique identifier of the DiscountCode that is used by the customer to apply the discount.
The value cannot be updated. Attempting to update the value will result in an [InvalidFieldsUpdate](/import-export/error#invalidfieldsupdateerror) error.
Optional ReadonlycustomCustom Fields of the DiscountCode.
Optional ReadonlydescriptionMaps to DiscountCode.description.
Optional ReadonlygroupsGroups to which the DiscountCode belongs.
ReadonlyisIndicates if the DiscountCode is active and can be applied to the Cart.
ReadonlykeyUser-defined unique identifier. If a Discount Code with this key exists, it will be updated with the imported data.
Optional ReadonlymaxNumber of times the DiscountCode can be applied. DiscountCode application is counted at the time of Order creation or update. However, Order cancellation or deletion does not decrement the count.
Optional ReadonlymaxNumber of times the DiscountCode can be applied per Customer (anonymous Carts are not supported). DiscountCode application is counted at the time of Order creation or update. However, Order cancellation or deletion does not decrement the count.
Optional ReadonlynameMaps to DiscountCode.name.
Optional ReadonlyvalidDate and time (UTC) from which the DiscountCode is effective.
Optional ReadonlyvalidDate and time (UTC) until which the DiscountCode is effective.
The data representation for a Discount Code to be imported that is persisted as a Discount Code in the Project.