Home > @vsf-enterprise/commercetools-types > DiscountCode
# DiscountCode type
With discount codes it is possible to give specific cart discounts to an eligible amount of users. They are defined by a string value which can be added to a cart so that specific cart discounts can be applied to the cart.
Signature:
export declare type DiscountCode = Versioned & {
__typename?: 'DiscountCode';
code: Scalars['String'];
isActive: Scalars['Boolean'];
maxApplications?: Maybe<Scalars['Long']>;
maxApplicationsPerCustomer?: Maybe<Scalars['Long']>;
cartPredicate?: Maybe<Scalars['String']>;
applicationVersion?: Maybe<Scalars['Long']>;
validFrom?: Maybe<Scalars['DateTime']>;
validUntil?: Maybe<Scalars['DateTime']>;
groups: Array<Scalars['String']>;
name?: Maybe<Scalars['String']>;
description?: Maybe<Scalars['String']>;
cartDiscounts: Array<CartDiscount>;
referenceRefs: Array<Reference>;
nameAllLocales?: Maybe<Array<LocalizedString>>;
descriptionAllLocales?: Maybe<Array<LocalizedString>>;
custom?: Maybe<CustomFieldsType>;
applicationCount: Scalars['Long'];
cartDiscountRefs: Array<Reference>;
id: Scalars['String'];
version: Scalars['Long'];
createdAt: Scalars['DateTime'];
lastModifiedAt: Scalars['DateTime'];
createdBy?: Maybe<Initiator>;
lastModifiedBy?: Maybe<Initiator>;
};
References: Versioned, Scalars, Maybe, CartDiscount, Reference, LocalizedString, CustomFieldsType, Initiator