APIs & Integrations

zoran
Member

Deals API - sort deals by property

Is there a way to sort deals by property using Deals API (GET /deals/v1/deal/paged)?

For our specific case, we’d like to sort deals by “createdate” (“dealId” would also be fine), because “/deals/v1/deal/paged” returns deals in order from oldest to most recent. Is it possible to get most recent deals first or at least change sort order from ascending to descending?

I know I can get recently modified deals (/deals/v1/deal/recent/modified), but it is useless for us because of 30 day and 10k deals limitation.

0 Upvotes
1 Reply 1
3PETE
HubSpot Employee
HubSpot Employee

Deals API - sort deals by property

@zoran right now there is no way to do server-side sorting for deal properties in the Deals API.

0 Upvotes