Skip to main content
The list_discounts tool returns the discounts an organization can apply to invoices. Each discount is either a percentage or a fixed amount. 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
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

Discount[]
required
Array of discounts.
object
required
Cursor-based pagination metadata.

Example

Notes

  • A PERCENTAGE discount carries percentage. A FIXED discount carries amount as a Money object.
  • Follow nextCursor until hasNextPage is false. Keep the same pageSize and filters on every page.

list_tax_rates

List tax rates available for invoices.

list_invoices

Search and list invoices.