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 allow for one or the other based on seller preference:

      1. Estimated sales tax as a one-time tax fee after all line items.

      2. Estimated sales tax as a line item with a SKU of sales-tax and a quantity of 1.

  3. Invoice

    1. Invoices allow for one or the other based on seller preference:

      1. Estimated sales tax as a one-time tax fee after all line items.

      2. Estimated sales tax as a line item with a SKU of sales-tax and a quantity of 1.

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. Search for SalesReady.

Config two.png
  1. Add your API keys from Anrok.

    1. Make sure to turn on Test Mode when running tests.

    2. This is where the seller decides where sales tax gets applied for Quotes and Invoices.

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

Config Card.png
  1. Create the following fields on each object and add them to your preferred layout section.

    1. Property labels are entirely up to the seller.

      1. Invoice

        1. anrok_error, multi-line text

        2. anrok_tax_amount, number / currency

        3. anrok_calculated_at, date and time picker

        4. anrok_transaction_id, single-line text

      2. Deal

        1. anrok_error, multi-line text

      3. Quote

        1. anrok_error, multi-line text

  2. Sample Invoice layout with Sales Tax component and custom properties.

Screenshot 2026-11-19 at 9.52.48 PM.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

  • Webhook fields that fire the integration

    • amount

    • closedate

Field Mappings

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

  • Webhook fields that fire the integration

    • hs_quote_amount

    • hs_expiration_date

Field Mappings

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

  • Invoices become finalized in Anrok only when in an Open status.

    • Otherwise, they are only estimates.

    • You can continue making changes to open invoices as needed. Updates get sent back to HubSpot from Anrok.

  • Webhook fields that fire the integration

    • hs_amount_billed

    • hs_invoice_status

    • hs_invoice_date

    • hs_recipient_company_state

    • hs_recipient_company_zip

    • hs_recipient_shipping_state

    • hs_recipient_shipping_zip

Field Mappings

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