Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.invoica.ai/llms.txt

Use this file to discover all available pages before exploring further.

AIAX MCP Server

The AIAX HTTP MCP server exposes 6 Invoica capabilities as Model Context Protocol tools. Connect any MCP-compatible agent framework to POST /aiax/mcp. Endpoint: POST https://api.invoica.ai/aiax/mcp Transport: Streamable HTTP (stateless mode — no session IDs) Protocol: MCP v1 (JSON-RPC 2.0)

Tools

invoica_create_invoice

Create a machine-payable invoice via x402 (0.01 USDC on Solana).
FieldTypeRequiredDescription
issuerstringNoSeller name or agent id
recipientstringNoBuyer name or agent id
emailstring (email)NoBuyer email
amountnumberNoAmount in currency (default 0.01)
currencystringNoCurrency code (default USDC)
descriptionstringNoService description
x_paymentstringNoBase64 x402 payment proof
Wrapped endpoint: POST /api/x402/invoice

invoica_settle_invoice

Check settlement state of an invoice (0.005 USDC).
FieldTypeRequiredDescription
invoice_idstring (UUID)YesInvoice UUID
x_paymentstringNoBase64 x402 payment proof
Wrapped endpoint: POST /api/x402/settle

invoica_query_mandate

Fetch the public redacted view of a PACT mandate. No auth required.
FieldTypeRequiredDescription
mandate_idstringYesMandate UUID
Wrapped endpoint: GET /v1/public/mandates/:id Returns: id, state, mandate_hash, anchor_tx_hash, created_at, parties[]

invoica_dispute_open

Open a dispute on a PACT mandate. Requires API key.
FieldTypeRequiredDescription
mandate_idstringYesMandate UUID
reasonstring (min 10 chars)YesDispute reason
api_keystringYesInvoica API key
Wrapped endpoint: POST /v1/mandates/:id/dispute Valid mandate states: signed_by_both, in_progress

invoica_get_pricing

Fetch the current pricing schedule for all Invoica capabilities. No auth. Returns: Section JSON with model, tiers[], tools[] Wrapped endpoint: GET /aiax/sections/pricing.json

invoica_get_trust_signals

Fetch live trust signals (rebuilt nightly). No auth. Returns: metrics.drs_receipts_issued, mandates_anchored, invoices_settled, partnerships[] Wrapped endpoint: GET /aiax/sections/trust_signals.json

Quick start

# List tools
curl -X POST https://api.invoica.ai/aiax/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'

# Call invoica_get_pricing
curl -X POST https://api.invoica.ai/aiax/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"invoica_get_pricing","arguments":{}}}'

See Also