quoteChangeDiscountCreate

Create a discount for a quote charge. The quoteChangeDiscountCreate mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.

Scope required: standard:write

For a complete list of input attributes see the QuoteChargeAttributes type

mutation quoteChangeDiscountCreate ($quoteId: ID!, $quoteChargeId: ID!, $attributes: QuoteChargeAttributes) {
  quoteChangeDiscountCreate (quoteId: $quoteId, quoteChargeId: $quoteChargeId, attributes: $attributes) {
      errors
      quote {
        acceptedAt
        acceptedByName
        acceptedByTitle
        accountId
        amount
        amountAsCurrency
        amountDue
        applicationDate
        applied
        applyOnAccept
        backdatedPeriods
        backdatedQuote
        billingDay
        contactId
        createdAt
        credits
        currencyId
        customFieldsData
        dealId
        discount
        discountValue
        documentTemplateId
        emailBody
        emailSubject
        endDate
        evergreen
        expiresAt
        hasCustomFields
        id
        invoiceImmediately
        invoiceImmediatelyAvailable
        invoiceUntil
        isPendingApprovalRequest
        message
        name
        netPaymentDays
        notes
        number
        ownerId
        payToAccept
        payableId
        periodAmount
        poNumber
        requiresApproval
        sharedAt
        signingIntegration
        skipBackdatedInvoices
        smallUnitAmountDue
        splitInvoice
        startDate
        subtotal
        taxAmount
        taxCode
        taxOutOfDate
        taxationEnabled
        updatedAt
        userEmailBody
        userEmailSubject
        uuid
        viewedAt
      }
      quoteChangeDiscount {
        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

{
  "quoteId": "456123",
  "quoteChargeId": "456123",
  "attributes": {
    "id": "456123",
    "name": "",
    "code": "",
    "priceListChargeId": "456123",
    "quantity": 123,
    "discount": "1.00",
    "price": "BigDecimal",
    "subtotal": "BigDecimal",
    "startDate": "2022-06-01",
    "endDate": "2022-06-01",
    "evergreen": true,
    "priceTiers": [
      {
        "starts": 123,
        "price": "BigDecimal"
      }
    ]
  }
}
Name Type Description
quoteId ID  
quoteChargeId ID  
attributes QuoteChargeAttributes  

ResponseLink to Response section

Name Type Description
errors String  
quote Quote  
quoteChangeDiscount QuoteChange