Connectors / Finance · HTTP Connector
Payhawk integration and API
Create a bill and create a custom field in Payhawk, and start a workflow when Payhawk sends “Expense created”.
What can you do with Payhawk on Tray.ai?
Payhawk is a spend management platform combining company cards, expense reports, bill payments, and reimbursements, with sync to accounting systems. Tray.ai connects to Payhawk through the HTTP Connector, so your workflows can call the Payhawk API alongside the rest of your stack.
- When Payhawk sends “Expense approved”, post the expense to your accounting system.
- Alert finance in your team chat when Payhawk sends “Payment failed”, so a supplier bill doesn't go unpaid.
- Invite a user to Payhawk when your HR system marks a new hire as started.
- When Payhawk sends “Purchase order status changed”, update the order in your procurement system.
- Connects through
- HTTP Connector
- Authentication
- A bearer token or an API key in a request header
- Base URL
- https://api.payhawk.io/api/v3
Set it up
Connect Payhawk to Tray.ai
Each step uses Payhawk's own API details, from its documentation.
Save Payhawk's API token
Save the token Payhawk issues as a Tray.ai authentication. The HTTP Client sends it as a bearer token on every call. The token stays out of the workflow and out of the logs.
Point the HTTP Client at the API
Add an HTTP Client step and use https://api.payhawk.io/api/v3 as the base URL. Or paste a cURL example from Payhawk's API docs, and Tray.ai fills in the method, URL, and headers.
Start with “List expenses”
It's one of 16 documented actions, under Expenses. The response comes back as data the next step can map into your other apps.
Start workflows from Payhawk events
Give Payhawk the URL of a Tray.ai webhook trigger. “Expense created” can then start a workflow, and so can 7 other events.
Workflows to build with Payhawk
Connect Payhawk with NetSuite, BambooHR and Slack
Each one uses actions and events from Payhawk's own API documentation.
Send approved Payhawk expenses to NetSuite
When
Expense approved
Then
- Get an expense for amount, category, and receipt
- Create a bill in NetSuite
With NetSuite
Give new BambooHR employees a Payhawk account
When
An employee is added in BambooHR
Then
- Invite a user with the employee's details
- Add a team member to the employee's department team
With BambooHR
Tell employees in Slack when an expense is rejected
When
Expense rejected
Then
- Get an expense for the submitter and amount
- Send the submitter a direct message in Slack
With Slack
Apps you can build on Payhawk data
Internal tools your team can build with an AI assistant, each one using Payhawk calls from its API documentation.
Expense approval feed
Shows expenses as they are created, approved or rejected, with full expense details for finance review.
Fund account balance view
Lists fund accounts with their bank statements so finance can see balances and recent movements.
Failed payment queue
Lists failed payments as they happen so the finance team can look up the expense and follow up.
Payhawk MCP server for AI agents
Build an MCP server on Payhawk in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works
- List expenses
- Create a custom field
- Invite a user
- Create a team
- List fund accounts
- Create a webhook subscription
- Get an expense
- Create a bill
What the Payhawk API covers
6 resources and 16 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.
Expenses
- List expenses
- Get an expense
- Create a bill
- Create a reimbursable expense
Custom fields
- Create a custom field
- Update a custom field
- Delete a custom field
Users
- Invite a user
- Update a user
- Delete a user
Teams
- Create a team
- Add a team member
Fund accounts
- List fund accounts
- Get bank statements
Webhook subscriptions
- Create a webhook subscription
- List webhook subscriptions
Events Payhawk can send to a Tray.ai webhook trigger
- Expense created
- Expense approved
- Expense rejected
- Payment settled
- Payment failed
- Deposit received
- Supplier created
- Purchase order status changed
Checked against Payhawk's own documentation on 2026-10-22
How Tray.ai makes this work
Payhawk plugs into the whole Tray.ai platform
Tray iPaaS
Integrate and automate across 12,000+ apps, databases, APIs, and services with visual workflows, error handling, and observability.
Learn moreTray Helix agents
Agents in the apps your teams run on Tray Helix that read, write, and act in Payhawk, with a person's approval on any tool you choose.
Learn moreAgent Gateway for MCP
Expose Payhawk actions as governed MCP tools: observable, rate-limited and authenticated.
Learn moreTray Helix
Build apps on Payhawk data with your AI assistant, then deploy, run, and govern them on Tray.ai.
Learn moreMore finance apps on Tray.ai
Dedicated connectors and other apps Tray.ai reaches in the same category. See every finance connector →
Frequently asked questions
What can a Tray.ai workflow do in Payhawk?
The Payhawk API documents 16 actions across 6 resources (Expenses, Custom fields, Users, Teams, Fund accounts, Webhook subscriptions). For example: List expenses; Create a custom field; Invite a user. A workflow can make any documented call through the HTTP Connector.
How does Tray.ai authenticate with Payhawk?
The Payhawk API uses a bearer token and an API key in a request header. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.
Which Payhawk events can start a Tray.ai workflow?
Payhawk sends 8 events to a webhook URL, for example: Expense created; Expense approved; Expense rejected; Payment settled; Payment failed; Deposit received; Supplier created; Purchase order status changed. A Tray.ai webhook trigger receives them and starts a workflow.
See Payhawk working against your stack.
We'll walk through a tailored demo with your systems plugged in.
Thanks. Someone from our team will be in touch soon.