# Get invoice

1. **Select Alegra** as your source App in the “Gears” section and click “Create.”

<figure><img src="https://lh4.googleusercontent.com/YXYhjiK4y_ejZ1Vs1j10IpkEwpBA4-zLv6k62NXaDFKzKb2HzQEw94jkXl4lZ39okQ1N-DuNwV8spTapH5YLkTAlbMgzhR0nNK4ouadT278-HAIPAHZ1b3GIHcjshXicJ10Ay16jgG4ky4KirqiXCQ" alt=""><figcaption></figcaption></figure>

2. **Click the red Gear** to display your connections. Choose the one you want to use, or create a new one, and click “Continue.”

<figure><img src="https://lh6.googleusercontent.com/PyssfqO-yrMFEGwim2KSbmTMlR3fO3KQiyOmCHh5FXU97kGz91jbLAIUngX83O3uj871cPZswmxX4R2wUp6FgxVWoG65hn5ZPvB8rqQvJhBQM-ZiwRli68iJMxIqZq8L3eslhOAMkuI5iXoLuAE-2g" alt=""><figcaption></figcaption></figure>

3. **Pick “Get invoice”** as your action and click “Create.” Create a test record in your Alegra account for GearPlug to import the data.

<figure><img src="/files/qPU71JVFH9Wah1BeqTl1" alt=""><figcaption></figcaption></figure>

3. **Review the data** to verify everything works properly. Then, click “OK” to finish setting up your source Plug.

<figure><img src="https://lh5.googleusercontent.com/BiYcVpsrP9AVDyolkgaG5QKvfJiDyspt45_jdQpbXSylUWtJIwPtQ5n8jiZ1eJ3FuVxwD1_d1kz9HsFmsumKJiaFRsFMp-K85muiLwX9MSfxM5-UScZXxZFkAG_MbiLLyba4qTC5cxov3jeKpSSieQ" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Empty Fields**: Under the imported entry, you’ll find a drop-down menu for “Empty Fields.” Here, you’ll find a list of fields you can import—but weren’t used in the form you used.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.gearplug.io/english/set-up-your-integrations/alegra/source-actions/get-invoice.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
