Skip to main content
Conto exports every payment your agents make in one file: wallet payments, x402 and MPP calls, agent-to-agent payments, transfers between your wallets, card purchases, and checkouts your agents reported. Each row carries the agent, its owner, its team and cost center, a spend category, and the category’s general ledger (GL) account.

Spend categories

Go to Settings > Accounting to add categories. Each category has a name, an optional GL account, and optional rules. Owners and Admins can change categories. An agent’s key cannot. A payment lands in a category in this order:
  1. The category the agent sent. When an agent sends a category with a payment and it matches a category’s label or name, the payment uses that category.
  2. Rules. Otherwise Conto checks each category’s rules: card merchant category codes (MCC) first, then merchant domains, then rails. A domain also matches its subdomains, so openai.com matches api.openai.com. When two categories match at the same step, the first by name wins.
  3. Uncategorized. A payment that matches nothing exports with an empty category.
Categories are applied when you export, not when the payment is made. A new category or rule applies to earlier payments too, and a payment is never stopped because of its category.
Rules take mccs (four digit codes), merchantDomains, and rails. Rails are wallet, x402, mpp, agent, transfer, card, and checkout.

Export

In Settings > Accounting, pick a date range and download the CSV. Dates are UTC, and the range includes both days you pick. From the API, GET /api/spending/export returns CSV by default, up to 20,000 rows. For a larger range, page through it as JSON:
Pass the response’s nextCursor as cursor to read the next page. nextCursor is null on the last page. from is inclusive and to is exclusive. Use an organization API key or a signed-in session. An agent’s key cannot export the organization’s spend.

Columns

Owner, team and cost center are the agent’s current ones. Department is what the payment recorded when it was made. Card and checkout amounts are the card network’s or the agent’s reported amount. Conto does not see the charge for a checkout an agent completed itself.

SDK and CLI

The export needs SDK 0.9.0 or later and CLI 0.6.0 or later. With a ContoAdmin client configured with an organization key:
For each next JSON page, pass page.nextCursor as cursor with the same date bounds.
The CLI uses the configured organization key. --output creates a private file and refuses to overwrite an existing one. Without --output, it writes the export to standard output. JSON returns one page and its nextCursor. Use --cursor to continue.

Receipt references

The additional receiptPath column links to the authenticated Conto transaction receipt API, relative to your API base URL. It is null for card and reported-checkout rows and incoming-only transactions that the receipt endpoint does not expose to your organization. A Conto transaction receipt records the payment and its controls. It is not a merchant invoice. No private receipt files or expiring signed download links are embedded in the export.