# Bill

## Connection Requirements

{% stepper %}
{% step %}

### Domain

The domain of Bill.

{% hint style="info" %}
Default:\
gateway.stage.bill.com
{% endhint %}
{% endstep %}

{% step %}

### API Token

To generate an API token in **BILL Spend & Expense**, follow these steps:

{% stepper %}
{% step %}
Open your Spend & Expense profile settings by clicking the **Profile** icon in the top-right corner and selecting **Profile**, or by selecting **My Account** from the Spend & Expense navigation menu.
{% endstep %}

{% step %}
Go to the **Settings** tab.
{% endstep %}

{% step %}
Locate the **API tokens** section.
{% endstep %}

{% step %}
Click **Generate new token**.
{% endstep %}

{% step %}
Your API token will appear in the **New token** field. Copy and store it securely, as it will not be displayed again once the window is closed.
{% endstep %}
{% endstepper %}

{% hint style="warning" %}
In the production environment, the Spend & Expense API user must have the **ADMIN** user role to generate a Spend & Expense API token.
{% endhint %}
{% endstep %}

{% step %}

### Proxy

Proxy URL. *(optional)*
{% endstep %}

{% step %}

### Is Secure?

Enable this option if the connection will be established over **HTTPS**.
{% endstep %}
{% endstepper %}

{% hint style="warning" %}
Please perform a **connection test** to ensure there is a valid connection to the Bill host.\
When the discovery operation is finalized, you will be able to see the details on the **Assets** page.
{% endhint %}
