Schema Documentation

updateCoupon

Description

The payload for the updateCoupon mutation

Response

Returns an UpdateCouponPayload

Arguments
NameDescription
input - UpdateCouponInput! Input for the updateCoupon mutation

Example

Query
mutation updateCoupon($input: UpdateCouponInput!){
  updateCoupon(input: $input){
    clientMutationIdcodecoupon {
      ...CouponFragment
    }
  }
}
Variables
{"input":UpdateCouponInput}
Response
{"data":{"updateCoupon":{"clientMutationId":"xyz789","code":"xyz789","coupon":Coupon}}}