Invoicing

invoices.projectOptions

Before creating an invoice, offer existing projects and contextual suggestions for the customer and draft. Returns active projects with search and pagination, reasons, and the exact next actions to choose a project or create one using tags.create. Suggestions never select a project automatically. Keep organizationId the same for options, project creation and invoice creation. Use projectId null only if the person explicitly chooses no project.

GETPOST/api/v1/accounting/invoices.projectOptions

Permissions

accounting:read

Who can call it

admin, finance

Retries

Safe to retry: it only reads

MCP

accounting_invoices_project_options

Fields

  • partyIdstring (ID)Required

    The ID of a customer or vendor account, from parties.list.

  • titlestring

    A short title.

    at most 200 characters

  • memostring

    at most 4000 characters

  • linesarray of objects

    at most 100 items

  • issueDatestring or null

    The date the document was issued, as YYYY-MM-DD.

  • limitinteger

    How many results to return at most.

    1 to 100 · Default 25

  • offsetinteger

    How many results to skip, for the next page of a list.

    0 to 100000 · Default 0

Example

curl -G https://app.getoatmilk.com/api/v1/accounting/invoices.projectOptions \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  --data-urlencode 'partyId=7f0f6c1e-1c1f-4b5e-9c8d-2f5e8e3c1a10'
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.projectOptions
curl -G https://app.getoatmilk.com/api/v1/accounting/invoices.projectOptions \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  --data-urlencode 'partyId=7f0f6c1e-1c1f-4b5e-9c8d-2f5e8e3c1a10'

More in Invoicing.