HubSpot Developer Changelog

Public beta: New DealSplits API

Written by Hannah Seligson | Mar 20, 2024 1:00:00 PM

We are excited to announce the release of the new DealSplits Public API for HubSpot customers, which will be live starting May 28, 2024. This API lets customers list and create deal splits for batches of deals directly through HubSpot's CRM. The DealSplits Public API enhances revenue forecasting accuracy and sales team performance tracking by allowing for more granular deal attribution. This new API addresses a critical need for businesses to accurately attribute revenue and track sales performance across team members.

What's new?

List Deal Splits for a Batch of Deals: This allows fetching a list of deal IDs to deal splits for all input IDs in the request object.
  • HTTP Method + Path: POST /crm/v3/objects/deals/splits/batch/read

Request object example:

Response example:

 

Create Deal Splits for a Batch of Deals: This enables creating deal splits for a batch of deals with specified split percentages and owners.
  • HTTP Method + Path: POST /crm/v3/objects/deals/splits/batch/upsert

Request object example:

Response example:

The API supports OAuth for authentication, ensuring secure access to the functionality. The required scope group for accessing the API is crm.dealsplits.read_write.

Note: For POST batch requests, all input items must pass the percentage validation, meaning this beta currently doesn’t support partial successes. The request will be rejected if any items in the batch request fail validation.

Validations:

  • The API performs validations to ensure the integrity of the deal splits, including verifying the validity of the deal objectId, ensuring the sum of deal split percentages equals 100%, and confirming the deal has an assigned owner included in the deal splits.
  • Portal self-service validations support up to 10 deal splits for admin privileges, with a default of 5 splits for all other users. There is no minimum split percentage.
  • Errors, such as batch sizes exceeding 100 or portals not enabling deal splits, are communicated through 400 and 403 response statuses, respectively.

When is it happening?

This new API is live and available to the public. Questions or comments? Join us in the developer forums.