Schema Documentation

applyCoupon

Description

The payload for the applyCoupon mutation

Response

Returns an ApplyCouponPayload

Arguments
NameDescription
input - ApplyCouponInput! Input for the applyCoupon mutation

Example

Query
mutation applyCoupon($input: ApplyCouponInput!){
  applyCoupon(input: $input){
    applied {
      ...AppliedCouponFragment
    }cart {
      ...CartFragment
    }clientMutationId
  }
}
Variables
{"input":ApplyCouponInput}
Response
{"data":{"applyCoupon":{"applied":AppliedCoupon,"cart":Cart,"clientMutationId":"abc123"}}}