# Adding custom property value with deals

**URL:** <https://community.hubspot.com/t/adding-custom-property-value-with-deals/19513>\
**Category:** APIs & Integrations\
**Tags:** object\
**Created:** [March 18, 2020, 8:35pm UTC](https://community.hubspot.com/t/adding-custom-property-value-with-deals/19513 "2020-03-18T20:35:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![brodi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/brodi/32/38114_2.png) [@brodi](https://community.hubspot.com/u/brodi)\
**Post date:** [March 18, 2020, 8:35pm UTC](https://community.hubspot.com/t/adding-custom-property-value-with-deals/19513/1 "2020-03-18T20:35:35Z")

</div>

We are syncing our sales orders from our e-commerce system to HubSpot. We added four properties of product’s related information in Deals. However, we couldn’t find any information on deals API that how can we add customer property value through API. Is there any way to add these properties value?

 ![image_2020_03_18T00_18_44_461Z.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/7/7/77a93f239361760914fc3ec1bfbaada4ba4df77f.png)

---

<div class="post-metadata">

**Author:** ![WendyGoh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wendygoh/32/42320_2.png) [@WendyGoh](https://community.hubspot.com/u/WendyGoh)\
**Post date:** [March 19, 2020, 2:48am UTC](https://community.hubspot.com/t/adding-custom-property-value-with-deals/19513/2 "2020-03-19T02:48:41Z")

</div>

Hey @brodi,

To clarify, are you looking to create deals via [HubSpot Create a deal API](https://developers.hubspot.com/docs/methods/deals/create_deal) and is looking at a way to pass value into properties - Product Name, Product Size&Color, Product Sku# and Quantity?

If so, when looking to set property via API, we would need to first get the property’s internal value. You can do so by going to your properties settings in-app (Click on the ‘_Settings_’ icon at the top right corner \> At the left side panel, click on ‘_Properties_’ \> Change the ‘_Filter by_’ dropdown to ‘_Deal properties_’) \> search for property e.g. Product Name \> Hover over, click ‘Edit’ \> Beside the name, click ‘\</\>’ and you see the internal name.

You can learn more here: [Manage your properties](https://knowledge.hubspot.com/crm-setup/manage-your-properties).

Once you obtain the internal value e.g. in your case, property ‘Product Name’ == ‘product\_sold’, you can use this as the property name in the POST body when creating deal. E.g. of the POST body

```auto
{
 "properties": [
 {
 "value": "this is the value",
 "name": "product_sold"
 }
 ]
}

```

Hope this helps to shed some lights!

---

<div class="post-metadata">

**Author:** ![brodi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/brodi/32/38114_2.png) [@brodi](https://community.hubspot.com/u/brodi)\
**Post date:** [March 20, 2020, 8:42am UTC](https://community.hubspot.com/t/adding-custom-property-value-with-deals/19513/3 "2020-03-20T08:42:58Z")

</div>

Yes, that what we were looking for. Thank you.
