> 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/invoice-presets/sample-flows.md

## Article Content:

# Invoice Presets: 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.

## Create a custom invoice preset for a business

If a business wants to create a branded invoice template with specific formatting, custom fields, and a default due date, you can create a new invoice preset and optionally make it the default.

To create a custom invoice preset and set it as default:

1. Call [Create Invoice Preset](https://dev.wix.com/docs/api-reference/business-management/get-paid/invoices/invoice-presets/create-invoice-preset.md) with the desired `displaySettings`, `customFields`, `displayValues`, and `defaultDaysUntilDue`.
1. Call [Set Default Invoice Preset](https://dev.wix.com/docs/api-reference/business-management/get-paid/invoices/invoice-presets/set-default-invoice-preset.md) with the returned preset ID to make it the default template for new invoices.

## Switch the active preset and update its display settings

If a business wants to change which preset is used by default, or update an existing preset's display settings (for example, to start showing the customer's VAT ID on invoices), you can retrieve the preset, update it, and set it as default.

To switch the active preset and update its display settings:

1. Call [List Invoice Presets](https://dev.wix.com/docs/api-reference/business-management/get-paid/invoices/invoice-presets/list-invoice-presets.md) to retrieve all available presets. The current default preset is always listed first with `defaultPreset` set to `true`.
1. Identify the preset you want to activate and note its `id` and `revision`.
1. Call [Update Invoice Preset](https://dev.wix.com/docs/api-reference/business-management/get-paid/invoices/invoice-presets/update-invoice-preset.md) with the preset `id`, `revision`, and the updated `displaySettings` fields you want to change.
1. Call [Set Default Invoice Preset](https://dev.wix.com/docs/api-reference/business-management/get-paid/invoices/invoice-presets/set-default-invoice-preset.md) with the preset `id` to make it the active default.