APIs & Integrations

RBiswal
Participant

DEAL API(basic List) property parameters

SOLVE

I am trying to fetch the provided parameter values through API(curl) , thuogh the value exists(I can find in front end) , the API does not return the value, I am just wondering if the passed parameters syntactically correct , the below page is refered for property parameters.

for e.g I am passing (Deal owner or Deal_owner) as parameter, neither gives me output

HubSpot's default deal properties

https://knowledge.hubspot.com/deals/hubspots-default-deal-properties?_ga=2.23392890.1578220888.16562...

----------------------------------  curl 

curl --request GET \
--url 'https://api.hubapi.com/crm/v3/objects/deals?limit=10&properties=Deal_owner&archived=false&hapikey=YO...'

0 Upvotes
2 Accepted solutions
Jaycee_Lewis
Solution
Community Manager
Community Manager

DEAL API(basic List) property parameters

SOLVE

Hey, @RBiswal 👋 Can you try making this request using the internal value for the property? For example, in Deal properties, Deal Owner is the label and hubspot_owner_id is the internal value.

CleanShot 2022-06-29 at 11.35.03.png

 

I ran a quick test:

  • Endpoint GET/crm/v3/objects/deals/{dealId}
  • My request
    curl --request GET \
      --url 'https://api.hubapi.com/crm/v3/objects/deals/9344774699?properties=hubspot_owner_id&archived=false' \
      --header 'authorization: Bearer NOPE'​
  • The Response
    HTTP 200
    
    {
      "id": "9344774699",
      "properties": {
        "createdate": "2022-06-29T18:05:02.843Z",
        "hs_lastmodifieddate": "2022-06-29T18:05:04.529Z",
        "hs_object_id": "9344774699",
        "hubspot_owner_id": "198670650"
      },
      "createdAt": "2022-06-29T18:05:02.843Z",
      "updatedAt": "2022-06-29T18:05:04.529Z",
      "archived": false
    }​

I hope that helps get you moving forward!

 

Best,

Jaycee

 

 

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

View solution in original post

RBiswal
Solution
Participant

DEAL API(basic List) property parameters

SOLVE

Thanks Jaycee Lewis,

This works , I got to know about the lebel and the internal_value, that helps !!

hubspot>>settings>>property settings

View solution in original post

0 Upvotes
2 Replies 2
Jaycee_Lewis
Solution
Community Manager
Community Manager

DEAL API(basic List) property parameters

SOLVE

Hey, @RBiswal 👋 Can you try making this request using the internal value for the property? For example, in Deal properties, Deal Owner is the label and hubspot_owner_id is the internal value.

CleanShot 2022-06-29 at 11.35.03.png

 

I ran a quick test:

  • Endpoint GET/crm/v3/objects/deals/{dealId}
  • My request
    curl --request GET \
      --url 'https://api.hubapi.com/crm/v3/objects/deals/9344774699?properties=hubspot_owner_id&archived=false' \
      --header 'authorization: Bearer NOPE'​
  • The Response
    HTTP 200
    
    {
      "id": "9344774699",
      "properties": {
        "createdate": "2022-06-29T18:05:02.843Z",
        "hs_lastmodifieddate": "2022-06-29T18:05:04.529Z",
        "hs_object_id": "9344774699",
        "hubspot_owner_id": "198670650"
      },
      "createdAt": "2022-06-29T18:05:02.843Z",
      "updatedAt": "2022-06-29T18:05:04.529Z",
      "archived": false
    }​

I hope that helps get you moving forward!

 

Best,

Jaycee

 

 

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

RBiswal
Solution
Participant

DEAL API(basic List) property parameters

SOLVE

Thanks Jaycee Lewis,

This works , I got to know about the lebel and the internal_value, that helps !!

hubspot>>settings>>property settings

0 Upvotes