Syncing companies
Requires Sync Companies in App settings.
- Creates and updates HubSpot companies from Fortnox customers. A Fortnox customer that matches no existing company is created as a new HubSpot company.
- Existing companies are matched in this order. The first hit is updated.
- Fortnox customer number.
fortnox_idequals FortnoxCustomerNumber. - Organisation number.
organization_number_from_fortnoxequals FortnoxOrganisationNumber. The values must be identical, including dashes and spaces. This step is skipped when Fortnox has no organisation number, and for a private person. - Company name. The HubSpot company name and the Fortnox customer name are the same, ignoring capital letters and spaces at the start or end. A company that already has
fortnox_idis not matched by name.
- Fortnox customer number.
- With more than one Fortnox company connected, the app first uses the account link (Fortnox company number and customer number). The original Fortnox company then follows the list above. Another Fortnox company uses the account link and the organisation number only.
- This match order has been the rule since 22 September 2026.
- Optional filters and private-person contact sync — see App settings.
| Field HubSpot | Direction | Field Fortnox | Description |
|---|---|---|---|
| Company: fortnox_id | <- | CustomerNumber | Fortnox customer number. First match when an existing company is updated. The original Fortnox company uses this field. Another connected Fortnox company does not. |
| Company: organization_number_from_fortnox | <- | OrganisationNumber | Swedish organisation number, or for international companies: DUNS number or EU VAT number. Second match for an existing company: the value must equal Fortnox OrganisationNumber exactly. Not used for a private person, and not the same field as vat_number_from_fortnox. |
| Company: vat_number_from_fortnox | <- | VATNumber | Field created by the Fortnox app. Set from Fortnox VATNumber when the customer has one. Sent back only when a new Fortnox customer is created and the HubSpot field is set. See Create a Company and Release notes (October 5, 2026). |
| Company: name | <- | Name | Last match, and only for the original Fortnox company. The names must be the same apart from capital letters and spaces at the ends, and the HubSpot company must not already have fortnox_id. A different name does not match, and the Fortnox customer is then created as a new company. |
| Company: address | <- | Address1 | |
| Company: address2 | <- | Address2 | |
| Company: city | <- | City | |
| Company: country | <- | CountryCode (fallback: Country) | Standard HubSpot Country/Region. Stored as ISO 3166-1 alpha-2 (e.g. SE). Uses Fortnox CountryCode when set; otherwise a 2-letter Country value or an English/Swedish country name. Existing companies are updated on the next company sync. When creating a Fortnox customer from HubSpot, the same field is converted back to Fortnox’s country register name. |
| Company: zip | <- | ZipCode | |
| Company: phone | <- | Phone | |
| Company: billing_email | <- | EmailInvoice (fallback to Email) | Custom field created by the app for storing a single billing email address. Synced from Fortnox customer's EmailInvoice field (or Email field if EmailInvoice is not available). Used when creating invoices in Fortnox from HubSpot deals. |
| Company: fortnox_cost_center | <- | CostCenter | Cost center code. Synced from Fortnox (trimmed on import). Used when creating customers and invoices in Fortnox. Values are normalized to uppercase when written to Fortnox from HubSpot. |
| Company: fortnox_sales_account | <- | SalesAccount | Default sales/ledger account (Bokföringskonto). Synced from Fortnox (trimmed on import). Only sent to Fortnox from HubSpot when a new customer is created. |
| Company: fortnox_customer_type | <- | Type | COMPANY or PRIVATE from Fortnox; shown in HubSpot as Company or Private person. When PRIVATE, the company domain is cleared on sync. |
| Company: fortnox_vat_type | <- | VATType | Field created by the Fortnox app. SEVAT (SE VAT), SEREVERSEDVAT (SE reverse charge), EUREVERSEDVAT (EU reverse charge), EUVAT (EU VAT), or EXPORT (Export). The HubSpot dropdown starts empty. Sent back only when a new Fortnox customer is created and the HubSpot field is set; otherwise Fortnox applies its default, SE VAT (SEVAT). See Create a Company and Release notes (October 5, 2026). |
| Company: hubspot_owner_id (Company owner) | <- | OurReference | Fortnox Vår referens. Used only when Company owner from Vår referens is on under Sync Companies. That setting is off by default. When it matches exactly one HubSpot user, that user becomes the company owner. A name must equal the user’s first and last name. Capital letters and extra spaces are ignored. An email address matches that user’s email. A blank reference, no match, or more than one match leaves the company owner unchanged. The next company sync updates companies that already exist. The integration does not write this value back to Fortnox. Anyone who can edit Vår referens in Fortnox can change the HubSpot company owner on the next sync. The app does not check who may assign owners in HubSpot. The HubSpot connection needs permission to read owners; re-authenticate HubSpot if Vår referens is set and the company owner stays empty. |
| Company: fortnox_invoice_template | -> | DefaultTemplates.Invoice / Invoice.PrintTemplate | HubSpot name from App Settings → Invoice template mapping. Used when creating customers/invoices in Fortnox so the correct print template is applied. Options are synced from the Settings map when you save it. See Create an Invoice. |
Private person customers (optional HubSpot contact)
Fortnox customers with Type = PRIVATE are included in the regular company sync above. Turn on the nested setting Create contact for private persons (under Sync Companies) to also create or update a HubSpot contact and associate it with the company. The integration uses Fortnox Email as the unique key for the contact (not EmailInvoice); if Email is blank, only the company is synced.
The other direction starts on the contact. The Fortnox private person card creates or reuses a private-person company, then creates the Fortnox customer. fortnox_id stays on the company. This sync is unchanged: the company is always written, and the contact is created only when the toggle above is on.
| Field HubSpot | Direction | Field Fortnox | Description |
|---|---|---|---|
| Contact: email | <- | Required for this step; EmailInvoice is not used for the contact |
|
| Contact: firstname / lastname | <- | Name | Full name split into first and last (last word = last name) |
| Contact: phone | <- | Phone1 | |
| Contact: address | <- | Address1 | |
| Contact: city | <- | City | |
| Contact: zip | <- | ZipCode |