Knowledge base

Anrok for HubSpot

SalesReady integrates HubSpot with the Anrok API for automated sales tax calculations. Users can apply sales tax for quoting and/or billing scenarios. Our flexible real-time integration allows you to calculate sales tax in the following objects:

  1. Deal

    1. Deals will add estimated sales tax as a line item with a SKU of sales-tax and a quantity of 1.

  2. Quote

    1. Quotes will add estimated sales tax as a one-time tax fee after all line items.

  3. Invoice

    1. Invoices will add finalized sales tax as a one-time tax fee after all line items.

How to install the SalesReady + Anrok integration

  1. Log into HubSpot and paste this link into your browser: https://app.salesready.io/auth/hubspot/start

How to configure the SalesReady + Anrok integration

  1. Find the Connected Apps

Config one.png
  1. Look for SalesReady.

Config two.png


  1. Add your API keys from Anrok. Make sure to turn on Test Mode when running tests.

Config three.png
  1. For invoicing, add the Sales Tax app card to the invoice preview.

Config Card.png
  1. Add a field to each applicable object named tax_error_anrok. This will allow for pushing errors back to HubSpot if any occur during sales tax calculation.

Error Field.png


Keeping products in sync between HubSpot and Anrok

  1. Find the Products section and add your products. The SKU maps to the Anrok product ID.

Products one.png

How does the integration work

General

The integration between the applicable HubSpot object(s) and Anrok runs in real-time via HubSpot webhooks. As changes are made to the record, SalesReady calculates sales tax from Anrok and pushes it back to HubSpot. This should work in any HubSpot environment, regardless of edition.

For any address field, make sure that you are using HubSpot State and Country code fields. These are typically two-digit values, such as US (country) and VA (state/region).

Deals

HubSpot Field

Anrok Field

Close Date

Tax / Accounting Date

Company Address

Customer Address

Line Item[] SKU

Line Item[] Product External ID

Line Item[] Amount

Line Item[] Amount

Quotes

HubSpot Field

Anrok Field

Expiration Date

Tax / Accounting Date

In order of priority

  1. Buyer Billing Address

  2. Company Address

Customer Address

Line Item[] SKU

Line Item[] Product External ID

Line Item[] Amount

Line Item[] Amount

Invoices

HubSpot Field

Anrok Field

Invoice Date

Tax / Accounting Date

In order of priority

  1. Invoice Shipping Address

  2. Invoice Billing Address

  3. Company Address

Customer Address

Line Item[] SKU

Line Item[] Product External ID

Line Item[] Amount

Line Item[] Amount

Known issue with HubSpot API and record totals

https://community.hubspot.com/t/invoice-and-line-item-api/149439?sort=top

The above link references an issue where the HubSpot total fields will only be calculated when the record is updated via the UI. The sales tax component on the invoice will display the correct total, and that can be confirmed before sending the invoice to the customer.

Screenshot 2026-10-15 at 10.52.20 AM.png