Skip to main content
POST
Accounting

Overview

Read-only. Nothing fetched is stored.
  • POST /v1/tools/ledger/invoices (ledger_invoices)
  • POST /v1/tools/ledger/invoice-lines (ledger_invoice_lines, NetSuite only)
  • POST /v1/tools/ledger/bills (ledger_bills)
  • POST /v1/tools/ledger/reports (ledger_reports)
  • POST /v1/tools/ledger/bank_transactions (ledger_bank_transactions, Xero and QuickBooks)
Pick connection_id by system/account_label from oneshot_connections_list. Tool prefix: oneshot_. Xero: pages can be shorter than limit; account_label selects the organisation.

Customer-created clients

NetSuite: enable OAuth 2.0 and REST Web Services; redirect URI https://win.oneshotagent.com/v1/connections/oauth. Grant View permissions for Invoices, Credit Memos, Items, Vendor Bills, Customers, Vendors, Currencies, REST Web Services and SuiteAnalytics Workbook. NetSuite setup. Connect: account ID (sandbox suffix included), client ID, secret (encrypted; deleted on revoke). Reports/bank transactions refused before payment. Paging: unchanged limit.

Authentication

x402 payment-signature required. Invalid requests refused before payment.

Invoices and bills

Statuses: open, paid, overdue, void, draft. Missing fields: null.

Invoice lines

NetSuite only; QuickBooks, Xero and Zoho Books refuse before payment: unsupported_for_system. Sales positive; credits negative. Transaction currency. Excludes voided, main, tax, cost-of-goods lines. Aggregate yourself.

Reports

All three on QuickBooks, Xero and Zoho Books (Xero profit and loss: 365 days at most, currency null; Zoho Books: from required).

Bank transactions

Default: all lines; filter unmatched (Xero) or missing receipts. Zoho Books and NetSuite refuse before payment.
amount nonnegative; direction: in/out.

Errors