Outcome
Export every Books row the organization authored, grouped by concern database (core, ledger, documents, banking, audit).
Before you start
- Verify the intended environment, authenticated identity and specifically approved organization context.
- The published application permission is privacy:read. Privacy export/erasure is organization-wide; a workspace header does not narrow its effects.
Discover the target
topolo whoami --json
topolo actions get app_topolo_books.organizations.data.export --detail --json
- organizationId: Exact approved organization id from whoami. Privacy export and erasure cover that whole organization.
Request
GET /api/organizations/{organizationId}/data
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 |
|---|---|---|---|
organizationId | Required | Exact approved organization id from whoami. Privacy export and erasure cover that whole organization. | {"type":"string","minLength":1} |
Inspect nested fields and the complete input schema.
Effects
- Reads the selected Books organizations result in the credential-scoped organization and applicable canonical workspace. Export every Books row the organization authored, grouped by concern database (core, ledger, documents, banking, audit).
Interpret the response
Read $.data.organization_id for the returned organization identifier. Empty collections and nullable fields do not discover a target.
Inspect the actual response fields and retained identifiers for the selected organization/workspace. Export every Books row the organization authored, grouped by concern database (core, ledger, documents, banking, audit). Use the related published read actions when a returned record or ledger outcome needs further inspection; an HTTP 200 does not establish provider delivery or financial agreement.
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.organizations.data.export --data @payload.json --json
topolo actions plan app_topolo_books.organizations.data.export --data @payload.json --json
topolo actions call app_topolo_books.organizations.data.export --data @payload.json --detail --json
MCP tool and arguments for the first successful example:
{
"tool": "topolo_read_action",
"arguments": {
"actionId": "app_topolo_books.organizations.data.export",
"input": {
"organizationId": "org_e2e_muvnp7qn2"
},
"detail": true
}
}
Refused response · auth_error
Input · payload.json:
{
"organizationId": "synthetic_books_unresolved"
}
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.
Successful response · HTTP 200
Input · payload.json:
{
"organizationId": "org_e2e_muvnp7qn2"
}
Captured response · HTTP 200
{
"success": true,
"data": {
"organization_id": "org_e2e_muvnp7qn2",
"exported_at": "2026-10-05T19:42:19.302Z",
"credentials_included": false,
"stores": {
"core": {
"books_report_views": [],
"books_period_checklist": [],
"books_oauth_states": [],
"books_migration_sources": [],
"books_dimension_values": [],
"books_dimensions": [],
"books_tax_rate_components": [],
"books_tax_rates": [],
"books_periods": [
{
"id": "per_03145e3ad08244f5a52ecd6f4c6adedc",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"period_key": "2026-09",
"start_date": "2026-09-01",
"end_date": "2026-09-30",
"fiscal_year": 2026,
"status": "open",
"locked_at": null,
"locked_by": null,
"lock_reason": null,
"created_at": "2026-10-05T19:42:19.272Z",
"updated_at": "2026-10-05T19:42:19.272Z"
}
],
"books_accounts": [
{
"id": "acc_ac21a035085d43ea8494f176b1c39afe",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"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:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_2c6f30301d8148e08fd1560af9004c7f",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"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:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_9f88f28bc73943f68487621f37f0c927",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"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:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_a074101f35254578b8d3f90c922a69ca",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"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:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_6eae9d2117484f20ab6cabf83be95e43",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"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:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_d69456c1e56a45efb2509724bb533780",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"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:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_8533196219b14003bfcf062c7af6c1c3",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"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:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_69a084c96b96491086c6681706e67c9c",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"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:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_190e84d8ce4249e1815859ed09004507",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"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:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_010010bba13048b381a3f071b205786a",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"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:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_67356b1b3e9b48f29773e0e50ac23e00",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"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:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_6838ae92517c4485a60c541d9f6f60bd",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"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:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_c6c114a387aa4dbc9913f18961fc9423",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"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:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_80efc49ee23545758f9402a619af9479",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"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:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_a87125b8b6bf47cda3a69423b7cf2ea9",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"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:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_76ca661fe99d4ffbb19f87081dfbd779",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"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:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_ffaa00e6f0bc49609495dca55e71f2df",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"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:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_543913e465024a6ab3bae456e1738099",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"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:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_328b09ec434f488cbab61af2252ff155",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"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:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_277589918bff44e6b8ee95e1779a0d98",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"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:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_98b2f4bb583a40b5b40e28bf78f9633e",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"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:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_6162de7bc87747549ec5295c44e884ff",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"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:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_5819aac98dfd4c058554a93e74d339bb",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"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:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_d8ae1307eba54a398eeb40ae797ee656",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"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:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_30ad5759b02e49c99ed058dd88f3012b",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"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:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_e62cb487ed734f53b6ae408d908470bd",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"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:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_ee44cbaf49a64abc940832d02a464a24",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"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:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_6bdaadeb2f274541b700685ae11714a3",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"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:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_43331f3e5dd540fc91c9ddf867f5206e",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"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:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_49a7927ed40c487cb25cb7bfc1b01fb2",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"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:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_f72fd69c455b4135a41daf561bda29a2",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"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:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_393a4c8b0c034ce88b06d2e51d35ea51",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"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:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_f1bb8423243a4dff9aacb91945e9e1da",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"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:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_edc82e55300c4a7fa4297862234ec29a",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"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:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_d28567a156b348d39f767b5e32c328b1",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"code": "2210",
"name": "Payroll tax payable",
"type": "liability",
"subtype": "tax",
"parent_id": null,
"currency": null,
"system_key": null,
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_e8030e6d2cfb46ce9ba1403feeccd9d7",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"code": "2230",
"name": "Federal income tax payable",
"type": "liability",
"subtype": "tax",
"parent_id": null,
"currency": null,
"system_key": null,
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_96c02c75d7804f8387e64e53a8e22e17",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"code": "2240",
"name": "State income tax payable",
"type": "liability",
"subtype": "tax",
"parent_id": null,
"currency": null,
"system_key": null,
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_73432ec2c37f467fa8757daf328ec791",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"code": "3000",
"name": "Members' equity",
"type": "equity",
"subtype": "owner_capital",
"parent_id": null,
"currency": null,
"system_key": null,
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_88dc29d6914b47b7bc7ba90e958b83cc",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"code": "3100",
"name": "Distributions",
"type": "equity",
"subtype": "distribution",
"parent_id": null,
"currency": null,
"system_key": null,
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_879f579a28cb4e1a8f482d7bf398ee35",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"code": "7100",
"name": "Payroll taxes",
"type": "expense",
"subtype": "payroll",
"parent_id": null,
"currency": null,
"system_key": null,
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_912d90162b87499a9f5ea6c2ed18152e",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"code": "7200",
"name": "Employee benefits",
"type": "expense",
"subtype": "payroll",
"parent_id": null,
"currency": null,
"system_key": null,
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
},
{
"id": "acc_ec5c4757d2e5420cafb76e179ca903b8",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"code": "8200",
"name": "Income tax expense",
"type": "expense",
"subtype": "tax",
"parent_id": null,
"currency": null,
"system_key": null,
"description": null,
"status": "active",
"created_at": "2026-10-05T19:42:19.264Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"source": "manual",
"source_account_id": null
}
],
"books_settings": [
{
"workspace_id": "ws_e2e_muvnp7qn2",
"organization_id": "org_e2e_muvnp7qn2",
"base_currency": "USD",
"fiscal_year_start_month": 1,
"lock_date": null,
"coa_template": "us_llc",
"created_at": "2026-10-05T19:42:19.263Z",
"updated_at": "2026-10-05T19:42:19.264Z",
"invoice_business_name": null,
"invoice_legal_name": null,
"invoice_email": null,
"invoice_phone": null,
"invoice_website": null,
"invoice_registration_number": null,
"invoice_tax_number": null,
"invoice_address_line1": null,
"invoice_address_line2": null,
"invoice_city": null,
"invoice_region": null,
"invoice_postal_code": null,
"invoice_country": null,
"invoice_payment_instructions": null,
"invoice_footer": null,
"invoice_template": "modern",
"conversion_date": null,
"invoice_bank_account_name": null,
"invoice_bank_name": null,
"invoice_bank_account_number": null,
"invoice_bank_routing_number": null,
"invoice_bank_sort_code": null,
"invoice_bank_iban": null,
"invoice_bank_swift_bic": null,
"invoice_bank_currency": null,
"invoice_auto_create_public_page": 0,
"invoice_auto_create_payment_link": 0,
"invoice_payment_merchant_id": null,
"invoice_payment_provider_account_id": null
}
],
"books_workspaces": [
{
"id": "ws_e2e_muvnp7qn2",
"organization_id": "org_e2e_muvnp7qn2",
"status": "active",
"created_at": "2026-10-05T19:42:19.253Z",
"updated_at": "2026-10-05T19:42:19.253Z"
}
]
},
"ledger": {
"books_journal_attachments": [],
"books_recurring_journal_lines": [],
"books_recurring_journals": [],
"books_scheduled_reversals": [],
"books_journal_draft_lines": [],
"books_journal_drafts": [],
"books_journal_lines": [
{
"id": "jl_0a91405d1b4b40e5a06608738b1e25b2",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"event_id": "je_4a4400bf835e4d3eba09772ca433c898",
"sequence": 1,
"line_no": 1,
"period_key": "2026-09",
"posted_on": "2026-09-02",
"account_id": "acc_010010bba13048b381a3f071b205786a",
"amount_minor": 250000,
"currency": "USD",
"document_currency": null,
"document_amount_minor": null,
"fx_rate": null,
"tax_rate_id": null,
"contact_id": null,
"dimensions": null,
"memo": null
},
{
"id": "jl_fe29ab6228534865a14f69fd2e2edacc",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"event_id": "je_4a4400bf835e4d3eba09772ca433c898",
"sequence": 1,
"line_no": 2,
"period_key": "2026-09",
"posted_on": "2026-09-02",
"account_id": "acc_73432ec2c37f467fa8757daf328ec791",
"amount_minor": -250000,
"currency": "USD",
"document_currency": null,
"document_amount_minor": null,
"fx_rate": null,
"tax_rate_id": null,
"contact_id": null,
"dimensions": null,
"memo": null
}
],
"books_journal_events": [
{
"id": "je_4a4400bf835e4d3eba09772ca433c898",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"sequence": 1,
"period_key": "2026-09",
"posted_on": "2026-09-02",
"event_type": "journal_posted",
"journal_type": "manual",
"description": "Capital",
"reference": null,
"source_app": "topolo-books",
"source_document_type": null,
"source_document_id": null,
"actor_type": "topolo_agent",
"actor_id": "usr_1",
"autonomy_level": null,
"correlation_id": null,
"idempotency_key": "je_4a4400bf835e4d3eba09772ca433c898",
"reverses_event_id": null,
"reversed_by_event_id": null,
"total_debit_minor": 250000,
"total_credit_minor": 250000,
"line_count": 2,
"previous_hash": "",
"hash": "9aa6dc24abc6ead5d78dc87a364f0dfd84c9ae23fdafbe5a4853c6a1a1afd1bb",
"created_at": "2026-10-05T19:42:19.273Z",
"notes": null
}
],
"books_account_balances": [
{
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"account_id": "acc_010010bba13048b381a3f071b205786a",
"period_key": "2026-09",
"debit_minor": 250000,
"credit_minor": 0,
"updated_at": "2026-10-05T19:42:19.275Z"
},
{
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"account_id": "acc_73432ec2c37f467fa8757daf328ec791",
"period_key": "2026-09",
"debit_minor": 0,
"credit_minor": 250000,
"updated_at": "2026-10-05T19:42:19.275Z"
}
],
"books_ledger_cursors": [
{
"workspace_id": "ws_e2e_muvnp7qn2",
"organization_id": "org_e2e_muvnp7qn2",
"next_sequence": 2,
"last_hash": "9aa6dc24abc6ead5d78dc87a364f0dfd84c9ae23fdafbe5a4853c6a1a1afd1bb",
"updated_at": "2026-10-05T19:42:19.275Z"
}
],
"books_workspaces": [
{
"id": "ws_e2e_muvnp7qn2",
"organization_id": "org_e2e_muvnp7qn2",
"status": "active",
"created_at": "2026-10-05T19:42:19.253Z",
"updated_at": "2026-10-05T19:42:19.253Z"
}
]
},
"documents": {
"books_invoice_public_share_views": [],
"books_invoice_public_shares": [],
"books_invoice_payment_sessions": [],
"books_recurring_invoices": [],
"books_document_write_offs": [],
"books_document_payments": [],
"books_document_lines": [],
"books_documents": [],
"books_contact_people": [],
"books_contacts": [],
"books_workspaces": [
{
"id": "ws_e2e_muvnp7qn2",
"organization_id": "org_e2e_muvnp7qn2",
"status": "active",
"created_at": "2026-10-05T19:42:19.253Z",
"updated_at": "2026-10-05T19:42:19.253Z"
}
]
},
"banking": {
"books_bank_rules": [],
"books_bank_reconciliations": [],
"books_bank_lines": [],
"books_bank_accounts": [],
"books_bank_connections": [],
"books_workspaces": [
{
"id": "ws_e2e_muvnp7qn2",
"organization_id": "org_e2e_muvnp7qn2",
"status": "active",
"created_at": "2026-10-05T19:42:19.253Z",
"updated_at": "2026-10-05T19:42:19.253Z"
}
]
},
"audit": {
"books_audit_events": [
{
"id": "aud_9112a86b420b4be0aa12425f30d6ccd5",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"occurred_at": "2026-10-05T19:42:19.266Z",
"period_key": "2026-10",
"action": "coa.template.apply",
"entity_type": "chart",
"entity_id": "us_llc",
"actor_type": "topolo_agent",
"actor_id": "usr_1",
"autonomy_level": null,
"source_app": "topolo-books",
"correlation_id": null,
"details": "{\"created\":42,\"skipped\":0}"
},
{
"id": "aud_462d1701b6f14b10b49f026a87d4a598",
"organization_id": "org_e2e_muvnp7qn2",
"workspace_id": "ws_e2e_muvnp7qn2",
"occurred_at": "2026-10-05T19:42:19.277Z",
"period_key": "2026-10",
"action": "journal.post",
"entity_type": "journal",
"entity_id": "je_4a4400bf835e4d3eba09772ca433c898",
"actor_type": "topolo_agent",
"actor_id": "usr_1",
"autonomy_level": null,
"source_app": "topolo-books",
"correlation_id": null,
"details": "{\"sequence\":1,\"periodKey\":\"2026-09\",\"totalDebitMinor\":250000}"
}
],
"books_workspaces": [
{
"id": "ws_e2e_muvnp7qn2",
"organization_id": "org_e2e_muvnp7qn2",
"status": "active",
"created_at": "2026-10-05T19:42:19.253Z",
"updated_at": "2026-10-05T19:42:19.253Z"
}
]
}
},
"nexus_provider_credentials_included": false,
"excluded": {
"platform_identity": "Organization, user, grants, and canonical workspace identity are owned by Topolo Auth.",
"provider_credentials": "Bank and provider credentials live in Nexus integration connections; Books holds only the connection reference.",
"backups": "Encrypted backups follow the platform backup retention and erasure schedule."
}
}
}
HTTP 200. Inspect the actual response fields and retained identifiers for the selected organization/workspace. Export every Books row the organization authored, grouped by concern database (core, ledger, documents, banking, audit). Use the related published read actions when a returned record or ledger outcome needs further inspection; an HTTP 200 does not establish provider delivery or financial agreement.
Refused response · forbidden
Input · payload.json:
{
"organizationId": "org_other"
}
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.
Verify the result
- Inspect the actual response fields and retained identifiers for the selected organization/workspace. Export every Books row the organization authored, grouped by concern database (core, ledger, documents, banking, audit).
- Use the related published read actions when a returned record or ledger outcome needs further inspection; an HTTP 200 does not establish provider delivery or financial agreement.
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.
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
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.