# Getting type info for "Conversion Information" field

**URL:** <https://community.hubspot.com/t/getting-type-info-for-conversion-information-field/11786>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [January 30, 2018, 7:00pm UTC](https://community.hubspot.com/t/getting-type-info-for-conversion-information-field/11786 "2018-01-30T19:00:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [January 30, 2018, 7:00pm UTC](https://community.hubspot.com/t/getting-type-info-for-conversion-information-field/11786/1 "2018-01-30T19:00:18Z")

</div>

Hi there,

We’re using contacts/v1/contact/vid//profile to get Contact properties.  
In this case, HubSpot returns fields for both Contact Information group and Conversion Information group.

But then we want to get types data and use request to /properties/v1/contacts/properties.  
In this case, HubSpot returns data only for Contact Information group, not Conversion Information group.  
This causes problems to properly recognize dates from Conversion Information group.

Is there a way to get types information for Contact Information group fields?  
Maybe there is a better approach overall to achieve the same result?

Thanks!

---

<div class="post-metadata">

**Author:** ![Derek\_Gervais](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/derek_gervais/32/17429_2.png) [@Derek\_Gervais](https://community.hubspot.com/u/Derek_Gervais)\
**Post date:** [January 31, 2018, 5:59pm UTC](https://community.hubspot.com/t/getting-type-info-for-conversion-information-field/11786/2 "2018-01-31T17:59:04Z")

</div>

Hi [@Aleksej.Ruckoj](https://community.hubspot.com/u/aleksej.ruckoj),

I’m not sure I understand. Are you pulling all contact properties using the Contact Properties API? This should return all properties from all property groups. Can you give me some more info on what you’re trying to accomplish?

![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/8/6/866622022dd2450717faadc43236eac17dafd9d7.png) [developers.hubspot.com](https://developers.hubspot.com/docs/methods/contacts/v2/get_contacts_properties)

### [Get all contacts properties | Contacts properties API](https://developers.hubspot.com/docs/methods/contacts/v2/get_contacts_properties)

GET /properties/v1/contacts/properties - Properties in HubSpot are fields that have been created, in this case for deals in a given portal. This endpoint will return all of the deal properties, including their definition, for a given portal.

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [January 31, 2018, 6:27pm UTC](https://community.hubspot.com/t/getting-type-info-for-conversion-information-field/11786/3 "2018-01-31T18:27:23Z")

</div>

Hi [@Derek\_Gervais](https://community.hubspot.com/u/derek_gervais),

Our use case is pretty simple - we just want to get all Contact properties and pass them to our system.  
The problem that we’ve encountered goes like this:

1. We’re creating a custom property “my date” inside Conversion Information group
2. Then we’re using “Get a contact record by its vid” ([https://developers.hubspot.com/docs/methods/contacts/get\_contact](https://developers.hubspot.com/docs/methods/contacts/get_contact)) and receive this property back:

 ![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/3/c/3c78bced30551c955910af820b1cdeccc92c4cfe.jpeg)

1. Then we want to understand properties types and are using “Get All Contacts Properties” ([https://developers.hubspot.com/docs/methods/contacts/v2/get\_contacts\_properties](https://developers.hubspot.com/docs/methods/contacts/v2/get_contacts_properties)).  
But this type “my date” and its type is not there so we can’t understand that this is actually a date and have to treat it as a number.

Thanks for your help,  
Aleksej

---

<div class="post-metadata">

**Author:** ![Derek\_Gervais](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/derek_gervais/32/17429_2.png) [@Derek\_Gervais](https://community.hubspot.com/u/Derek_Gervais)\
**Post date:** [February 1, 2018, 5:35pm UTC](https://community.hubspot.com/t/getting-type-info-for-conversion-information-field/11786/4 "2018-02-01T17:35:58Z")

</div>

Hi [@Aleksej.Ruckoj](https://community.hubspot.com/u/aleksej.ruckoj),

I believe I understand. HubSpot has two types of contact properties for storing times, `date` and `datetime`. Any properties created in the HubSpot application in Contact Settings would be `date` properties. Date properties will only store the date, and must be set to midnight UTC for the date you want. Datetime properties can store any time, so any valid millisecond timestamp would be accepted. When you pull all contact properties (`/properties/v1/contacts/properties`) each property will have a `type` field. The type isn’t included when pulling a contact by `vid` (`/contacts/v1/contact/vid/:vid/profile`).

![]() [developers.hubspot.com](https://developers.hubspot.com/docs/faq/how-should-timestamps-be-formatted-for-hubspots-apis)

### [How should timestamps be formatted for HubSpot’s APIs?](https://developers.hubspot.com/docs/faq/how-should-timestamps-be-formatted-for-hubspots-apis)

HubSpot API endpoints accept UNIX formatted timestamps in milliseconds. Most scripting languages have built-in functions or existing libraries that handle time conversion, but you must ensure that your timestamp values are in the correct UNIX…

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [February 1, 2018, 6:08pm UTC](https://community.hubspot.com/t/getting-type-info-for-conversion-information-field/11786/5 "2018-02-01T18:08:37Z")

</div>

Hi [@Derek\_Gervais](https://community.hubspot.com/u/derek_gervais),

You’re absolutely correct.  
The problem is, that for some reason we’re not seeing the custom property in the response from /properties/v1/contacts/properties.

Could you please advice how can we get it?

---

<div class="post-metadata">

**Author:** ![Derek\_Gervais](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/derek_gervais/32/17429_2.png) [@Derek\_Gervais](https://community.hubspot.com/u/Derek_Gervais)\
**Post date:** [February 2, 2018, 8:19pm UTC](https://community.hubspot.com/t/getting-type-info-for-conversion-information-field/11786/6 "2018-02-02T20:19:59Z")

</div>

Hi [@Aleksej.Ruckoj](https://community.hubspot.com/u/aleksej.ruckoj),

If you’re not seeing your property in the response from that endpoint, it likely means that there’s a mixup with the portal(s) you’re making requests to. Can you send me your Hub ID and the name of the property you’re referring to?

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [February 5, 2018, 12:38pm UTC](https://community.hubspot.com/t/getting-type-info-for-conversion-information-field/11786/7 "2018-02-05T12:38:44Z")

</div>

Hi [@Derek\_Gervais](https://community.hubspot.com/u/derek_gervais),

I’ve finally understood what was the problem.  
Thanks a lot for your help, it showed the right way!
