POST https://:account.api-us1.com/api/3/deals
- JSON
{
"deal": {
"contact": "51",
"description": "This deal is an important deal",
"currency": "usd",
"group": "1",
"owner": "1",
"percent": null,
"stage": "1",
"status": 0,
"title": "AC Deal",
"value": 45600
}
}
BODY PARAMS
deal
object deal.description
deal.title REQUIRED
string Deal's title.
deal.description
string Deal's description
deal.contact REQUIRED
string Deal's primary contact's id.
deal.value REQUIRED
int32 Deal's value in cents. (i.e. $456.78 => 45678). Must be greater than or equal to zero.
deal.currency REQUIRED
string Deal's currency in 3-digit ISO format, lowercased.
deal.group REQUIRED
string Deal's pipeline id. Required if
deal.stage
is not provided. If deal.group
is not provided, the stage's pipeline will be assigned to the deal automatically.deal.stage REQUIRED
string Deal's stage id. Required if
deal.group
is not provided. If deal.stage
is not provided, the deal will be assigned with the first stage in the pipeline provided in deal.group
.deal.owner REQUIRED
string Deal's owner id. Required if pipeline's auto-assign option is disabled.
deal.percent
int32 Deal's percentage.
deal.status
int32 Deal's status.
To create a deal, following permissions are required.
- Deal permission: the user should have a permission to manage deals.
- Pipeline-specific permission: the user should have a permission to manage the pipeline a new deal belongs to.
By default, primary contact and deal stage are also returned in the response.
Opmerkingen
0 opmerkingen
Artikel is gesloten voor opmerkingen.