Learn how to view and edit deal splits via API.
POST
request to crm/v3/objects/deals/splits/batch/upsert
.
In your request, include the following fields for each deal:
Field | Description |
---|---|
id | The ID of the deal. You can retrieve this via the deals API. |
splits | An array that contains the user to assign a split to, and the percentage of the deal amount to assign. In the array, include the following fields:ownerId : the owner ID assigned to the HubSpot user.percentage : the percentage of the deal amount to assign to the owner. |
POST
request to crm/v3/objects/deals/splits/batch/read
. In your request, include the id
values of the deals with splits you want to view. You can retrieve a deal’s id
via the deals API.
For example, to retrieve deal splits for two deals, your request could look like: