quoteChangeDiscountCreate

Graphql fields and variables for the quoteChangeDiscountCreate mutation

Create a discount for a quote charge

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 {
        acceptedByName
        acceptedByTitle
        accountId
        amount
        amountDue
        applicationDate
        applied
        applyOnAccept
        backdatedPeriods
        backdatedQuote
        billingDay
        contactId
        createdAt
        credits
        currencyId
        dealId
        discount
        discountValue
        documentTemplateId
        endDate
        evergreen
        expiresAt
        id
        invoiceImmediately
        invoiceImmediatelyAvailable
        invoiceUntil
        isPendingApprovalRequest
        message
        name
        netPaymentDays
        notes
        number
        ownerId
        payToAccept
        payableId
        periodAmount
        poNumber
        requiresApproval
        smallUnitAmountDue
        splitInvoice
        startDate
        subtotal
        taxAmount
        taxCode
        updatedAt
        uuid
      }
      quoteChangeDiscount {
        currencyId
        endDate
        evergreen
        id
        name
        priceAdjustmentAllowed
        priceAdjustmentLastDate
        priceAdjustmentPercentage
        priceListId
        quoteId
        quotePlanId
        rampIntervalMonths
        renewalSummary
        renewalTermMonths
        startDate
        subscriptionId
      }
  }
}

Arguments

{
  "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

Response

Name
Type
Description

errors

String

quote

quoteChangeDiscount

Last updated

Was this helpful?