Core GraphQL APIReferenceObjects
Coupon
type
CouponFields
- fields
_id*ID!applicableForMinimumExpense?FloatThis is the minimum expense that is required to redeem the coupon
code*String!commits?createdAt*DateTime!A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
grantType?CouponGrantTypeValue in
GLOBALSPECIFIC_USERSgrantedUsers?The users that are granted access to this coupon
isAutoGenerated*Boolean!isDemo?BooleanmaxAllowedValue?FloatThe maximum value that can be redeemed by a single user. If not provided or -1 then there is no limit.
tenant?StringupdatedAt*DateTime!A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
usesLimit*Int!validTill?DateTimeThe valid till date. If not provided then the coupon is valid forever
value*Float!The value of the coupon
valueType*CouponValueType!The value type of the coupon. Can be either PRICE or PERCENTAGE
Value in
PERCENTAGEPRICEUsages
- Field of
CouponsWithPagination.nodes
type Coupon { _id: ID! applicableForMinimumExpense: Float code: String! commits: [ResourceCommitHistoryReference!] createdAt: DateTime! grantType: CouponGrantType grantedUsers: [User!] isAutoGenerated: Boolean! isDemo: Boolean maxAllowedValue: Float tenant: String updatedAt: DateTime! usesLimit: Int! validTill: DateTime value: Float! valueType: CouponValueType!}