# Full fill custom properties via API

**URL:** <https://community.hubspot.com/t/full-fill-custom-properties-via-api/105299>\
**Category:** APIs & Integrations\
**Tags:** professional, starter\
**Created:** [April 19, 2024, 3:26pm UTC](https://community.hubspot.com/t/full-fill-custom-properties-via-api/105299 "2024-04-19T15:26:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RudakovaS](https://avatars.discourse-cdn.com/v4/letter/r/958977/32.png) [@RudakovaS](https://community.hubspot.com/u/RudakovaS)\
**Post date:** [April 19, 2024, 3:26pm UTC](https://community.hubspot.com/t/full-fill-custom-properties-via-api/105299/1 "2024-04-19T15:26:50Z")

</div>

Hi! I really need your help.  
I’m setting up HubSpot for a SaaS company that runs on a subscription model.  
I want to add to custom properties information about:  
- subscription purchase date (each)  
- subscription activation date  
- subscription expiration date  
- subscription cancel date  
- date of unsuccessful payment  
- registration date  
- next payment date  
- subscription type  
- number of remaining tokens  
- GMV  
- number of subscription purchases

All data is stored right now on my database. How can I add / update this data in HubSpot via API?  
Or how do I always keep up to date information on custom properties?

---

<div class="post-metadata">

**Author:** ![evaldas](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/evaldas/32/69160_2.png) [@evaldas](https://community.hubspot.com/u/evaldas)\
**Post date:** [April 19, 2024, 3:51pm UTC](https://community.hubspot.com/t/full-fill-custom-properties-via-api/105299/2 "2024-04-19T15:51:11Z")

</div>

Hi @RudakovaS

In order to create custom properties, you can follow this guide on [setting up properties](https://knowledge.hubspot.com/properties/create-and-edit-properties). There is an option to [create properties via API](https://developers.hubspot.com/docs/api/crm/properties) as well.

To pass data from your database into the HubSpot portal, you can use [Webhooks with workflows](https://knowledge.hubspot.com/workflows/how-do-i-use-webhooks-with-hubspot-workflows).

To set up API keys in HubSpot, you will need to create a [Private App](https://developers.hubspot.com/docs/api/private-apps).

You can also use the [CRM API for Contacts](https://developers.hubspot.com/docs/api/crm/contacts) to update contact records.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [April 19, 2024, 5:42pm UTC](https://community.hubspot.com/t/full-fill-custom-properties-via-api/105299/3 "2024-04-19T17:42:24Z")

</div>

Thanks for the great reply @evaldas 🙌 — Jaycee
