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
}
}
{
"id": "456123",
"attributes": {
"name": "",
"couponCode": "",
"description": "",
"active": true,
"discountKind": "CouponDiscountKind",
"discountAmount": "1.00",
"discountPercentage": "1.00",
"currencyId": "456123",
"redemptionsMax": 123,
"redemptionEndDate": "2022-06-01"
}
}