APIs & Integrations

assembled
Member

Deals API - Order of Associations

Hi there!

 

Our project is using the Deals API and we ran into some confusion when trying to use the associations from the response. The order of associatedVids for contacts doesn't appear to correspond to the order of the contacts in the UI, and the API documentation does not say anything about how the results will be ordered.

 

Is there any ordering to the associatedVids from the response, or should we assume it can be in any order? Thank you!

1 Reply 1
IsaacTakushi
HubSpot Employee
HubSpot Employee

Deals API - Order of Associations

Welcome, @assembled.

 

There appears to be some type of ordering with the associatedVids array, however it is not by creation date, association date, or any other pattern I've been able to discern. In practical terms, the order is random.

 

If you'd like me to continue investigating here to get a definite answer, though, let me know!

Isaac Takushi

Associate Certification Manager