# can API creat 1：M datas

**URL:** <https://community.hubspot.com/t/can-api-creat-1-m-datas/134786>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [June 19, 2025, 9:32am UTC](https://community.hubspot.com/t/can-api-creat-1-m-datas/134786 "2025-06-19T09:32:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jaylin](https://avatars.discourse-cdn.com/v4/letter/j/49beb7/32.png) [@Jaylin](https://community.hubspot.com/u/Jaylin)\
**Post date:** [June 19, 2025, 9:32am UTC](https://community.hubspot.com/t/can-api-creat-1-m-datas/134786/1 "2025-06-19T09:32:42Z")

</div>

Hi everyone，

i want to know something about API, if some datas from magento, one contact have several orders, can API realise create one contact and multi deals, and this contact also related to multi deals.

---

<div class="post-metadata">

**Author:** ![Jigar\_Thakker](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jigar_thakker/32/63606_2.png) [@Jigar\_Thakker](https://community.hubspot.com/u/Jigar_Thakker)\
**Post date:** [June 19, 2025, 10:26am UTC](https://community.hubspot.com/t/can-api-creat-1-m-datas/134786/2 "2025-06-19T10:26:22Z")

</div>

Hi @Jaylin ,

It is possible to sync contacts and multiple deals (orders) from Magento to HubSpot using the API.

- In your Mangento integration or middleware, use HubSpot contacts API to create the contact in HubSpot if it doesnt already exist

- For each order, use deal API to create a deal in HubSpot

- Then use the Associations API to link each deal to the contact, so the contact is associated with multiple deals

> **[Accounts Dashboard | HubSpot](https://app.hubspot.com/myaccounts?next=developerdocs&redirect=%2Fapi-reference%2Fcrm-deals-v3%2Fguide)**

> **[Accounts Dashboard | HubSpot](https://app.hubspot.com/myaccounts?next=developerdocs&redirect=%2Fapi-reference%2Fcrm-associations-v4%2Fguide)**

If this helps, feel free to mark it as the solution

✔

and give it an upvote

👍

!
