# invoices.numbering.preview

Preview the next invoice number using the saved or a proposed number pattern and next-number setting.

`GET | POST /api/v1/accounting/invoices.numbering.preview`

Permissions: `accounting:read` · Roles: admin, finance

MCP tool: `accounting_invoices_numbering_preview`

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `pattern` | string |  | at most 60 characters. |
| `nextNumber` | integer |  | 1 to 999999999. |
| `issueDate` | string |  | The date the document was issued, as YYYY-MM-DD. |
| `partyId` | string (ID) |  | The ID of a customer or vendor account, from parties.list. |

## Example request

```bash
curl https://app.getoatmilk.com/api/v1/accounting/invoices.numbering.preview \
  -H "Authorization: Bearer $OATMILK_API_KEY"
```

Reference page: https://app.getoatmilk.com/docs/api/invoices.numbering.preview
