quoteCreateWithDeal

Graphql fields and variables for the quoteCreateWithDeal mutation

Create an empty quote with a new deal

Scope required: standard:write

mutation quoteCreateWithDeal ($dealAttributes: DealAttributes!, $quoteAttributes: QuoteAttributes!, $accountId: ID!) {
  quoteCreateWithDeal (dealAttributes: $dealAttributes, quoteAttributes: $quoteAttributes, accountId: $accountId) {
      deal {
        accountId
        amount
        closeDate
        code
        contactId
        createdAt
        currencyId
        dealStageId
        description
        entityId
        id
        leadSourceId
        name
        notForRevenue
        ownerUserId
        probability
        stageDescription
        updatedAt
        viaPortal
      }
      errors
      quote {
        acceptedByName
        acceptedByTitle
        accountId
        amount
        amountDue
        applicationDate
        applied
        applyOnAccept
        backdatedPeriods
        backdatedQuote
        billingDay
        contactId
        createdAt
        credits
        currencyId
        dealId
        discount
        discountValue
        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
      }
  }
}

Arguments

{
  "dealAttributes": {
    "accountId": "456123",
    "name": "",
    "code": "",
    "ownerUserId": "456123",
    "amount": "1.00",
    "probability": 123,
    "description": "",
    "closeDate": "2022-06-01",
    "dealStageId": "456123",
    "leadSourceId": "456123",
    "contactId": "456123",
    "kind": "DealKind",
    "notForRevenue": true,
    "viaPortal": true,
    "currencyId": "456123",
    "origin": "DealOrigin"
  },
  "quoteAttributes": {
    "name": "",
    "accountId": "456123",
    "contactId": "456123",
    "currencyId": "",
    "dealId": "456123",
    "ownerId": "456123",
    "netPaymentDays": 123,
    "poNumber": "",
    "evergreen": true,
    "discount": "1.00",
    "splitInvoice": true,
    "backdatedPeriods": true,
    "invoiceImmediately": true,
    "payToAccept": true,
    "applyOnAccept": true,
    "startDate": "2022-06-01",
    "expiresAt": "2022-06-01",
    "endDate": "2022-06-01",
    "invoiceUntil": "2022-06-01",
    "notes": "",
    "message": ""
  },
  "accountId": "456123"
}
Name
Type
Description

dealAttributes

quoteAttributes

accountId

ID

Response

Name
Type
Description

deal

errors

List (String)

quote

Last updated

Was this helpful?