> For the complete documentation index, see [llms.txt](https://help.supplyd.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.supplyd.co/supplyd-erp/sales/sales-order-invoicing/generating-a-sales-order-invoice.md).

# Generating a Sales Order Invoice

Generating sales order invoices in Supply’d saves time, reduces manual data entry & helps ensure customers are billed accurately & efficiently.

Supply’d allows you to generate invoices directly from sales orders, making it easy to bill customers for the products and services they have ordered. You can review invoice details, confirm amounts and generate invoices for downloading, printing or emailing to customers.

Generating invoices in Supply’d helps streamline the invoicing process, reduce manual data entry and ensure accurate billing information.

{% hint style="success" %}
Supply'd supports three invoice scenarios:

1. **One order = one invoice**\
   This is the standard invoicing process.
2. **One order = multiple invoices**\
   You can generate multiple invoices against a single Sales Order, either for a specific amount or for the remaining balance.&#x20;
3. **Multiple orders = one consolidated invoice**\
   Multiple Sales Orders can be consolidated into a single invoice, which is commonly used for customers on weekly, monthly, or other credit terms. To use this option, configure the **Sales Settings** to send consolidated invoices according to the required schedule.

\
\
👉 See the [Sales Settings](https://help.supplyd.co/supplyd-erp/settings/sales-settings.md#invoice-settings) section of the [Sales Settings](https://help.supplyd.co/supplyd-erp/settings/sales-settings.md) document for details on configuring invoices.
{% endhint %}

This document guides you through the process of generating an invoice from an existing sales order in Supply’d.

* [#generating-an-invoice](#generating-an-invoice "mention")
* [#when-invoices-are-sent](#when-invoices-are-sent "mention")

***

## Generating an Invoice

{% stepper %}
{% step %}

#### Select the Sales Order

Select **Sales** from the main menu, then select the order you would like to create an invoice for.

<figure><img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2FbJDih3Dwv41QavjV1QDa%2FSpacer.png?alt=media&amp;token=6c34f805-9610-4de9-8f8a-a029f13dd1a1" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2FH0LfmT5qmM6S6glSpYrN%2FInvoicing%20-%20Select%20Order.png?alt=media&amp;token=91353bd7-2657-4745-b711-b7d5aad06d1c" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2FbJDih3Dwv41QavjV1QDa%2FSpacer.png?alt=media&amp;token=6c34f805-9610-4de9-8f8a-a029f13dd1a1" alt=""><figcaption></figcaption></figure>

The Sales Order will open.

<figure><img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2FbJDih3Dwv41QavjV1QDa%2FSpacer.png?alt=media&amp;token=6c34f805-9610-4de9-8f8a-a029f13dd1a1" alt=""><figcaption></figcaption></figure>

***

{% endstep %}

{% step %}

#### Select Generate

Click the 3 dots in the top right of a Sales Order, select **Invoices**, then click **Generate**.

<figure><img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2FbJDih3Dwv41QavjV1QDa%2FSpacer.png?alt=media&amp;token=6c34f805-9610-4de9-8f8a-a029f13dd1a1" alt=""><figcaption></figcaption></figure>

<div data-with-frame="true"><figure><img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2FUrcPHunMGHZBY4Gt5naa%2F3%20-%20Sales%20Order%203%20Dots.png?alt=media&amp;token=c5d3af93-d864-4537-9f7e-7d2477f724d0" alt=""><figcaption></figcaption></figure></div>

<figure><img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2FbJDih3Dwv41QavjV1QDa%2FSpacer.png?alt=media&amp;token=6c34f805-9610-4de9-8f8a-a029f13dd1a1" alt=""><figcaption></figcaption></figure>

<div data-with-frame="true"><figure><img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2Fe7clapuLEQD14BhaPqxq%2FSales%20Order%203%20Dot%20-%20Invoices%20Generate.png?alt=media&amp;token=ca4cff4f-cdd0-4500-9885-eebed87eada4" alt="" width="375"><figcaption></figcaption></figure></div>

<figure><img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2FbJDih3Dwv41QavjV1QDa%2FSpacer.png?alt=media&amp;token=6c34f805-9610-4de9-8f8a-a029f13dd1a1" alt=""><figcaption></figcaption></figure>

The **Generate Invoice** form will open, allowing you to select your options for generating an invoice.&#x20;

<figure><img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2FbJDih3Dwv41QavjV1QDa%2FSpacer.png?alt=media&amp;token=6c34f805-9610-4de9-8f8a-a029f13dd1a1" alt=""><figcaption></figcaption></figure>

***

{% endstep %}

{% step %}

#### Complete the Form

<figure><img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2FbJDih3Dwv41QavjV1QDa%2FSpacer.png?alt=media&amp;token=6c34f805-9610-4de9-8f8a-a029f13dd1a1" alt=""><figcaption></figcaption></figure>

<div data-with-frame="true"><figure><img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2FqyoAhU8SjUHevm7H0aag%2FGenerate%20Invoice%20Form.png?alt=media&amp;token=77182e28-2c6a-4dd9-b308-a6aee4c9fdd9" alt="" width="563"><figcaption></figcaption></figure></div>

<figure><img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2FbJDih3Dwv41QavjV1QDa%2FSpacer.png?alt=media&amp;token=6c34f805-9610-4de9-8f8a-a029f13dd1a1" alt=""><figcaption></figcaption></figure>

**Order Total**

Automatically populated with the total value of the Sales Order.

<figure><img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2FbJDih3Dwv41QavjV1QDa%2FSpacer.png?alt=media&amp;token=6c34f805-9610-4de9-8f8a-a029f13dd1a1" alt=""><figcaption></figcaption></figure>

**Invoiced**

Automatically populated with any amount that has already been invoiced against the Sales Order. This helps identify any remaining amount available to invoice.

<figure><img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2FbJDih3Dwv41QavjV1QDa%2FSpacer.png?alt=media&amp;token=6c34f805-9610-4de9-8f8a-a029f13dd1a1" alt=""><figcaption></figcaption></figure>

**Type**

Select the type of invoice being generated.

<figure><img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2FbJDih3Dwv41QavjV1QDa%2FSpacer.png?alt=media&amp;token=6c34f805-9610-4de9-8f8a-a029f13dd1a1" alt=""><figcaption></figcaption></figure>

If no previous invoices have been issued, an option will be available to invoice the **Full Amount**.

<figure><img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2FbJDih3Dwv41QavjV1QDa%2FSpacer.png?alt=media&amp;token=6c34f805-9610-4de9-8f8a-a029f13dd1a1" alt=""><figcaption></figcaption></figure>

<div data-with-frame="true"><figure><img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2FAowwLMdtw1VievoYKV1W%2FInvoice%20Type.png?alt=media&amp;token=ff5e1ddc-4e91-4ec2-97fa-9f198e96cae2" alt="" width="307"><figcaption></figcaption></figure></div>

<figure><img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2FbJDih3Dwv41QavjV1QDa%2FSpacer.png?alt=media&amp;token=6c34f805-9610-4de9-8f8a-a029f13dd1a1" alt=""><figcaption></figcaption></figure>

If any invoices have been issued previously, you will have the option to invoice the **Remaining Balance**.<br>

<figure><img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2FbJDih3Dwv41QavjV1QDa%2FSpacer.png?alt=media&amp;token=6c34f805-9610-4de9-8f8a-a029f13dd1a1" alt=""><figcaption></figcaption></figure>

<div data-with-frame="true"><figure><img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2Fcr9QCknTuLZv5yqaeAZM%2F6%20-%20Invoice%20Type%20-%20Remaining%20Bal.png?alt=media&amp;token=f5f3344a-05ad-4e5c-986d-ad903c148d9f" alt="" width="336"><figcaption></figcaption></figure></div>

<figure><img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2FbJDih3Dwv41QavjV1QDa%2FSpacer.png?alt=media&amp;token=6c34f805-9610-4de9-8f8a-a029f13dd1a1" alt=""><figcaption></figcaption></figure>

* **Remaining Balance** - Generates an invoice for the outstanding balance of the Sales Order. This can be used to create a final balance invoice after deducting any deposits or previously invoiced amounts.

<figure><img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2FbJDih3Dwv41QavjV1QDa%2FSpacer.png?alt=media&amp;token=6c34f805-9610-4de9-8f8a-a029f13dd1a1" alt=""><figcaption></figcaption></figure>

* **% Deposit** - Generates an invoice for a percentage of the Sales Order total as a deposit. For example, entering **30%** on a $10,000 order would generate a $3,000 deposit invoice. When this option is selected an additional field - **% Deposit** - will appear allowing you to enter the percentage amount.\ <br>

  <div data-with-frame="true"><figure><img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2FyOtqJA0bFpgQPeF1HLhy%2FInvoice%20%25%20Deposit.png?alt=media&amp;token=3ae3731e-9304-4256-b0e5-a436425a4ad1" alt=""><figcaption></figcaption></figure></div>

  <figure><img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2FbJDih3Dwv41QavjV1QDa%2FSpacer.png?alt=media&amp;token=6c34f805-9610-4de9-8f8a-a029f13dd1a1" alt=""><figcaption></figcaption></figure>
* **Fixed Deposit** - Generates an invoice for a specific dollar amount as a deposit. For example, entering **$2,000** on a $10,000 order would generate a $2,000 deposit invoice. When this option is selected an additional field - **$ Deposit** - will appear allowing you to enter the dollar amount.<br>

  <div data-with-frame="true"><figure><img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2FoFcPsknVwz8bfoBGYT9E%2FInvoice%20%24%20Deposit.png?alt=media&amp;token=9c05b605-1ed2-425c-9787-690bf9e5740a" alt=""><figcaption></figcaption></figure></div>

<figure><img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2FbJDih3Dwv41QavjV1QDa%2FSpacer.png?alt=media&amp;token=6c34f805-9610-4de9-8f8a-a029f13dd1a1" alt=""><figcaption></figcaption></figure>

**Status**\
Select the status for this invoice, either **Issued** or **Draft**.

<figure><img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2FbJDih3Dwv41QavjV1QDa%2FSpacer.png?alt=media&amp;token=6c34f805-9610-4de9-8f8a-a029f13dd1a1" alt=""><figcaption></figcaption></figure>

<div data-with-frame="true"><figure><img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2FTOWMq4mAbLWnbMWW28Vq%2FInvoice%20Status.png?alt=media&amp;token=282bf20e-f52c-4673-96fb-1e3b4cb77905" alt="" width="375"><figcaption></figcaption></figure></div>

<figure><img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2FbJDih3Dwv41QavjV1QDa%2FSpacer.png?alt=media&amp;token=6c34f805-9610-4de9-8f8a-a029f13dd1a1" alt=""><figcaption></figcaption></figure>

* **Issued** - The invoice has been finalised and issued to the customer. It is treated as an active invoice and can be printed or emailed to the customer.
* **Draft** - The invoice is created but has not yet been finalised or issued. It can be reviewed and amended before being issued to the customer.<br>

<figure><img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2FbJDih3Dwv41QavjV1QDa%2FSpacer.png?alt=media&amp;token=6c34f805-9610-4de9-8f8a-a029f13dd1a1" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Draft vs Issued invoices**

When generating an invoice, you can choose to create it as a **Draft** or **Issue** it immediately.

If you choose to **Issue** the invoice, and the Sales Order's payment method is credit card, the payment will be captured immediately and the order will be marked as **Paid**, shown by a green dot - <img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2FahC3RiM0aFesfrZSd0vw%2FORDER%20PLACED%20with%20Green%20Dot.jpg?alt=media&amp;token=2e680a22-7820-475c-be58-7a63c892904f" alt="" data-size="line">.<br>

If you create a <img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2F2gHmIjvna9Bt5gVKwVzR%2FDRAFT.png?alt=media&amp;token=922626f9-e207-45d4-8bdf-ae2d56aa54ca" alt="" data-size="line"> deposit invoice but never issue it, then later mark the Sales Order as **Shipped/Completed**, the draft deposit invoice will be cancelled and a new invoice for the full order amount will be created.<br>

If the deposit invoice was issued, then when the Sales Order is marked as **Shipped/Completed**, Supply'd will automatically create an invoice for the remaining balanc&#x65;**.**

If the deposit has been paid, the Sales Order will display an orange dot, indicating that the order is partially paid - <img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2FKNJmwdFa5IlPYof07O3u%2FORDER%20PLACED%20Orange%20Dot.jpg?alt=media&amp;token=91cc5ecb-6d50-4740-8abf-3686fd8a959a" alt="" data-size="line">.<br>
{% endhint %}

<figure><img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2FbJDih3Dwv41QavjV1QDa%2FSpacer.png?alt=media&amp;token=6c34f805-9610-4de9-8f8a-a029f13dd1a1" alt=""><figcaption></figcaption></figure>

***

{% endstep %}

{% step %}

#### Click Generate

Click <img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2FUG97iB4If4otIdgF7Pld%2FGENERATE.png?alt=media&amp;token=291e4d28-5764-4992-8755-e9c5cdd1f07e" alt="" data-size="line"> to create the invoice using the selected options.<br>

<figure><img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2FbJDih3Dwv41QavjV1QDa%2FSpacer.png?alt=media&amp;token=6c34f805-9610-4de9-8f8a-a029f13dd1a1" alt=""><figcaption></figcaption></figure>

**Deposit Invoice:**

<figure><img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2FbJDih3Dwv41QavjV1QDa%2FSpacer.png?alt=media&amp;token=6c34f805-9610-4de9-8f8a-a029f13dd1a1" alt=""><figcaption></figcaption></figure>

<div data-with-frame="true"><figure><img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2FfPVXJIywEAggAeYmu3AE%2FInvoice%20Generated.png?alt=media&amp;token=63076590-0f90-4562-863d-64110a3404f1" alt="" width="563"><figcaption></figcaption></figure></div>

<figure><img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2FbJDih3Dwv41QavjV1QDa%2FSpacer.png?alt=media&amp;token=6c34f805-9610-4de9-8f8a-a029f13dd1a1" alt=""><figcaption></figcaption></figure>

**Draft Invoice:**

A **Draft Invoice** will display a message across the top of the invoice indicating that it is still in draft status.

<figure><img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2FbJDih3Dwv41QavjV1QDa%2FSpacer.png?alt=media&amp;token=6c34f805-9610-4de9-8f8a-a029f13dd1a1" alt=""><figcaption></figcaption></figure>

<div data-with-frame="true"><figure><img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2Fuiq1L4ljOvisd6D1eQcM%2FDraft%20Invoice.png?alt=media&amp;token=9ba338ac-7665-4a93-b310-e6d73cde1d70" alt=""><figcaption></figcaption></figure></div>

<figure><img src="https://2965503026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDaPYJDB89ny0x7wcMedb%2Fuploads%2FbJDih3Dwv41QavjV1QDa%2FSpacer.png?alt=media&amp;token=6c34f805-9610-4de9-8f8a-a029f13dd1a1" alt=""><figcaption></figcaption></figure>

{% endstep %}
{% endstepper %}

***

## When Invoices are Sent

For the first two scenarios, an invoice is generally not emailed to the customer automatically until the Sales Order is marked as **Shipped/Completed**, or the invoice is manually sent/issued.

For consolidated invoices, marking an order as **Shipped/Completed** does not immediately create or email the invoice. Instead, the invoice will be created and sent according to the customer's configured consolidated invoice schedule.

{% hint style="info" %}
**Note:** Even if **Consolidated Invoicing** is enabled, you can still issue individual invoices for specific Sales Orders when required. Once an individual invoice has been issued, that Sales Order will not be included in a subsequent consolidated invoice, as it has already been invoiced.\
\
**Important:** If a customer is set to use **Consolidated Invoices**, but a standard **Draft Invoice** has been created for a specific Sales Order, that order will **not** be included in a Consolidated Invoice. The Sales Order will retain its individual Draft Invoice and will continue to be invoiced separately.
{% endhint %}

{% hint style="warning" %}
For **Consolidated Invoices** to be generated, the relevant orders must have progressed to the required fulfilment status. Orders must either be marked as **Shipped** or **Completed**, or have progressed through the **Pick, Pack, and Delivery** workflow to a status that indicates they are being shipped.

If you use the **Delivery** module, an order with a status of **Delivery Assigned** will not yet be included in a Consolidated Invoice. Once the delivery run has started and the order status changes to **With a Driver**, the order is considered to be in the shipping process and can be included when the Consolidated Invoice is generated.

If an order has not reached one of the required statuses, it will not appear on the Consolidated Invoice.
{% endhint %}


---

# 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://help.supplyd.co/supplyd-erp/sales/sales-order-invoicing/generating-a-sales-order-invoice.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.
