APIs & Integrations

nicolasassi
Participant

What is the field hs_hubspot_id inside the proprieties field as response to deals API?

SOLVE

I'm trying to getter data from the deals registered in my hubspot account by using the Deals API.

But the response from the deals do not give my any propriety I can match with the deals proprierties API. The only field in the proprierties and versions is the HS_HUBSPOT_ID which I don't know what stands for.

 

Could somebody give some advice about it?

0 Upvotes
1 Accepted solution
lscanlan
Solution
HubSpot Alumni
HubSpot Alumni

What is the field hs_hubspot_id inside the proprieties field as response to deals API?

SOLVE

Hi @nicolasassi,

 

I'm glad that helped. When you use the "Get all deals" endpoint, by default it's not going to return any of the deal properties unless you specify them. So I think you could probably get all the deal properties from the "Get all deal properties" endpoint documented here: https://developers.hubspot.com/docs/methods/deals/get_deal_properties. And then include those as query string parameters to the "Get all deals" endpoint. Or you could pull the deal IDs from the "Get all deals" endpoint and make request to each deal by its ID, as documented here: https://developers.hubspot.com/docs/methods/deals/get_deal, which will return the deal properties for that deal.

 

I hope that helps.

 

Leland Scanlan

HubSpot Developer Support

View solution in original post

3 Replies 3
lscanlan
HubSpot Alumni
HubSpot Alumni

What is the field hs_hubspot_id inside the proprieties field as response to deals API?

SOLVE

Hi @nicolasassi,

 

If you're using the "Get all deals" endpoint documented here: https://developers.hubspot.com/docs/methods/deals/get-all-deals, you can include query string paramaters for each property that you want included in the response. So for example if you wanted to include Amount and Deal Stage, you could make a request like: deals/v1/deal/paged?properties=amount&properties=dealstage

Does that help?

 

Leland Scanlan

HubSpot Developer Support
0 Upvotes
nicolasassi
Participant

What is the field hs_hubspot_id inside the proprieties field as response to deals API?

SOLVE

Hi lscanlan! Thanks for the quick reply.

 

It helped a lot, but I would like to know if there is any way to get all properties at once without have to send it in the request.

 

Thanks!

0 Upvotes
lscanlan
Solution
HubSpot Alumni
HubSpot Alumni

What is the field hs_hubspot_id inside the proprieties field as response to deals API?

SOLVE

Hi @nicolasassi,

 

I'm glad that helped. When you use the "Get all deals" endpoint, by default it's not going to return any of the deal properties unless you specify them. So I think you could probably get all the deal properties from the "Get all deal properties" endpoint documented here: https://developers.hubspot.com/docs/methods/deals/get_deal_properties. And then include those as query string parameters to the "Get all deals" endpoint. Or you could pull the deal IDs from the "Get all deals" endpoint and make request to each deal by its ID, as documented here: https://developers.hubspot.com/docs/methods/deals/get_deal, which will return the deal properties for that deal.

 

I hope that helps.

 

Leland Scanlan

HubSpot Developer Support