Update Coupon Code

updateCouponCode #

updateCouponCode(id: String, params: UpdateCouponCodeParams) CouponCode

Example #

mutation updateCouponCode($id: String!, $params: UpdateCouponCodeParams!){
  updateCouponCode(id: $id, params: $params) {
    id
    code
    amount
    minOrderAmount
    maxDiscountAmount
    isActive
    isFlatDiscount
    isForNewUsersOnly
    isUserSpecific
    maxUsage
    maxUsagePerUser
    discountType
    description
    image
    startAt
    endAt
    createdAt
    updatedAt
    customers {
      email
      phone
      firstName
      lastName
      profilePicture
      profilePictureFull
    }
  }
}

Try It Now