dealCreate
Create a deal. The dealCreate 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 DealAttributes type
mutation dealCreate ($attributes: DealAttributes!) {
dealCreate (attributes: $attributes) {
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
}
}
ArgumentsLink to Arguments section
{
"attributes": {
"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"
}
}
| Name | Type | Description |
|---|---|---|
| attributes | DealAttributes |
ResponseLink to Response section
| Name | Type | Description |
|---|---|---|
| deal | Deal | |
| errors | List (String) |