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
{
"id": "456123",
"attributes": {
"name": "",
"couponCode": "",
"description": "",
"active": true,
"discountKind": "CouponDiscountKind",
"discountAmount": "1.00",
"discountPercentage": "1.00",
"currencyId": "456123",
"redemptionsMax": 123,
"redemptionEndDate": "2022-06-01"
}
}
Name
Type
Description
id
ID
Response
Name
Type
Description
errors
List (String)
Last updated
Was this helpful?