couponUpdate
Graphql fields and variables for the couponUpdate mutation
Update a coupon
Scope required: product:write
For a complete list of input attributes see the CouponAttributes type
mutation couponUpdate ($id: ID!, $attributes: CouponAttributes!) {
couponUpdate (id: $id, attributes: $attributes) {
coupon {
active
couponCode
createdAt
currencyId
description
discountAmount
discountPercentage
id
name
planId
redemptionEndDate
redemptionsCount
redemptionsMax
updatedAt
}
errors
}
}Arguments
Name
Type
Description
id
ID
Response
Name
Type
Description
errors
List (String)
Last updated
Was this helpful?
