Invoicing

invoices.groups.preview

Preview each payer's draft, bill-to snapshot, tax settings, due dates and exact reconciled total. Returns previewHash bound to this revision and the current billing profiles. Does not write or send anything.

GETPOST/api/v1/accounting/invoices.groups.preview

Permissions

accounting:read

Who can call it

admin, finance

Retries

Safe to retry: it only reads, with expectedRevision

MCP

accounting_invoices_groups_preview

Fields

  • idstring (ID)Required

    The record's ID.

  • expectedRevisionintegerRequired

    The record's current revision, from the last time you read it. If someone changed the record since, the request is refused with a conflict so you can reload and check before trying again.

    at most 9007199254740991 · greater than 0

Example

curl -G https://app.getoatmilk.com/api/v1/accounting/invoices.groups.preview \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  --data-urlencode 'id=9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d' \
  --data-urlencode 'expectedRevision=3'
Response
{
  "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.groups.preview
curl -G https://app.getoatmilk.com/api/v1/accounting/invoices.groups.preview \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  --data-urlencode 'id=9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d' \
  --data-urlencode 'expectedRevision=3'

More in Invoicing.