> For the complete documentation index, see [llms.txt](https://help.checkoutchamp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.checkoutchamp.com/crm/plugins/data-sources/hubspot.md).

# HubSpot

### Obtaining HubSpot access token <a href="#hubspot-obtaininghubspotaccesstoken" id="hubspot-obtaininghubspotaccesstoken"></a>

To obtain your HubSpot access token please do the following

1. Log into your HubSpot account, and click the Gear icon on the top right corner.

<figure><img src="/files/0AUOoqevRB4opFO7BGIX" alt=""><figcaption></figcaption></figure>

&#x20;

1. On the left navigation bar, expand “Integrations” and click “Private Apps”

<figure><img src="/files/I3yZBtk4nC3G6s7BjV4T" alt="" width="268"><figcaption></figcaption></figure>

&#x20;

1. Follow instructions here

<https://developers.hubspot.com/docs/api/migrate-an-api-key-integration-to-a-private-app>

{% hint style="success" %}
The private app must provide with following scopes.&#x20;

`crm.objects.contacts.read`

`crm.objects.contacts.write`
{% endhint %}

#### Navigate to **Admin** → **Plugins** → **Data Sources.** Click the “*+Activate”* button to Activate the HubSpot Plugin. <a href="#hubspot-navigatetoadmin-plugins-datasources.clickthe-activate-buttontoactivatethehubspotplugin" id="hubspot-navigatetoadmin-plugins-datasources.clickthe-activate-buttontoactivatethehubspotplugin"></a>

<figure><img src="/files/Jxqt34vnrklBGqJAcGGM" alt=""><figcaption></figcaption></figure>

#### Enter the **accessToken** provided by HubSpot in the Activate Plugin popup. Ignore apiKey. <a href="#hubspot-entertheaccesstokenprovidedbyhubspotintheactivatepluginpopup.ignoreapikey" id="hubspot-entertheaccesstokenprovidedbyhubspotintheactivatepluginpopup.ignoreapikey"></a>

<figure><img src="/files/nXXe49nU0hgtF7WNLiwK" alt=""><figcaption></figcaption></figure>

#### Data is exported to HubSpot every 4 hours. The CRM will export Partial and Complete orders to the HubSpot account tied to the access token entered in plugin configuration. <a href="#hubspot-dataisexportedtohubspotevery4hours.thecrmwillexportpartialandcompleteorderstothehubspotaccou" id="hubspot-dataisexportedtohubspotevery4hours.thecrmwillexportpartialandcompleteorderstothehubspotaccou"></a>
