---
title: "Invoices: Auto-assign invoice groups to orders"
description: "Orders are auto-assigned to invoice groups based on customer preferences (field- or time-based) when marked \"Ready to invoice.\""
url: https://help.qargo.com/us/articles/322552-invoices-auto-assign-invoice-groups-to-orders
locale: us
updated: 2026-03-17
---

# Invoices: Auto-assign invoice groups to orders

Introduction Understanding how Qargo manages order grouping and billing is essential for efficient operations. This article explains the key factors that determine how orders are grouped into loads and invoices. These include the role of customer references and the 'order invoice group' field.

-   **New feature**: Orders can now be automatically assigned to billing groups based on the customer configuration
-   **Configuration options**:
-   Field-based grouping (e.g., by ZIP code)
-   Time-based grouping (daily, weekly, monthly)
-   Optional conditional filters
-   **Process**: Groups are assigned when the "Ready to invoice" task is completed
-   **Flexibility**: Manual assignment is still available and will not be overwritten
-   **Customer references**: Customer references can be reused across orders, but they do not directly affect invoice grouping. Always check the 'order invoice group' field for correct grouping.
-   **Note**: When the customer changes, manual action is needed to recalculate the correct group

:::callout{tone="warning"}
The order invoice group is separate from the charge invoice group. For more details on how **charges** are grouped, click [here](https://help.qargo.com/us/articles/246415-rate-card-transport-charges#h_6c2a325dc4).
:::

## Set up the invoice group {#h_9b70262ac4}

Billing groups can now be assigned to orders automatically. To do this, configure custom billing groups on a customer. The 'order invoice group' field is the main factor that determines how orders are grouped on an invoice. Orders with the same value in this field are automatically combined into a single invoice. Orders with different values or no value are invoiced separately.

-   Set the billing preferences on the customer page to _Custom order grouping_:

![](https://help.qargo.com/media/6177c203903f-image.png)

### Grouping {#h_1ea0b836cd}

This configuration defines the grouping.

-   **Field-based grouping**: defines the field by which orders receive the same billing group

    -   E.g., if group by = last delivery ZIP code, all orders with the same last delivery ZIP code receive the same billing group

        ![](https://help.qargo.com/media/90724a6fa453-image.png)

-   **Time-based grouping**: groups orders on invoices by a defined time interval.

    -   E.g., with weekly grouping and the date type _'first pickup date'_, all orders with a first pickup date in the same week are put on the same invoice.
    -   **_Date type:_** the order date used for the time-based grouping

        ![](https://help.qargo.com/media/9e3c4c6cc91c-image.png)

    -   **_Time interval:_** the time interval by which orders are grouped

        ![](https://help.qargo.com/media/3ef517766e17-image.png)


### Conditions {#h_6743a37366}

-   Specify the conditions under which custom order invoice grouping applies.

    -   E.g., if orders with the first pickup in Belgium should be invoiced together, add this to the conditions:

![](https://help.qargo.com/media/c5841f52c654-image.png)

:::callout{tone="info"}
**Rules can be reordered with drag and drop.**
:::

### Billing group calculation and invoice creation {#h_d251136310}

The automatic billing group is determined and assigned to the order when the **_Ready to invoice_** task is completed. Orders that share the same customer reference are not grouped into one invoice unless they also share the same 'order invoice group' value. This ensures flexibility and accuracy in managing invoices.\
Creating and posting the actual invoice remains a manual process controlled by the user, which ensures flexibility and accuracy.

**Example of an automatically calculated billing group**

![](https://help.qargo.com/media/1d6c25df9a7e-image.png)

**Configuration:**

![](https://help.qargo.com/media/023b53d36d94-image.png)

:::callout{tone="warning"}
‼️ With multiple rules, **_'first match wins'_** logic applies. If all conditions in Rule 1 are met, Rule 1 is applied. If not, the system goes through the rules until all conditions of a rule are met.
:::

### Create invoice {#h_bd4cd25254}

When creating invoices, select **_Consolidate per preference_** under billing preferences. The orders with the same automatically assigned billing group are then put on one invoice.\
This step ensures that grouped orders are manually confirmed and invoiced, so the user keeps control of the process.

E.g., with time-based grouping, if the time interval is set to 'weekly' and the date is the pickup date, the system groups the invoices based on the Monday of that week.

![](https://help.qargo.com/media/92d654e86cec-image.png)

![](https://help.qargo.com/media/ca4bdbb11026-image.png)

**💡 Pro tip:** To use billing groups without the automatic behavior, a billing group can also be assigned to an order manually. If some orders have the 'order invoice group' field set and others do not, the system generates separate invoices. This distinction is key to understanding why invoices may not match customer references alone.

-   On the order detail page, click the **_Add shipment/info_** button
-   Or enable the **_Billing group column_** in the order list and edit it in place.

    -   A billing group added manually is not overwritten by the automatically calculated billing group.

**Manually setting the billing group from the order detail page**

::video{src="/media/video/a23b0eb8b128-2025-05-20-10_00_48.mp4"}

**Display of the billing group on the order detail page**

![](https://help.qargo.com/media/bca20b8b7c47-image.png)

**Manually setting the billing group from the order list:**

![](https://help.qargo.com/media/fc29dbaecf6a-image.png)

-   On contract carriers, the UI for the invoice preference **_Custom order grouping_** has changed to match how it is displayed on customers.

    -   These changes are visual only; no functional changes were made for contract carriers.

        ![](https://help.qargo.com/media/0aaf6f8fd943-image.png)

-   If the customer on the order changes after the automatic billing group has been assigned, the system does not automatically redetermine the correct billing group.
-   To solve this:

    -   After changing the customer

        -   delete the current billing group
        -   Revert the _Ready to invoice_ task
        -   Re-trigger the _Ready to invoice_ task
    -   The new automatic billing group is then determined based on the new customer.

**An example to clarify:**\
The following custom invoice grouping is configured:

![](https://help.qargo.com/media/d95817fcce51-image.png)

The following 5 orders are created for the customer with the custom invoice grouping above:

![](https://help.qargo.com/media/8c1c59bf8dce-image.png)

-   Or-3123 and Or-3124 are grouped together on the same invoice (billing group Belgium\_2025-05-12\_3089) because they both have:

    -   a first pickup date in the same week
    -   a pickup in Belgium
    -   the same delivery ZIP code
-   Or-3131 is not grouped in the same billing group as the first two because its first pickup date falls in a different week (05/20 → since the chosen time interval is weekly, this order is put in an invoice group for Monday 05/19). The billing group created is Belgium\_2025-05-19\_3089
-   Or-3125 does not receive the custom invoice group Belgium because its pickup is in the Netherlands. No billing group is assigned automatically when the order is set to Ready to invoice.
-   Or-3135 is not grouped in the same billing group as the first two because its delivery location has a different delivery ZIP code (NL-6222 instead of NL-3089). The billing group created is Belgium\_2025-05-12\_6222

    ![](https://help.qargo.com/media/904f0f606130-image.png)


## Related articles

- [Invoices – customer invoice preferences](https://help.qargo.com/us/articles/133788-invoices-customer-invoice-preferences.md)
- [Invoices - Setting the Invoice from date on orders](https://help.qargo.com/us/articles/868703-invoices-setting-the-invoice-from-date-on-orders.md)
- [Invoices - Auto-create an invoice when an order is Ready to invoice](https://help.qargo.com/us/articles/845453-invoices-auto-create-an-invoice-when-an-order-is-ready-to-invoice.md)
- [Invoices – Create a sales invoice](https://help.qargo.com/us/articles/133891-invoices-create-a-sales-invoice.md)
- [Invoices – Set "Do not invoice" in bulk](https://help.qargo.com/us/articles/147432-invoices-set-do-not-invoice-in-bulk.md)
