Skip to main content
POST
Accounting

Overview

Read-only. Payment cursors: 24-hour state; otherwise nothing stored.
  • POST /v1/tools/ledger/attachments (ledger_attachments)
  • 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)
  • ledger_tax_lines
connection_id: select by system/account_label from oneshot_connections_list. Prefix: oneshot_. Xero: pages may be short; 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.

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

Standard reports: QuickBooks/Xero/Zoho Books (Xero profit/loss: ≤365 days, currency null; Zoho Books: from required).

Bank transactions

Zoho Books/NetSuite refuse before payment. Default: all lines.
amount nonnegative; direction: in/out.

Errors

Attachments

Xero only; other systems refuse before payment. No bytes. Scope: accounting.attachments.read. Required: connection_id, bank_transaction_id. limit: 1–20 (default 20). cursor: opaque next_cursor, same connection/parent. Returns id, exact parent_id, nullable filename/mime_type/size (bytes), source: { system, id }. Metadata proves linkage only. Pricing.