> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> 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`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - 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: Introduction

## Article: Introduction

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

## Article Content:

# About the Invoices Settings API

> **Note:** The Get Paid Invoice APIs aren't yet available for all sites. The APIs are available for new sites, and Wix is migrating existing sites. Calls for a site that Wix hasn't migrated yet fail with a `428` error. You don't need to do anything: migration enables access automatically.

Invoice settings control how invoice numbers are generated for a site. Each site has a single invoice settings entity that's automatically available. No creation step is required. You can retrieve and update the settings at any time.

With the Invoices Settings API, you can:

- Retrieve invoice settings for a site.
- Configure invoice numbering with a custom prefix, suffix, and starting number.

Invoice numbers are formatted as `{prefix}{nextNumber}{suffix}`. For example, with prefix `INV-`, next number `1001`, and suffix `-2024`, the invoice number is `INV-1001-2024`. Only 1 prefix and suffix are active at a time. Each prefix has its own independent counter—switching to a different prefix starts a new sequence for that prefix. If you switch back to a previously used prefix, its counter continues from the highest number already issued for that prefix.

## Before you begin

It's important to note the following points before starting to code:

- Only 1 invoice settings entity exists per site. There's no ID field because the entity is unique per site.
- Invoice settings can't be deleted.
- You can only retrieve or update invoice settings. There are no create, delete, or query methods.
- You can't set `nextNumber` lower than the highest number already used for the current prefix.

## Use cases

- [Configure invoice numbering for a business](https://dev.wix.com/docs/api-reference/business-management/get-paid/invoices/invoices-settings/sample-flows.md#configure-invoice-numbering-for-a-business)

## Terminology

- **Invoice settings**: Site-level configuration for invoice numbering. Only 1 entity exists per site.
- **Numbering**: Configuration for how invoice numbers are generated, including prefix, suffix, and the next number in the sequence.

