quoteCreateWithDeal
Create an empty quote with a new deal. The quoteCreateWithDeal mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.
Scope required: standard:write
mutation quoteCreateWithDeal ($dealAttributes: DealAttributes!, $quoteAttributes: QuoteAttributes!, $accountId: ID) {
quoteCreateWithDeal (dealAttributes: $dealAttributes, quoteAttributes: $quoteAttributes, accountId: $accountId) {
deal {
accountId
amount
closeDate
closeUrgency
code
contactId
createdAt
currencyId
customFieldsData
dealStageId
description
entityId
hasCustomFields
id
leadSourceId
name
notForRevenue
ownerUserId
pipeline
probability
renewalCurrentAmount
renewalMrr
renewalNeedsAttention
stageDescription
updatedAt
viaPortal
}
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
}
}
}
ArgumentsLink to Arguments section
{
"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,
"skipBackdatedInvoices": true,
"invoiceImmediately": true,
"payToAccept": true,
"applyOnAccept": true,
"documentTemplateId": "456123",
"documentTemplate": {
"editableParagraphs": [
{
"id": "456123",
"content": ""
}
]
},
"startDate": "2022-06-01",
"expiresAt": "2022-06-01",
"endDate": "2022-06-01",
"invoiceUntil": "2022-06-01",
"notes": "",
"message": "",
"emailBody": "",
"emailSubject": "",
"platformId": "456123",
"contactSignerIds": [
"456123"
],
"userSignerIds": [
"456123"
]
},
"accountId": "456123"
}
| Name | Type | Description |
|---|---|---|
| dealAttributes | DealAttributes | |
| quoteAttributes | QuoteAttributes | |
| accountId | ID |