<!-- Markdown rendering of https://accountingkit.dev/integrations/freshbooks/ -->

> Connect FreshBooks with OAuth 2.0 single-use token rotation locks, business discovery, invoices, payments, contacts, taxes, and verified HMAC webhooks.

FreshBooks integration · key: freshbooks

# FreshBooks API integration and webhooks

AccountingKit integrates with FreshBooks through OAuth 2.0 with locked single-use refresh-token rotation and /users/me business discovery, normalizing organizations, clients, invoices, payments, and tax rates while verifying X-FreshBooks-Hmac-SHA256 webhooks and running day-overlap incremental sync.

[Start free](https://app.accountingkit.dev/auth/login) [FreshBooks setup docs](https://docs.accountingkit.dev/docs/integrations/freshbooks) [Talk to us](https://accountingkit.dev/contact/)

Facts checked 27 November 2026

FreshBooksProvider key `freshbooks` · 5 resource families

## Capability summary

| Authentication | FreshBooks OAuth 2.0 with serialized single-use refresh-token rotation and /users/me accounting-business filtering. |
| --- | --- |
| Webhooks | Callback verifier handshake plus constant-time X-FreshBooks-Hmac-SHA256 verification and live invoice/payment reconciliation. |
| Attachments | Not exposed in v1. |
| Financial reports | Profit and Loss reports return provider_unsupported in v1. |
| Provider actions | Unpaid invoice soft-delete cancellation (vis_state: 1); FreshBooks REST API has no public binary PDF download endpoint. |
| Synchronization | Full sync, day-overlap incremental sync (updated_min minus 1 day), and hourly invoice reconciliation. |

## Key capabilities

### Serialized single-use refresh-token rotation

FreshBooks invalidates the old refresh token on every refresh. AccountingKit holds a per-connection database lock and persists each replacement token atomically.

### Exact X-FreshBooks-Hmac-SHA256 verification

Canonicalizes form-urlencoded webhook bodies to match FreshBooks’ Python json.dumps signature rule, rejects ambiguous duplicate keys, and handles callback.verify handshakes.

### Day-overlap incremental sync

Because FreshBooks search\[updated\_min\] accepts YYYY-MM-DD dates without timestamps, AccountingKit applies a 1-day overlap and deduplicates on provider\_updated\_at.

### Automatic due-date offset calculation

Pass standard ISO issue\_date and due\_date values and AccountingKit computes FreshBooks’ due\_offset\_days automatically without modifying vis\_state during updates.

## Supported resources and operations

| Normalized resource | FreshBooks object | Read | Write | Notes |
| --- | --- | --- | --- | --- |
| Organizations | /users/me | Yes | Read-only | Filters out client-only memberships lacking an account_id. |
| Contacts | users/clients | Yes | Yes | FreshBooks clients normalized to canonical contacts. |
| Invoices | invoices/invoices | Yes | Yes | Computes due_offset_days automatically; cancel sets vis_state: 1. |
| Payments | payments/payments | Yes | Yes | Supports provider_options.freshbooks.payment_type and invoice allocations. |
| Tax rates | taxes/taxes | Yes | Read-only | Exact decimal percentage strings preserved. |

## Example API request

Every write requires an `Idempotency-Key` header and returns a normalized response shape shared across all six providers. Read the full [FreshBooks technical guide](https://docs.accountingkit.dev/docs/integrations/freshbooks) for setup steps and field mappings, or validate payloads with our [remote MCP server](https://accountingkit.dev/mcp/).

```

```

## Operational details and known limits

### Operational behavior

-   FreshBooks silently caps per\_page at 100; AccountingKit pages through results transparently.
-   Client-only FreshBooks memberships without an account\_id are filtered out during OAuth discovery so only real businesses connect.
-   Pass status: "authorised" to mark a new invoice as sent (action\_mark\_as\_sent: true); omit it to keep a draft.

### Not supported in this release

-   Chart of accounts, purchase orders, quotes, credit notes, overpayments, prepayments, branding themes, and Profit and Loss reports return provider\_unsupported.
-   invoice.download\_pdf, invoice.get\_online\_url, and organization.get\_deep\_link return 400 because FreshBooks REST exposes no public binary PDF download or share-link endpoint.
-   Invoices with applied payments cannot be cancelled and return 409.

## Common questions

How does AccountingKit handle FreshBooks single-use refresh tokens?

AccountingKit serializes token refreshes behind a per-connection lock, persists each new refresh token atomically before returning it, and rejects any refresh response that omits a replacement token.

Can AccountingKit verify FreshBooks webhooks automatically?

Yes. AccountingKit handles FreshBooks callback.verify challenges and verifies X-FreshBooks-Hmac-SHA256 signatures in constant time before enqueueing live invoice or payment reconciliation.

## Other accounting integrations

[**All 6 accounting integrations**Compare capabilities across Xero, QuickBooks Online, NetSuite, and more.](https://accountingkit.dev/integrations/) [**Xero**13 resource families · Connect Xero via OAuth 2.0 with thirteen resource families, idempotent writes, attachments, quote-to-invoice plus supplier POs, and verified webhooks.](https://accountingkit.dev/integrations/xero/) [**QuickBooks Online**7 resource families · Integrate QuickBooks Online with Intuit OAuth, realm identity, items, invoices, attachments, verified CloudEvents webhooks, and Profit and Loss reports.](https://accountingkit.dev/integrations/quickbooks-online/) [**Oracle NetSuite**8 resource families · Connect Oracle NetSuite with OAuth 2.0 PKCE, OneWorld subsidiary discovery, SuiteQL sync, and idempotent invoice, PO, and estimate writes on every plan.](https://accountingkit.dev/integrations/netsuite/) [**Sage Intacct**6 resource families · Connect Sage Intacct over the GA REST API v1 (no legacy XML) with OAuth 2.0, multi-entity dimensions, REST Query Service sync, and idempotent writes.](https://accountingkit.dev/integrations/sage-intacct/) [**Wave**7 resource families · Connect Wave Pro and Advisor accounts through one REST API over Wave GraphQL, with seven resource families, invoice PDFs, online URLs, and signed webhooks.](https://accountingkit.dev/integrations/wave/)

## Build it against a sandbox company today.

The test environment is free. Or tell us which accounting systems your customers run and we will map the coverage with you.

[Start free](https://app.accountingkit.dev/auth/login) [Talk to us](https://accountingkit.dev/contact/)
