← All integrations

Finance & ERP · Integration

Embed a Payhawk integration in your product

Add Payhawk to your product for your customers, and give your AI agents governed access to it.

Embed a Payhawk integration so your customers can work their own company spend from inside your product instead of exporting it. Payhawk is spend management built around company cards, expenses, supplier invoices and reimbursements, and every expense carries the accounting detail finance actually cares about: a general ledger code, a tax rate, a cost center and whatever custom expense fields that customer has configured. Those mappings differ per company, so they are configuration rather than code. Writes are idempotent, so a retry after a timeout does not book the same expense twice, and every call is logged per customer so a posted line can be traced back to the event that created it. fastn handles per-customer authorization and rate limits, and monitors the connector for Payhawk API changes, proposing a tested fix your team approves.

In your product

Embedded for your customers. Per-tenant auth, customized per customer, monitored by fastn.

  • Let customers connect their own Payhawk account so expenses and card transactions surface in your product with their own categories and general ledger codes attached.
  • Create or enrich an expense from your product, including the custom expense fields a customer uses for cost centers and projects.
  • Read supplier invoices, reimbursements and settled payments so your product can reconcile spend without a CSV download.
  • Trigger your workflow when an expense is submitted, approved or exported to the customer's accounting system.

For your AI agents

Governed, audited access for the agents you build, through the MCP server.

  • An agent reads an expense and its receipt detail before answering an approver's question about it.
  • An agent codes an expense to the right general ledger account and cost center within governed permissions, with the write idempotent and logged.
  • An agent reacts to an approval event and runs the next reconciliation step.

Example prompt

List card transactions from last month with no receipt attached and group them by cardholder.

Set up Payhawk in 4 steps

  1. 01Open the Payhawk connector from your fastn dashboard.
  2. 02Have each customer authenticate their own Payhawk account.
  3. 03Map the expense categories, general ledger codes, tax rates and custom fields your product uses, then enable actions and triggers.
  4. 04Call them from your product, or expose them to an agent through the MCP server.

Why teams use the Payhawk integration

  • Ship a Payhawk integration without building it. Your customers connect their own Payhawk account inside your product and work their invoices, payments and vendors there, and nothing lands on your team.
  • Handle the part that actually costs time: financial writes must be idempotent and reconcilable, because a duplicate is an accounting problem rather than a bug. fastn handles the auth, token refresh, rate limits and pagination, and when Payhawk changes, its maintainer agent proposes a tested fix, so a Payhawk update does not start in your backlog.

Payhawk integration FAQ

Can AI agents use this Payhawk integration?

Yes, through the fastn MCP gateway, scoped per customer and audited. An agent reads an expense and its receipt detail before answering an approver's question about it. For example: "List card transactions from last month with no receipt attached and group them by cardholder."

Is the Payhawk integration safe for financial writes?

Writes are idempotent, so a retry after a timeout does not post a document twice, and every call is logged per tenant so an entry can be traced back to the event that created it. That matters more in finance than anywhere else, because a duplicate is a number somebody has to explain.

Can it handle each customer's own chart of accounts?

Yes. ERP deployments are configured to the business, so account structures, required fields and fiscal calendars differ per customer. Those are mapped per tenant as configuration, not hard-coded.

What about Payhawk rate limits during a first import?

Backfills are throttled deliberately. ERP limits are often account-wide rather than per-integration, so an unthrottled import can exhaust a customer's allowance and disrupt their other integrations.

What can I build with the Payhawk integration?

A common starting point: connect their own Payhawk account so expenses and card transactions surface in your product with their own categories and general ledger codes attached. The use cases above list the rest.

Add Payhawk to your product

Start free with 3 customer connections. No sales call required, and no per-customer integration code.