invoices.lastForParty
Get the most recent invoice for a customer and a starting template (lines, currency, notes, payment methods, terms, tax) for creating a similar invoice.
GETPOST
/api/v1/accounting/invoices.lastForPartyPermissions
accounting:read
Who can call it
admin, finance
Retries
Safe to retry: it only reads
MCP
accounting_invoices_last_for_partyFields
partyIdstring (ID)RequiredThe ID of a customer or vendor account, from parties.list.
Example
curl -G https://app.getoatmilk.com/api/v1/accounting/invoices.lastForParty \
-H "Authorization: Bearer $OATMILK_API_KEY" \
--data-urlencode 'partyId=7f0f6c1e-1c1f-4b5e-9c8d-2f5e8e3c1a10'{
"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.lastForParty
curl -G https://app.getoatmilk.com/api/v1/accounting/invoices.lastForParty \
-H "Authorization: Bearer $OATMILK_API_KEY" \
--data-urlencode 'partyId=7f0f6c1e-1c1f-4b5e-9c8d-2f5e8e3c1a10'More in Invoicing.