# 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.

`GET | POST /api/v1/accounting/invoices.projectOptions`

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

MCP tool: `accounting_invoices_project_options`

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `partyId` | string (ID) | Yes | The ID of a customer or vendor account, from parties.list. |
| `title` | string |  | A short title. at most 200 characters. |
| `memo` | string |  | at most 4000 characters. |
| `lines` | array of objects |  | at most 100 items. |
| `lines[].id` | string |  | The record's ID. at most 64 characters. |
| `lines[].description` | string | Yes | A short description. 1–500 characters. |
| `lines[].quantity` | string |  |  |
| `lines[].unitAmountMinor` | string |  | An amount in cents (the currency's smallest unit), written as a whole-number string such as "1250" for $12.50. Whole number written as a string, may be negative. |
| `lines[].isHeader` | boolean |  |  |
| `lines[].taxCode` | enum |  | One of: `standard`, `exempt`, `zero_rated`. |
| `issueDate` | string or null |  | The date the document was issued, as YYYY-MM-DD. |
| `search` | string |  | Text to search for. at most 200 characters. |
| `limit` | integer |  | How many results to return at most. 1 to 100. Default `25`. |
| `offset` | integer |  | How many results to skip, for the next page of a list. 0 to 100000. Default `0`. |

## Example request

```bash
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'
```

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