quoteChangeAddCoupon

Add a coupon to a specific quote change; it discounts only that change. Adjustment changes are rejected. Use this when you pick the change yourself; if you only know the quote, use quoteAddCoupon. The quoteChangeAddCoupon mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.

Scope required: standard:write

mutation quoteChangeAddCoupon ($quoteChangeId: ID!, $couponCode: String!) {
  quoteChangeAddCoupon (quoteChangeId: $quoteChangeId, couponCode: $couponCode) {
      errors
      quoteChange {
        accountId
        calculatedAdjustmentAmount
        calculatedAdjustmentPercentage
        currencyId
        endDate
        evergreen
        id
        isTrial
        name
        priceAdjustmentAllowed
        priceAdjustmentLastDate
        priceAdjustmentPercentage
        priceListId
        quoteId
        quotePlanId
        rampIntervalMonths
        renewalSummary
        renewalTermMonths
        startDate
        subscriptionId
        tenantId
        trialEndDate
        trialLengthDays
        trialStartDate
      }
  }
}

ArgumentsLink to Arguments section

{
  "quoteChangeId": "456123",
  "couponCode": ""
}
Name Type Description
quoteChangeId ID  
couponCode String  

ResponseLink to Response section

Name Type Description
errors String  
quoteChange QuoteChange