# Value for deal stage pulled thru API

**URL:** <https://community.hubspot.com/t/value-for-deal-stage-pulled-thru-api/85724>\
**Category:** APIs & Integrations\
**Tags:** professional\
**Created:** [July 20, 2023, 3:48am UTC](https://community.hubspot.com/t/value-for-deal-stage-pulled-thru-api/85724 "2023-07-20T03:48:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KMalaiyappan](https://avatars.discourse-cdn.com/v4/letter/k/5daacb/32.png) [@KMalaiyappan](https://community.hubspot.com/u/KMalaiyappan)\
**Post date:** [July 20, 2023, 3:48am UTC](https://community.hubspot.com/t/value-for-deal-stage-pulled-thru-api/85724/1 "2023-07-20T03:48:25Z")

</div>

Thru API call deal data has pulled and I some the deal has dealstage description of interger values like (139921,139925) I would be expecting it to be like (closedwon, closedlost)

what those integer deal stage mean?

---

<div class="post-metadata">

**Author:** ![coldrickjack](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/coldrickjack/32/6684_2.png) [@coldrickjack](https://community.hubspot.com/u/coldrickjack)\
**Post date:** [July 20, 2023, 8:58am UTC](https://community.hubspot.com/t/value-for-deal-stage-pulled-thru-api/85724/2 "2023-07-20T08:58:10Z")

</div>

Hey @KMalaiyappan,

The “dealstage” property will return the internal ID of the deal stage the deal resides in within a pipeline. If you are using the default “Sales Pipeline” those internal IDs correlate to the labels of the stages. What I mean by that (for example) is “Closed Won” would have an internal Id of “closedwon”. See below:

```lia-code-sample
"label": "Closed Won",
"displayOrder": 5,
"metadata": {
 "isClosed": "true",
 "probability": "1.0"
},
"id": "closedwon",
"createdAt": "1970-01-01T00:00:00Z",
"updatedAt": "1970-01-01T00:00:00Z",
"archived": false,
"writePermissions": "CRM_PERMISSIONS_ENFORCEMENT"

```

If you are using any other pipeline outside of the default pipeline it’s expected that these internal IDs return as a string of numbers. For instance the same stage “Closed Won” in my “Renewal Pipeline” has an internal ID of “258551227”.

```lia-code-sample
"label": "Closed won",
"displayOrder": 5,
"metadata": {
 "isClosed": "true",
 "probability": "1.0"
},
"id": "258551227",
"createdAt": "2023-07-20T08:51:49.359Z",
"updatedAt": "2023-07-20T08:51:49.359Z",
"archived": false,
"writePermissions": "CRM_PERMISSIONS_ENFORCEMENT"

```

To get the label of the stage you’ll need to make an additional request to the [Pipelines API](https://developers.hubspot.com/docs/api/crm/pipelines). Specifically GET /crm/v3/pipelines/{objectType}/{pipelineId}/stages/{stageId}
