Skip to main content
The list_invoices tool returns a filtered, paginated list of invoices for a single organization. Use it to track receivables, find overdue invoices, or review what a customer has been billed. Every request must include intent and organizationId, and the token must carry the invoices.read scope.
Receivables tools require the organization to have invoicing set up in Relay. If it does not, the tool returns an error instead of data.

Scope

Required OAuth scope: invoices.read

Input

string
required
The organization to query. Must be one of the organizations the token can access.
string[]
Filter to one or more statuses. Allowed values: DRAFT, UNSENT, SENT, PROCESSING, PAID, OVERDUE, CANCELLED, SCHEDULED, PAYMENT_FAILED.
string
Filter to invoices billed to a single contact.
string
Lower bound for dueDate, in YYYY-MM-DD format.
string
Upper bound for dueDate, in YYYY-MM-DD format.
string
Lower bound for the issue date, in YYYY-MM-DD format.
string
Upper bound for the issue date, in YYYY-MM-DD format.
string
Opaque pagination cursor from a previous response. Keep the same pageSize and filters when following cursors. Never parse, edit, or reuse a cursor across different filter sets.
integer
Number of results per page. Must be between 1 and 100. Defaults to 50.
string
required
What the user asked for and why this call serves it, in 1 to 500 characters. Required on every tool call. See Common tool arguments.

Output

Invoice[]
required
Array of invoices matching the filters.
object
required
Cursor-based pagination metadata.

Example

Notes

  • Always pass editUrl to the user exactly as returned. Do not construct or modify invoice links.
  • portalUrl is the payer-facing link. It is null for DRAFT invoices and may be null for some older invoices.
  • All totals are Money objects. unitPriceDecimal on each line item carries the exact unit price.
  • Follow nextCursor until hasNextPage is false. Keep the same pageSize and filters on every page.

get_invoice

Fetch a single invoice by ID.

Result conventions

Learn how pagination, Money objects, and dual-channel output work across all tools.