Deal stage value gives GUID


#1

I am calling the API using the follwoing URL

https://api.hubapi.com/deals/v1/deal/214904xxx?hapikey=xxx

the deal is in the first stage: BPM SALES CONSULT (IMA)

when I make the call, what I get back is a GUID for the value of the deal stage

    "dealstage": {
        "value": "dca8fb80-f5f4-4e54-8619-ae7e154ef22f",
        "timestamp": 1509724188968,
        "source": "CRM_UI",
        "sourceId": "info@flowwright.com",
        "versions": [
            {
                "name": "dealstage",
                "value": "dca8fb80-f5f4-4e54-8619-ae7e154ef22f",
                "timestamp": 1509724188968,
                "sourceId": "info@flowwright.com",
                "source": "CRM_UI",
                "sourceVid": []
            }
        ]
    },

How do I get the actual value of: BPM SALES CONSULT (IMA)

thanks

-Dileepa


#2

Hi @Dileepa_Wijayanayake,

You’ll need to use the Deal Pipelines API to pull the values for specific dealstage values:


#3

ok, got it, I used the pipline api to get the list of deal stage definitions


#4

Hi @Derek_Gervais -

I don't see how to pull the specific deal stage for a given ID in a deal. That is, given:

"dealstage": {
"value": "0d511167-654d-4b64-beab-2421f786ddd9",
"timestamp": 1523030112191,
"source": "API",
"sourceId": null,
"versions": [
  {
"name": "dealstage",
"value": "0d511167-654d-4b64-beab-2421f786ddd9",
"timestamp": 1523030112191,
"source": "API",
"sourceVid": [],
}
],

How do I obtain the human friendly name for this deal?


#5

Nvmd @Derek_Gervais - The Documentation having human friendly stage ID's threw me. I queried my pipeline and see the GUIDs(?) for the IDs and it's clear to me now.