Skip to main content
Applies a coupon to a customer, affecting their subscription pricing.

Mutation

mutation SetCouponOnCustomer($input: SetCouponOnCustomerInput!) {
  setCouponOnCustomer(input: $input) {
    customerId
    coupon {
      code
      type
      discountValue
      duration
    }
  }
}

Parameters

input
SetCouponOnCustomerInput
required
Input for applying a coupon

Return Type

Returns the updated Customer with the applied coupon.