List invoices whose posting stopped
well_list_halted_invoicesList the invoices of one fiscal period that have no journal entry yet, each with the reason its posting stopped. These are exactly the invoices the close's unposted_invoices blocker counts: the invoice is in Well, and the posting did not book it. Use it to answer why that blocker holds. It is not the missing-invoice read: settled spend without an invoice is well_get_close_proof_gaps.
Each row has invoice_id, invoice_number, issue_date (YYYY-MM-DD), amount ({ amount, currency } or null), issuer_name, receiver_name, posting and reason. posting: "halted" means the latest posting attempt stopped; reason is its halt code as Well recorded it (for example missing_item_classification, neither_party_own, party_missing), and reasons lists every blocker code that attempt recorded. posting: "never_attempted" means Well has not tried to post it yet; reason is null. halted_at is when the latest attempt ran.
total is the size of the whole gap; truncated: true means the list shows fewer rows than total. An empty list with total: 0 means no invoice of the period is unposted.
The period is named in FISCAL terms. Take fiscal_year and fiscal_period from well_get_close_state or a well_list_periods entry; never derive them from a calendar month yourself.
status: "failed" means the read failed: the list is unknown, never empty.
When the token authorizes one workspace, call this directly — no workspace call is needed first. When it authorizes several, this read will not guess which one you mean: pass workspace_id on the call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many invoices to list, oldest issue date first, 50 by default. | |
| fiscal_year | Yes | The fiscal year of the period to read. | |
| workspace_id | No | Target workspace. Omit when the token authorizes one workspace. Required when it authorizes several: this read reports one workspace's own figures and will not choose which. | |
| fiscal_period | Yes | The fiscal period, 1-12 for a month; 13 is the adjustment period and resolves to no rows. | |
| conversation_id | No | The conversation id returned by the previous Well result, in its meta under well/conversation_id, in its structuredContent, or in its JSON text block. Pass it back on every call in the same conversation, including a call a card makes, so the chosen workspace and the earlier answers still apply. It decides the conversation on its own: nothing the host states about the session replaces it. Omit it only on the first call of a conversation. | |
| workspace_scope | No | Restrict this call to the family: the token's primary workspace plus the company workspaces under it that you are a member of. Unrelated authorized workspaces drop out of the read; row reads merge across the family, while a per-workspace figure still reports exactly one workspace. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| total | No | ||
| status | Yes | ||
| success | Yes | ||
| invoices | No | ||
| truncated | No | ||
| fiscal_start | No | ||
| conversation_id | No | The conversation this result belongs to. Pass it back as the conversation_id argument on every later Well call in the same conversation. | |
| newly_connected | No | Tools that connected to this workspace since the last result and that no session was told about yet, oldest first. Present only when at least one tool is new. The connected-line rule says when to tell an entry; when it does, one line per entry, in the person's language: "<name> is connected.". Never fold several entries into one sentence. Each entry comes back once, on one result only: never repeat its line later. | |
| resolved_workspace | No | The workspace that answered, when the caller named none and the token authorizes several. | |
| conversation_id_note | No | Present only when the server opened a fresh lane, stating that no choice recorded earlier was read. | |
| conversation_id_source | No | Where the conversation id came from: the host's own request meta, the caller's argument, or a fresh lane the server opened. |