Core GraphQL APIReferenceInputs
UpdateCouponInput
input
UpdateCouponInputFields
- fields
applicableForMinimumExpense?FloatThis is the minimum expense that is required to redeem the coupon
code?StringThe 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?IntThe number of uses allowed for a single user
validTill?DateTimeThe valid till date. If not provided then the coupon is valid forever
value?FloatvalueType?CouponValueTypeThe value type of the coupon. Can be either PRICE or PERCENTAGE
Value in
PERCENTAGEPRICEUsages
- Input for
- MUTATION
updateCoupon
input UpdateCouponInput { applicableForMinimumExpense: Float code: String grantType: CouponGrantType grantedUserIds: [String!] maxAllowedValue: Float usesLimit: Int validTill: DateTime value: Float valueType: CouponValueType}