invoices.numbering.preview
Preview the next invoice number using the saved or a proposed number pattern and next-number setting.
GETPOST
/api/v1/accounting/invoices.numbering.previewPermissions
accounting:read
Who can call it
admin, finance
Retries
Safe to retry: it only reads
MCP
accounting_invoices_numbering_previewFields
patternstringat most 60 characters
nextNumberinteger1 to 999999999
issueDatestringThe date the document was issued, as YYYY-MM-DD.
partyIdstring (ID)The ID of a customer or vendor account, from parties.list.
Example
curl https://app.getoatmilk.com/api/v1/accounting/invoices.numbering.preview \
-H "Authorization: Bearer $OATMILK_API_KEY"{
"data": { … }
}Try it
Try it
Checks your input with this action’s real schema and answers like the API, with synthetic data. No key needed, and nothing changes.
GET/api/v1/accounting/invoices.numbering.preview
curl https://app.getoatmilk.com/api/v1/accounting/invoices.numbering.preview \
-H "Authorization: Bearer $OATMILK_API_KEY"More in Invoicing.