Outcome
List the chart of accounts. Filter by type or archived state, search across code, name and description, and sort by code, name, type, subtype or status.
Before you start
- Verify the intended environment, authenticated identity and specifically approved organization context.
- The published application permission is accounts:read. Discover the exact granted canonical Books workspace and bind it separately from action input.
Discover the target
topolo whoami --json
topolo actions get app_topolo_books.accounts.list --detail --json
topolo resources topolo-books --json
topolo workspaces list topolo-books --json
- Set BOOKS_WORKSPACE_ID to the exact granted workspace returned by discovery.
Request
GET /api/accounts
Inspect and test this action. Save the reviewed input as payload.json; supply credential/resource context separately.
Input fields
| Field | Required | Meaning | Schema and constraints |
|---|---|---|---|
includeArchived | Optional | include Archived | {"type":"boolean"} |
type | Optional | type | {"type":"string","enum":["asset","liability","equity","income","expense"]} |
search | Optional | Text filter applied to this action’s collection; this does not discover records outside the credential scope. | {"type":"string","minLength":1,"maxLength":200} |
sortBy | Optional | One exact supported sort key from the schema. | {"type":"string","enum":["code","name","type","subtype","status"]} |
sortOrder | Optional | Ascending or descending ordering for the same selected sort key. | {"type":"string","enum":["asc","desc"]} |
Inspect nested fields and the complete input schema.
Effects
- Reads the chart without changing anything.
Interpret the response
Read $.accounts[].id for the returned account identifier. Empty collections and nullable fields do not discover a target.
No verification needed for a read.
Inspect the success schema. CLI/MCP add their own transport envelope; CLI --detail requests the full result.
Worked examples
Actual Books route handlers and the exported Worker were exercised against five local SQLite D1 concern databases with all committed migrations, the real posting Durable Object and local R2. Route captures use synthetic verified Auth; Worker captures use synthetic Auth transports. Nexus, Brand, Notify, Pay, Mercury and Xero responses are explicitly simulated at the provider transport boundary. Captures prove local request/response behavior and canonical SDK projection, not live bank access, payment movement, email delivery, provider eligibility, tax compliance, encrypted custody, scheduled execution, deployment or production completion. Fixture identities, credentials, addresses and records authorize no live operation.
Run a reviewed request
Save the input from the selected worked example as payload.json. Validate and inspect the plan before calling the action; refused examples demonstrate errors and are not instructions to execute.
CLI:
topolo actions validate app_topolo_books.accounts.list --data @payload.json --json
topolo actions plan app_topolo_books.accounts.list --resource-type workspace --resource-id "$BOOKS_WORKSPACE_ID" --data @payload.json --json
topolo actions call app_topolo_books.accounts.list --resource-type workspace --resource-id "$BOOKS_WORKSPACE_ID" --data @payload.json --detail --json
MCP tool and arguments for the first successful example:
{
"tool": "topolo_read_action",
"arguments": {
"actionId": "app_topolo_books.accounts.list",
"input": {},
"resourceType": "workspace",
"resourceId": "<exact granted workspace id>",
"detail": true
}
}
An empty chart of accounts
Input · payload.json:
{}
Captured response · HTTP 200
{
"accounts": []
}
HTTP 200. No verification needed for a read.
An existing chart of accounts
Input · payload.json:
{}
Captured response · HTTP 200
{
"accounts": [
{
"id": "acc_873bdb78fad44749b99b4acacb376541",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "1000",
"name": "Bank account",
"type": "asset",
"subtype": "bank",
"parent_id": null,
"currency": null,
"system_key": null,
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_6e9cd24365ce4c1b924bcb30e854ee71",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "1050",
"name": "Cash on hand",
"type": "asset",
"subtype": "cash",
"parent_id": null,
"currency": null,
"system_key": null,
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_3a6585c310af402fafa567d9fed4c3de",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "1100",
"name": "Accounts receivable",
"type": "asset",
"subtype": "receivable",
"parent_id": null,
"currency": null,
"system_key": "accounts_receivable",
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_738a8bcda1a340709c946c6eee0cdbad",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "1150",
"name": "Undeposited funds",
"type": "asset",
"subtype": "cash",
"parent_id": null,
"currency": null,
"system_key": "undeposited_funds",
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_6b000a75b01f45f0b5ee5529581402aa",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "1200",
"name": "Prepayments",
"type": "asset",
"subtype": "prepayment",
"parent_id": null,
"currency": null,
"system_key": null,
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_830a07c470c842f4b342451d210fb0ae",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "1300",
"name": "Inventory",
"type": "asset",
"subtype": "inventory",
"parent_id": null,
"currency": null,
"system_key": null,
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_5c336114524c4a83975864d7b36315b9",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "1500",
"name": "Fixed assets",
"type": "asset",
"subtype": "fixed_asset",
"parent_id": null,
"currency": null,
"system_key": null,
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_e5fc6a779fb24b0e9827f5f0f9e55f1d",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "1550",
"name": "Accumulated depreciation",
"type": "asset",
"subtype": "accumulated_depreciation",
"parent_id": null,
"currency": null,
"system_key": null,
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_fba9084dbb4e41e480480d9209d75217",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "2050",
"name": "Credit card",
"type": "liability",
"subtype": "credit_card",
"parent_id": null,
"currency": null,
"system_key": null,
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_de221bfd9f83457c98967284f1da5c8c",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "2100",
"name": "Accounts payable",
"type": "liability",
"subtype": "payable",
"parent_id": null,
"currency": null,
"system_key": "accounts_payable",
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_c32dd01096434cc098ab0c8323bf49e8",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "2200",
"name": "Tax control",
"type": "liability",
"subtype": "tax",
"parent_id": null,
"currency": null,
"system_key": "tax_control",
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_225667dfa17a4f09ac90fff8aa52f208",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "2210",
"name": "PAYE and NIC payable",
"type": "liability",
"subtype": "tax",
"parent_id": null,
"currency": null,
"system_key": null,
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_74ac20c904f243569ef8d7ccbe07a42a",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "2220",
"name": "Corporation tax payable",
"type": "liability",
"subtype": "tax",
"parent_id": null,
"currency": null,
"system_key": null,
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_ba8bb071a54b42b8bfdf94a499193e2b",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "2300",
"name": "Accruals",
"type": "liability",
"subtype": "accrual",
"parent_id": null,
"currency": null,
"system_key": null,
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_dd96e2813f934209ad69906b68e9f97c",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "2400",
"name": "Deferred revenue",
"type": "liability",
"subtype": "deferred_revenue",
"parent_id": null,
"currency": null,
"system_key": null,
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_0433e85398934ecc98068842bbec7ee6",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "2500",
"name": "Loans",
"type": "liability",
"subtype": "loan",
"parent_id": null,
"currency": null,
"system_key": null,
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_96fae328d5dd4a9d8923595f1c41da9c",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "2600",
"name": "Directors' loan account",
"type": "liability",
"subtype": "director_loan",
"parent_id": null,
"currency": null,
"system_key": null,
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_ed1238b8fa864827ac904306ca7c8f85",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "3000",
"name": "Share capital",
"type": "equity",
"subtype": "share_capital",
"parent_id": null,
"currency": null,
"system_key": null,
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_08773290bd7d41ba939fd6897f7e7963",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "3100",
"name": "Dividends",
"type": "equity",
"subtype": "distribution",
"parent_id": null,
"currency": null,
"system_key": null,
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_5800873a504f4aa08c2612b6b0b54e24",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "3200",
"name": "Retained earnings",
"type": "equity",
"subtype": "retained_earnings",
"parent_id": null,
"currency": null,
"system_key": "retained_earnings",
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_15d3b50359144f4f9817b9f39771d2f2",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "3900",
"name": "Opening balances",
"type": "equity",
"subtype": "opening_balances",
"parent_id": null,
"currency": null,
"system_key": "opening_balances",
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_6b10ece8c0184cee8dd68be89c9e2db9",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "4000",
"name": "Sales",
"type": "income",
"subtype": "revenue",
"parent_id": null,
"currency": null,
"system_key": null,
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_aa5dd93588284974aa1b9decefae92ab",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "4100",
"name": "Other income",
"type": "income",
"subtype": "other_income",
"parent_id": null,
"currency": null,
"system_key": null,
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_9786d14b79ee474096e8f1bbce254921",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "4900",
"name": "Foreign exchange gain / loss",
"type": "income",
"subtype": "other_income",
"parent_id": null,
"currency": null,
"system_key": "fx_gain_loss",
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_03149133d7f94e489ff5c28eb54b3a4a",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "5000",
"name": "Cost of sales",
"type": "expense",
"subtype": "cost_of_sales",
"parent_id": null,
"currency": null,
"system_key": null,
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_83883282a4bd44aa87c0afd6f8e634c3",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "5200",
"name": "Payment processing fees",
"type": "expense",
"subtype": "cost_of_sales",
"parent_id": null,
"currency": null,
"system_key": "payment_processing_fees",
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_150b7684b7dd43ddb565fd2f55607a68",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "6000",
"name": "Advertising and marketing",
"type": "expense",
"subtype": "operating",
"parent_id": null,
"currency": null,
"system_key": null,
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_c32a8b476c444aeb916abdb6b8b7d59d",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "6100",
"name": "Bank fees",
"type": "expense",
"subtype": "operating",
"parent_id": null,
"currency": null,
"system_key": null,
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_96d50af630e342ddb1baa390666d1561",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "6200",
"name": "Software and subscriptions",
"type": "expense",
"subtype": "operating",
"parent_id": null,
"currency": null,
"system_key": null,
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_0f1d8d4137c34bf4bb12057e5bd61a20",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "6300",
"name": "Office and supplies",
"type": "expense",
"subtype": "operating",
"parent_id": null,
"currency": null,
"system_key": null,
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_7872745812ca46c0bec361d106870e77",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "6400",
"name": "Professional fees",
"type": "expense",
"subtype": "operating",
"parent_id": null,
"currency": null,
"system_key": null,
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_72ae95f452ee4338a1cd6012c1c3d13d",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "6500",
"name": "Rent",
"type": "expense",
"subtype": "operating",
"parent_id": null,
"currency": null,
"system_key": null,
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_9274498bed5e4eccbe6253f11bb70085",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "6600",
"name": "Travel",
"type": "expense",
"subtype": "operating",
"parent_id": null,
"currency": null,
"system_key": null,
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_cadc1e762ea8463c98dc6e7410e66522",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "6700",
"name": "Insurance",
"type": "expense",
"subtype": "operating",
"parent_id": null,
"currency": null,
"system_key": null,
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_6ff8d5f063094553be8cc718da8c7ed5",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "6800",
"name": "Utilities",
"type": "expense",
"subtype": "operating",
"parent_id": null,
"currency": null,
"system_key": null,
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_454ceafe30324e4cbd39303eca0aa4c7",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "7000",
"name": "Wages and salaries",
"type": "expense",
"subtype": "payroll",
"parent_id": null,
"currency": null,
"system_key": null,
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_cbebd016ccca4b689bc480fd4ce0ae7e",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "7100",
"name": "Employer's NIC",
"type": "expense",
"subtype": "payroll",
"parent_id": null,
"currency": null,
"system_key": null,
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_b253fd19e6014b8783c56e5c2c4ca474",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "7200",
"name": "Pension contributions",
"type": "expense",
"subtype": "payroll",
"parent_id": null,
"currency": null,
"system_key": null,
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_cfe0625a04114f01b1cbd12c36e614b5",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "8000",
"name": "Depreciation",
"type": "expense",
"subtype": "depreciation",
"parent_id": null,
"currency": null,
"system_key": null,
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_66d149b3b6cc49bd842dc57b1a7039aa",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "8100",
"name": "Interest expense",
"type": "expense",
"subtype": "interest",
"parent_id": null,
"currency": null,
"system_key": null,
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_54a1d3ea05b6405897da1661eda346a6",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "8200",
"name": "Corporation tax",
"type": "expense",
"subtype": "tax",
"parent_id": null,
"currency": null,
"system_key": null,
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_e6699000ce494992b117e07464ae2c0e",
"organization_id": "org_route_muvnp2sb19",
"workspace_id": "ws_route_muvnp2sb19",
"code": "8900",
"name": "Rounding",
"type": "expense",
"subtype": "other_expense",
"parent_id": null,
"currency": null,
"system_key": "rounding",
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:12.833Z",
"updated_at": "2026-10-05T19:42:12.833Z",
"source": "manual",
"source_account_id": null
}
]
}
HTTP 200. No verification needed for a read.
Refused response · auth_error
Input · payload.json:
{
"type": "expense",
"includeArchived": false
}
Captured response · HTTP 401
{
"error": "API key validation failed"
}
HTTP 401. SDK error code auth_error. Authenticate in the intended organization again. Verify whoami and the exact Books application/workspace binding before retrying; do not switch identity to work around a refusal.
Refused response · forbidden
Input · payload.json:
{}
Captured response · HTTP 403
{
"error": "forbidden"
}
HTTP 403. SDK error code forbidden. The credential lacks permission or the resource is outside its scope. Compare the published action permission and discovered workspace binding; obtain the appropriate authorization before another call.
Refused response · workspace_required
Input · payload.json:
{}
Captured response · HTTP 400
{
"error": "workspace_required"
}
HTTP 400. SDK error code workspace_required. Discover the granted Books workspace and pass it as the resource context, separately from action input. An organization id is not a workspace id.
Verify the result
- No verification needed for a read.
Errors and recovery
auth_error(HTTP 401): Authenticate in the intended organization again. Verify whoami and the exact Books application/workspace binding before retrying; do not switch identity to work around a refusal.forbidden(HTTP 403): The credential lacks permission or the resource is outside its scope. Compare the published action permission and discovered workspace binding; obtain the appropriate authorization before another call.workspace_required(HTTP 400): Discover the granted Books workspace and pass it as the resource context, separately from action input. An organization id is not a workspace id.
These are observed local refusals. Shared authentication, schema validation and resource authorization can also refuse before the route. Preserve the actual error, details and request id.
Recovery boundary
Repeat a read in the same authorized context; no state is changed.
Related actions
- Get account: Read one account with its type, code and current balance, so a journal line can name it correctly.
- Post a journal: Post a balanced manual journal to the ledger. Optionally schedule its exact reversal for the first day of a later month with autoReverseOn. Refused with unbalanced_journal, period_locked, account_not_found or account_archived; an idempotencyKey replays the same event. Every line is signed base-currency minor units: positive debit, negative credit.
Evidence
Actual Books route handlers and the exported Worker were exercised against five local SQLite D1 concern databases with all committed migrations, the real posting Durable Object and local R2. Route captures use synthetic verified Auth; Worker captures use synthetic Auth transports. Nexus, Brand, Notify, Pay, Mercury and Xero responses are explicitly simulated at the provider transport boundary. Captures prove local request/response behavior and canonical SDK projection, not live bank access, payment movement, email delivery, provider eligibility, tax compliance, encrypted custody, scheduled execution, deployment or production completion. Fixture identities, credentials, addresses and records authorize no live operation.