Core GraphQL APIReferenceInputs
CreateCouponInput
input
CreateCouponInputFields
- fields
applicableForMinimumExpense?FloatThis is the minimum expense that is required to redeem the coupon
code*String!The code of the coupon
grantType?CouponGrantTypeThe grant type. Can be either SPECIFIC_USERS or GLOBAL
Value in
GLOBALSPECIFIC_USERSgrantedUserIds?[String!]The user ids that are granted access to this coupon
maxAllowedValue?FloatThe maximum value that can be redeemed by a single user. If not provided or -1 then there is no limit.
usesLimit*Int!The number of uses allowed for a single user
validTill?DateTimeThe valid till date. If not provided then the coupon is valid forever
value*Float!valueType*CouponValueType!The value type of the coupon. Can be either PRICE or PERCENTAGE
Value in
PERCENTAGEPRICEUsages
- Input for
- MUTATION
createCoupon
input CreateCouponInput { applicableForMinimumExpense: Float code: String! grantType: CouponGrantType grantedUserIds: [String!] maxAllowedValue: Float usesLimit: Int! validTill: DateTime value: Float! valueType: CouponValueType!}