> For the complete documentation index, see [llms.txt](https://docs.rillet.com/EjmEP4KZ9BVp9j2ho4Mh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rillet.com/EjmEP4KZ9BVp9j2ho4Mh/integrations/expense-management/brex-integration.md). Agents can also search and read this documentation through its [MCP server](https://docs.rillet.com/EjmEP4KZ9BVp9j2ho4Mh/~gitbook/mcp).

# Brex Integration

Connecting **Brex** to **Rillet** allows you to sync bills, charges, and reimbursements in real time. When you complete the connection, **Rillet** syncs your GL accounts, custom fields, VAT rates, vendors, and subsidiaries to **Brex** so your team can classify and sync transactions to **Rillet**.

### Before You Begin

Make sure you have admin access in both Rillet and Brex. Also confirm that your subsidiaries and accounts payable settings are already configured in Rillet.

### Connect Your Brex Account

Open the Brex integration from the **Browse Integration** section of the **Launchpad**, or open the **Integrations** page as described in **Access Your Integrations Management Page**. Then continue with the steps in **Complete the Brex Connection** below.

### Complete the Brex Connection

Follow these steps once you reach the **Integrations** page:

{% stepper %}
{% step %}
Click **Connect** on the **Brex** card in the **Available** list, which you can narrow with the **Accounts payable** filter.
{% endstep %}

{% step %}
Read the instructions in the **Connection** card, then click **Connect**.
{% endstep %}

{% step %}
Log in to your Brex account.

<figure><img src="https://612265232-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNpXFVFZpTQck3vIrjmHB%2Fuploads%2F2x5pkmH7LmSrO8S7CBxF%2Fimage.png?alt=media&#x26;token=146eea43-180b-441d-8f5c-15773c82f95c" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

Wait while Rillet syncs your data into Brex, including your GL accounts, custom fields, VAT rates, subsidiaries, and vendors.

<figure><img src="https://612265232-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNpXFVFZpTQck3vIrjmHB%2Fuploads%2FlEWoaEyimOdOGdsloNy7%2Funknown.png?alt=media&#x26;token=7e2bfc57-6b35-4a85-8da8-ac1d3b93731a" alt=""><figcaption></figcaption></figure>

After the sync is complete, you return to Rillet, where the Brex card now appears under **Connected**.

### Configure Subsidiary Settings

After connecting, you need to define how each subsidiary syncs transactions. You can adjust these settings for each subsidiary in Brex:

| Field                              | Description                                                                                           |
| ---------------------------------- | ----------------------------------------------------------------------------------------------------- |
| **Sync Data From**                 | Choose a date to control which transactions will sync from Brex into Rillet based on a starting date. |
| **Cards Payable Account**          | Select the liability account used for credit card transactions in Brex.                               |
| **Reimbursements Payable Account** | Select the liability account used for employee reimbursements.                                        |
| **Subsidiary Override**            | Connect individual subsidiaries to different Brex accounts when needed.                               |

{% hint style="danger" %} <mark style="color:$danger;">**Danger:**</mark>

If you use subsidiary overrides, you must disconnect them before disconnecting the main Brex connection.
{% endhint %}

Once these settings are configured, Brex has everything it needs to sync transactions correctly for each subsidiary.

### Complete Configuration in Brex

Complete these steps in Brex to confirm your synced data is mapped correctly:

{% stepper %}
{% step %}
Go to **Accounting > Rillet Settings**.

<figure><img src="https://612265232-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNpXFVFZpTQck3vIrjmHB%2Fuploads%2Fn2n7eIBo0wHMQmV6PHrS%2Funknown.png?alt=media&#x26;token=9052fcdf-d36e-4d04-a028-54fbc37d71fd" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Adjust these settings for each subsidiary:

* **Accounting entity visibility and sync:** Toggle on or off.
* **Spending entity:** Select the Brex Entity for each subsidiary.
* **Manual Payments:** Select the default GL account for each subsidiary.
* **Card repayment receivables:** Select the default GL account for each subsidiary.
* **Reimbursement liability:** Select the default GL account for each subsidiary.

<figure><img src="https://612265232-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNpXFVFZpTQck3vIrjmHB%2Fuploads%2F0c1ClVbUhGJVNv40BkNA%2Funknown.png?alt=media&#x26;token=84b40aa2-d0ad-40c9-84cc-18dd69bf42b7" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Click **Sync Settings** to sync the changes.

<figure><img src="https://612265232-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNpXFVFZpTQck3vIrjmHB%2Fuploads%2Fw6la4jfVPANaBoLWfUWS%2Funknown.png?alt=media&#x26;token=2a92b034-fba9-4d90-9e3a-76a5f8be6027" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

### Disconnect Brex from Rillet

Disconnect the integration using these steps:

{% stepper %}
{% step %}
Open the **Integrations** page in Rillet, then find the **Brex** card in the **Connected** list.
{% endstep %}

{% step %}
Click the actions (...) menu on the **Brex** card.
{% endstep %}

{% step %}
Select **Disconnect**.
{% endstep %}

{% step %}
Confirm the disconnection by clicking **Confirm**.
{% endstep %}
{% endstepper %}

{% hint style="warning" %} <mark style="color:$warning;">**Warning:**</mark>

Disconnecting clears all synced configuration data from Brex (GL accounts, subsidiaries, VAT rates, vendors, fields), but existing charges and bills in Rillet remain unchanged. If you have subsidiary overrides configured, disconnect them first. The Brex account becomes available to connect to another Rillet workspace if needed.
{% endhint %}

Once disconnected, you can reconnect Brex at any time by repeating the steps in **Complete the Brex Connection**.

### Frequently Asked Questions (FAQ)

<details>

<summary>How does real-time syncing work?</summary>

After you configure both platforms, all exports from Brex occur in real time as soon as you initiate the export or sync in Brex.

</details>

<details>

<summary>What transactions can I export from Brex?</summary>

You can export bills, charges, and reimbursements. When you export a transaction in Brex using Direct to Rillet, it appears instantly in Rillet along with a link back to Brex and any attachments. Rillet also shows VAT, currency, and subsidiary information exactly as coded in Brex.

</details>

<details>

<summary>What happens if a sync issue occurs?</summary>

Brex displays the error so you can understand what caused the failure, for example missing fields or VAT configuration mismatches. To see a history of changes made to your Brex configuration itself, go to **Organization Settings > Audit Log** in the **Controls & Compliance** group (see [**Audit Logging and Activity History**](https://docs.rillet.com/EjmEP4KZ9BVp9j2ho4Mh/reporting/audit-logging-and-activity-history.md)), then use **Period**, **Item type**, and **Action** to narrow the entries. You can also click **Export table** to download them.

</details>

### See Also

To learn more about the Brex integration in **Rillet**, review these articles:

* [**Set Up Rillet Fields in Brex**](https://docs.rillet.com/EjmEP4KZ9BVp9j2ho4Mh/integrations/expense-management/brex-integration/set-up-rillet-fields-in-brex.md)
* [**Connect Gusto to Rillet**](https://docs.rillet.com/EjmEP4KZ9BVp9j2ho4Mh/integrations/payroll/gusto.md)
* [**Connect Your Bank Accounts**](https://docs.rillet.com/EjmEP4KZ9BVp9j2ho4Mh/getting-started/set-up-your-books/connect-your-bank-accounts.md)
* [**Fields Overview**](https://docs.rillet.com/EjmEP4KZ9BVp9j2ho4Mh/settings-and-config/custom-fields/fields-overview.md)
* [**Custom Fields**](https://docs.rillet.com/EjmEP4KZ9BVp9j2ho4Mh/settings-and-config/custom-fields.md)
* [**Viewing Fields in Reporting**](https://docs.rillet.com/EjmEP4KZ9BVp9j2ho4Mh/settings-and-config/custom-fields/viewing-fields-in-reporting.md)
* [**JustWorks**](https://docs.rillet.com/EjmEP4KZ9BVp9j2ho4Mh/integrations/payroll/justworks.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.rillet.com/EjmEP4KZ9BVp9j2ho4Mh/integrations/expense-management/brex-integration.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
