> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: Sample Flows

## Article: Sample Flows

## Article Link: https://dev.wix.com/docs/api-reference/business-management/get-paid/invoices/invoices-settings/sample-flows.md

## Article Content:

# Invoices Settings: Sample Flows

This article presents possible use cases and corresponding sample flows that you can support. It provides a useful starting point as you plan your implementation.

## Configure invoice numbering for a business

If a business wants to set up a custom invoice numbering system with a specific prefix, suffix, and starting number, you can configure the site's invoice settings.

To configure invoice numbering for a business:

1. Call [Get Invoices Settings](https://dev.wix.com/docs/api-reference/business-management/get-paid/invoices/invoices-settings/get-invoices-settings.md) to retrieve the current settings and the latest `revision`.
1. Call [Update Invoices Settings](https://dev.wix.com/docs/api-reference/business-management/get-paid/invoices/invoices-settings/update-invoices-settings.md) with the desired numbering configuration. Pass the current `revision` and specify the fields to update in `fieldMask.paths`. For example:

    ```json
    {
      "invoicesSettings": {
        "revision": "1",
        "numbering": {
          "prefix": "INV-",
          "nextNumber": 1001,
          "suffix": "-2024"
        }
      },
      "fieldMask": {
        "paths": [
          "numbering.prefix",
          "numbering.nextNumber",
          "numbering.suffix"
        ]
      }
    }
    ```