# Payhawk integrations: expenses and custom fields

> Create a bill and create a custom field in Payhawk, and start a workflow when Payhawk sends “Expense created”.

**Canonical page:** https://tray.ai/connectors/payhawk-integrations/
**Categories:** Finance
**Connects through:** HTTP Connector

## Overview

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.

## Use cases

### Expenses

Read and create expenses in Payhawk from any Tray.ai workflow. The Payhawk API covers calls such as list expenses and get an expense.

- List expenses
- Get an expense
- Create a bill

### Custom fields

Create, update, and delete custom fields in Payhawk from any Tray.ai workflow. The Payhawk API covers calls such as create a custom field and update a custom field.

- Create a custom field
- Update a custom field
- Delete a custom field

### Users

Create, update, and delete users in Payhawk from any Tray.ai workflow. The Payhawk API covers calls such as invite a user and update a user.

- Invite a user
- Update a user
- Delete a user

### Teams

Create teams in Payhawk from any Tray.ai workflow. The Payhawk API covers calls such as create a team and add a team member.

- Create a team
- Add a team member

### Fund accounts

Read fund accounts in Payhawk from any Tray.ai workflow. The Payhawk API covers calls such as list fund accounts and get bank statements.

- List fund accounts
- Get bank statements

### Webhook subscriptions

Read and create webhook subscriptions in Payhawk from any Tray.ai workflow. The Payhawk API covers calls such as create a webhook subscription and list webhook subscriptions.

- Create a webhook subscription
- List webhook subscriptions

## Challenges Tray.ai solves

### Keeping Payhawk credentials out of logs

A raw API call usually means pasting a key or token into the request, where it ends up in step inputs, logs, and screenshots.

**How Tray.ai helps:** Store Payhawk credentials once as a Tray.ai authentication and reference them from the HTTP Connector. Tray.ai masks authentication values in logs, so the secret never shows up in a step's input or output.

### Going from the Payhawk API docs to a working call

Translating an example request from API docs into a workflow step means copying the method, URL, headers, and body by hand.

**How Tray.ai helps:** Paste a cURL example from the Payhawk API docs into the HTTP Connector and Tray.ai fills in the method, URL, headers, and body for you.

### Handling files and non-JSON responses

Not every API answers in JSON. Some return XML, files, or binary data, or expect a multipart upload.

**How Tray.ai helps:** The HTTP Connector parses JSON and XML responses, returns files you can pass to the next step, and sends multipart form data for uploads.

## Frequently asked questions

### Does Tray.ai connect to Payhawk?

Yes. Tray.ai connects to Payhawk through the HTTP Connector, which calls the Payhawk API directly. Any call the Payhawk API documents can run as a step in a Tray.ai workflow.

### 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.

### Can I get a dedicated Payhawk connector?

Payhawk runs through the HTTP Connector rather than a dedicated connector. If your team wants one, the Tray.ai connector SDK can build a dedicated Payhawk connector from the Payhawk API.

## Learn more

- Tray iPaaS: https://tray.ai/platform/ipaas/
- Tray Helix agents: https://tray.ai/helix/agents/
- Agent Gateway for MCP: https://tray.ai/platform/agent-gateway/
- Book a demo: https://tray.ai/contact/
