# How do I connect HubSpot to my store?

The **HubSpot** app turns every COD order into a HubSpot deal in a "Dropify COD" pipeline that follows its delivery: New COD order, Confirmed, Shipped, Delivered, Cancelled or Returned. The buyer is added as a contact with the order's line items, a note is added at each status change, and your leads and customer accounts can be synced as contacts too.

## Steps

1. In **HubSpot**, create a Service Key (**Development › Keys**) or open your legacy private app (**Auth › Show token**) and copy the access token. It needs these scopes: crm.objects.contacts.read/write, crm.objects.deals.read/write, crm.objects.line_items.read/write.
2. In Dropify, go to **Apps › Discover**, find **HubSpot** and click **Install**.
3. On the app page click **Connect**, paste the token in **Access token** and confirm. Dropify checks it and creates the Dropify COD pipeline.
4. Under **What to sync**, choose **COD orders**, **Notes on deals**, **Leads** and **Customers**.
5. Under **Import existing data**, pick **Orders from the last** 3, 6, 12 or 24 months and click **Import now**. Nothing is created twice.
6. Click **Open deals in HubSpot** to see your orders as deals. A buyer becomes a customer in HubSpot when an order is delivered.

To test, place a test order, then change its status in Dropify: the deal moves to the matching stage within a minute. The **Synced** box counts contacts, deals and stage changes.

## Common problems

- "HubSpot refused this access token…" → copy the token of your private app or Service Key again.
- "Your HubSpot token is missing the "crm.objects.contacts.write" permission…" → add the missing scope to the private app or Service Key, then connect again.
- "Your HubSpot currency is MAD and your store sells in USD: deal amounts are in USD." → deal amounts always use your store currency.

## Related
- [How do I connect ActiveCampaign to my store?](https://help.dropify.shop/en/marketing_email_sms/activecampaign/)
- [How do I connect Omnisend to my store?](https://help.dropify.shop/en/marketing_email_sms/omnisend/)
- [How do I connect Zendesk to my store?](https://help.dropify.shop/en/marketing_email_sms/zendesk/)
- [How do I connect Gorgias to my store?](https://help.dropify.shop/en/marketing_email_sms/gorgias/)
