Skip to main content
The get_invoice tool returns a single invoice by invoiceId within an organization, including line items, taxes, discounts, totals, and links. intent, organizationId, and invoiceId are required, 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 that owns the invoice. Must be one of the organizations the token can access.
string
required
The unique invoice identifier to retrieve.
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
The requested invoice.

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.
  • If the invoice does not exist or is not accessible with the provided token, the tool returns an MCP error: Invoice not found or not accessible.

list_invoices

Search and list invoices.

get_contact

Look up the contact an invoice is billed to.