Deals
Associate a customer to a deal
Associate a customer to a deal.
You can either:
- associate an existing customer to an existing deal, by
customerId - create a new customer and associate with an existing deal, using
customerfield
Specify either the customerId field or the customer field.
Here is an example when you associate an existing customer by ID:
{
"customerId": 42
}
Here is an example when you create a new customer. The properties field contains the list of custom properties defined on Customers.
{
"customer": {
"properties": {
"name": "John Doe",
"email": "john.doe@customer.com",
"...": "..."
},
"partnerId": 42,
"source": "Deal"
}
}
POST
Associate a customer to a deal
Path Parameters
The ID of the deal to associate to customer.
Response
Customer associated to deal
Available options:
Unknown, Pending, Accepted, Refused, Expired 
