Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceInputs

UpdateCouponInput

inputUpdateCouponInput

Fields

  1. fields
applicableForMinimumExpense?Float

This is the minimum expense that is required to redeem the coupon

code?String

The code of the coupon

grantType?CouponGrantType

The grant type. Can be either SPECIFIC_USERS or GLOBAL

Value inGLOBALSPECIFIC_USERS
grantedUserIds?[String!]

The user ids that are granted access to this coupon

maxAllowedValue?Float

The 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?DateTime

The 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 inPERCENTAGEPRICE

Usages

Input for
MUTATIONupdateCoupon
SDL
input UpdateCouponInput {  applicableForMinimumExpense: Float  code: String  grantType: CouponGrantType  grantedUserIds: [String!]  maxAllowedValue: Float  usesLimit: Int  validTill: DateTime  value: Float  valueType: CouponValueType}