# Accounting Schedules & Close API > Book and MACRS depreciation, lease liability/ROU schedules, revenue recognition, loan amortisation journals, bank reconciliation matching, trial-balance checks, financial statements, 13-week cash forecast, FX revaluation, inventory costing, prepaid accruals, intercompany eliminations, journal anomaly flags and Form 1099 threshold checks — pure computation on caller ledgers. Each paid operation uses a fixed USDC price on Base with the x402 exact scheme. Unpaid GET, HEAD, and POST return 402 payment terms (POST validates the body only after payment terms are satisfied). A request that carries payment-signature is not yet charged: settlement happens only after a successful (2xx) result. HTTP 4xx/5xx are not charged. Coverage bodies with status complete, partial, or failed all return HTTP 200 and are charged at the full listed price. Settled 2xx responses include a payment-response header; 4xx/5xx do not. Follow https://www.brainiac.software/agent-instructions.txt for install, payment pins, idempotency, and billing rules. - Product: https://www.brainiac.software/api/accounting-schedules - Docs: https://www.brainiac.software/api/accounting-schedules/docs - OpenAPI: https://www.brainiac.software/api/accounting-schedules/openapi.json - Contact: support@brainiac.software (https://www.brainiac.software/contact) ## Operations ### POST /api/v1/accounting-schedules/depreciation-schedule $0.03 USDC. Straight-line, declining-balance, sum-of-years'-digits and units-of-production depreciation schedules with optional first-year convention and journal entries. Inputs: cost, salvage, lifeYears, method, inServiceDate, convention?, fiscalYearEndMonth?, unitsTotal?, unitsByPeriod?, switchToSL? Docs: https://www.brainiac.software/api/accounting-schedules/docs#accounting-schedules-depreciation-schedule Example request: ```json { "cost": 1000000, "salvage": 100000, "lifeYears": 5, "method": "SL", "inServiceDate": "2026-01-01", "convention": "none" } ``` Example response: ```json { "periods": [ { "year": 1, "depreciation": 180000, "accumulated": 180000, "bookValue": 820000 }, { "year": 2, "depreciation": 180000, "accumulated": 360000, "bookValue": 640000 }, "…" ], "entries": [ { "date": "2026-01-01", "lines": [ { "account": "depreciation_expense", "debit": 180000, "credit": 0 }, { "account": "accumulated_depreciation", "debit": 0, "credit": 180000 } ] }, { "date": "2027-01-01", "lines": [ { "account": "depreciation_expense", "debit": 180000, "credit": 0 }, { "account": "accumulated_depreciation", "debit": 0, "credit": 180000 } ] }, "…" ], "sources": [ { "source": "Caller-supplied ledgers, contracts, asset registers and rates processed locally", "url": "https://www.brainiac.software/api/v1/accounting-schedules", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Outputs are schedules and journal-entry proposals for an accountant's review. They are not audited figures, tax determi…" ] } ``` ### POST /api/v1/accounting-schedules/macrs-depreciation $0.03 USDC. Apply IRS Publication 946 Appendix A GDS percentage tables (half-year, mid-quarter, mid-month) after optional section 179 and caller-supplied bonus percentage. Inputs: basis, recoveryPeriod, convention, quarterPlaced?, monthPlaced?, placedInService?, section179?, bonusPct?, q4BasisShare? Docs: https://www.brainiac.software/api/accounting-schedules/docs#accounting-schedules-macrs-depreciation Example request: ```json { "basis": 1000000, "recoveryPeriod": 5, "convention": "HY" } ``` Example response: ```json { "rows": [ { "year": 1, "rate": 0.2, "depreciation": 200000 }, { "year": 2, "rate": 0.32, "depreciation": 320000 }, "…" ], "table": "A-1", "depreciableBasis": 1000000, "section179": 0, "bonus": 0, "sources": [ { "source": "IRS Publication 946 (2025) Appendix A GDS percentage tables", "url": "https://www.irs.gov/publications/p946", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Outputs are schedules and journal-entry proposals for an accountant's review. They are not audited figures, tax determi…", "Rates are from IRS Publication 946 Appendix A GDS tables. The endpoint does not decide bonus eligibility; bonusPct is c…", "…" ] } ``` ### POST /api/v1/accounting-schedules/lease-schedule $0.04 USDC. Present-value a payment stream at the periodic discount rate and amortise the lease liability and right-of-use asset (IFRS 16 / ASC 842 finance-lease mechanics). Inputs: payments, commencement, discountRate, timing?, initialDirectCosts?, incentives?, periodicity? Docs: https://www.brainiac.software/api/accounting-schedules/docs#accounting-schedules-lease-schedule Example request: ```json { "payments": [ { "date": "2027-01-01", "amount": 100000 }, { "date": "2028-01-01", "amount": 100000 }, { "date": "2029-01-01", "amount": 100000 } ], "commencement": "2026-01-01", "discountRate": 0.05, "timing": "arrears", "periodicity": "annual" } ``` Example response: ```json { "initialLiability": 272325, "rouAsset": 272325, "schedule": [ { "period": 1, "openingLiability": 272325, "interest": 13616, "payment": 100000, "closingLiability": 185941, "rouDepreciation": 90775 }, { "period": 2, "openingLiability": 185941, "interest": 9297, "payment": 100000, "closingLiability": 95238, "rouDepreciation": 90775 }, "…" ], "sources": [ { "source": "Caller-supplied ledgers, contracts, asset registers and rates processed locally", "url": "https://www.brainiac.software/api/v1/accounting-schedules", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Outputs are schedules and journal-entry proposals for an accountant's review. They are not audited figures, tax determi…" ] } ``` ### POST /api/v1/accounting-schedules/revenue-recognition-schedule $0.03 USDC. Allocate transaction price by relative standalone selling price and schedule point-in-time, straight-line or milestone recognition by month. Inputs: transactionPrice, obligations Docs: https://www.brainiac.software/api/accounting-schedules/docs#accounting-schedules-revenue-recognition-schedule Example request: ```json { "transactionPrice": 120000, "obligations": [ { "id": "licence", "ssp": 100000, "pattern": "point_in_time", "date": "2026-01-01" }, { "id": "support", "ssp": 50000, "pattern": "straight_line", "start": "2026-01-01", "end": "2026-12-31" } ] } ``` Example response: ```json { "allocation": [ { "id": "licence", "allocated": 80000 }, { "id": "support", "allocated": 40000 } ], "schedule": [ { "month": "2026-01", "revenue": 83397 }, { "month": "2026-02", "revenue": 3069 }, "…" ], "sources": [ { "source": "Caller-supplied ledgers, contracts, asset registers and rates processed locally", "url": "https://www.brainiac.software/api/v1/accounting-schedules", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Outputs are schedules and journal-entry proposals for an accountant's review. They are not audited figures, tax determi…" ] } ``` ### POST /api/v1/accounting-schedules/loan-amortization-journal $0.03 USDC. Compute a level-payment amortisation table and balancing journal entries for a fixed-rate loan. Inputs: principal, annualRate, termMonths, firstPaymentDate, accounts Docs: https://www.brainiac.software/api/accounting-schedules/docs#accounting-schedules-loan-amortization-journal Example request: ```json { "principal": 1000000, "annualRate": 0.06, "termMonths": 12, "firstPaymentDate": "2026-02-01", "accounts": { "loan": "2300", "interest": "7100", "cash": "1000" } } ``` Example response: ```json { "payment": 86066, "rows": [ { "n": 1, "interest": 5000, "principal": 81066, "balance": 918934, "payment": 86066 }, { "n": 2, "interest": 4595, "principal": 81471, "balance": 837463, "payment": 86066 }, "…" ], "entries": [ { "date": "2026-02-01", "lines": [ { "account": "7100", "debit": 5000, "credit": 0 }, { "account": "2300", "debit": 81066, "credit": 0 }, "…" ] }, { "date": "2026-03-01", "lines": [ { "account": "7100", "debit": 4595, "credit": 0 }, { "account": "2300", "debit": 81471, "credit": 0 }, "…" ] }, "…" ], "sources": [ { "source": "Caller-supplied ledgers, contracts, asset registers and rates processed locally", "url": "https://www.brainiac.software/api/v1/accounting-schedules", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Outputs are schedules and journal-entry proposals for an accountant's review. They are not audited figures, tax determi…" ] } ``` ### POST /api/v1/accounting-schedules/bank-reconciliation-match $0.04 USDC. Match bank statement lines to ledger entries by amount+reference, amount+date tolerance, and optional many-to-one subset sums. Inputs: bank, ledger, dateToleranceDays?, allowManyToOne? Docs: https://www.brainiac.software/api/accounting-schedules/docs#accounting-schedules-bank-reconciliation-match Example request: ```json { "bank": [ { "id": "b1", "date": "2026-11-03", "amount": -12000, "text": "ACME INV 1043" } ], "ledger": [ { "id": "l1", "date": "2026-11-01", "amount": -12000, "ref": "INV 1043" } ], "dateToleranceDays": 5, "allowManyToOne": true } ``` Example response: ```json { "matches": [ { "bank": [ "b1" ], "ledger": [ "l1" ], "rule": "exact_amount_ref", "score": 1 } ], "unmatchedBank": [], "unmatchedLedger": [], "difference": 0, "sources": [ { "source": "Caller-supplied ledgers, contracts, asset registers and rates processed locally", "url": "https://www.brainiac.software/api/v1/accounting-schedules", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Outputs are schedules and journal-entry proposals for an accountant's review. They are not audited figures, tax determi…" ] } ``` ### POST /api/v1/accounting-schedules/trial-balance-validate $0.02 USDC. Check debit/credit equality, abnormal balances by account type, duplicate codes and lines with both debit and credit. Inputs: accounts Docs: https://www.brainiac.software/api/accounting-schedules/docs#accounting-schedules-trial-balance-validate Example request: ```json { "accounts": [ { "code": "1000", "name": "Cash", "type": "asset", "debit": 50000, "credit": 0 }, { "code": "2000", "name": "AP", "type": "liability", "debit": 0, "credit": 50000 } ] } ``` Example response: ```json { "balanced": true, "totalDebit": 50000, "totalCredit": 50000, "difference": 0, "issues": [], "sources": [ { "source": "Caller-supplied ledgers, contracts, asset registers and rates processed locally", "url": "https://www.brainiac.software/api/v1/accounting-schedules", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Outputs are schedules and journal-entry proposals for an accountant's review. They are not audited figures, tax determi…" ] } ``` ### POST /api/v1/accounting-schedules/financial-statements-build $0.03 USDC. Roll a mapped trial balance into income-statement and balance-sheet lines, add net income to equity, and check A = L + E. Inputs: accounts Docs: https://www.brainiac.software/api/accounting-schedules/docs#accounting-schedules-financial-statements-build Example request: ```json { "accounts": [ { "code": "4000", "name": "Revenue", "type": "income", "debit": 0, "credit": 100, "statementLine": "Revenue" }, { "code": "5000", "name": "Expenses", "type": "expense", "debit": 80, "credit": 0, "statementLine": "Expenses" }, { "code": "1000", "name": "Cash", "type": "asset", "debit": 120, "credit": 0, "statementLine": "Current assets" }, { "code": "2000", "name": "AP", "type": "liability", "debit": 0, "credit": 100, "statementLine": "Current liabilities" } ] } ``` Example response: ```json { "incomeStatement": { "lines": [ { "line": "Revenue", "amount": 100 }, { "line": "Expenses", "amount": 80 } ], "netIncome": 20 }, "balanceSheet": { "assets": 120, "liabilities": 100, "equity": 20, "balances": true, "lines": [ { "line": "Current assets", "amount": 120 }, { "line": "Current liabilities", "amount": 100 }, "…" ] }, "sources": [ { "source": "Caller-supplied ledgers, contracts, asset registers and rates processed locally", "url": "https://www.brainiac.software/api/v1/accounting-schedules", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Outputs are schedules and journal-entry proposals for an accountant's review. They are not audited figures, tax determi…" ] } ``` ### POST /api/v1/accounting-schedules/cash-flow-forecast-13w $0.04 USDC. Bucket receivables, payables and recurring cash items into Monday-start weeks and report closing cash versus a minimum. Inputs: openingCash, weekStart, receivables?, payables?, recurring?, minimumCash? Docs: https://www.brainiac.software/api/accounting-schedules/docs#accounting-schedules-cash-flow-forecast-13w Example request: ```json { "openingCash": 500000, "weekStart": "2026-11-16", "receivables": [ { "due": "2026-11-20", "amount": 100000, "collectionDelayDays": 7 } ], "payables": [], "recurring": [ { "name": "payroll", "amount": -200000, "every": "2w", "start": "2026-11-27" } ], "minimumCash": 100000 } ``` Example response: ```json { "weeks": [ { "week": 1, "start": "2026-11-16", "inflows": 0, "outflows": 0, "closing": 500000, "belowMinimum": false }, { "week": 2, "start": "2026-11-23", "inflows": 100000, "outflows": 200000, "closing": 400000, "belowMinimum": false }, "…" ], "lowestWeek": 12, "sources": [ { "source": "Caller-supplied ledgers, contracts, asset registers and rates processed locally", "url": "https://www.brainiac.software/api/v1/accounting-schedules", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Outputs are schedules and journal-entry proposals for an accountant's review. They are not audited figures, tax determi…" ] } ``` ### POST /api/v1/accounting-schedules/fx-revaluation $0.03 USDC. Revalue foreign-currency monetary balances at closing rates and propose unrealised gain/loss journal entries. Inputs: functionalCurrency, balances, closingRates, rateQuote, accounts?, asOf? Docs: https://www.brainiac.software/api/accounting-schedules/docs#accounting-schedules-fx-revaluation Example request: ```json { "functionalCurrency": "GBP", "balances": [ { "account": "1200", "currency": "USD", "amount": 100000, "carryingRate": 1.25, "type": "asset" } ], "closingRates": { "USD": 1.3 }, "rateQuote": "functional_per_foreign" } ``` Example response: ```json { "lines": [ { "account": "1200", "currency": "USD", "carrying": 125000, "revalued": 130000, "gainLoss": 5000 } ], "totalGainLoss": 5000, "functionalCurrency": "GBP", "entries": [ { "date": "2026-11-14", "lines": [ { "account": "1200", "debit": 5000, "credit": 0 }, { "account": "7900", "debit": 0, "credit": 5000 } ] } ], "sources": [ { "source": "Caller-supplied ledgers, contracts, asset registers and rates processed locally", "url": "https://www.brainiac.software/api/v1/accounting-schedules", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Outputs are schedules and journal-entry proposals for an accountant's review. They are not audited figures, tax determi…" ] } ``` ### POST /api/v1/accounting-schedules/inventory-costing $0.03 USDC. Cost inventory issues under FIFO, perpetual weighted average or specific identification and report closing quantity and value. Inputs: method, movements Docs: https://www.brainiac.software/api/accounting-schedules/docs#accounting-schedules-inventory-costing Example request: ```json { "method": "FIFO", "movements": [ { "date": "2026-01-01", "type": "receipt", "qty": 100, "unitCost": 10 }, { "date": "2026-01-02", "type": "receipt", "qty": 50, "unitCost": 13 }, { "date": "2026-01-03", "type": "issue", "qty": 120 } ] } ``` Example response: ```json { "issues": [ { "date": "2026-01-03", "qty": 120, "cogs": 1260 } ], "closing": { "qty": 30, "value": 390, "unitCost": 13 }, "method": "FIFO", "sources": [ { "source": "Caller-supplied ledgers, contracts, asset registers and rates processed locally", "url": "https://www.brainiac.software/api/v1/accounting-schedules", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Outputs are schedules and journal-entry proposals for an accountant's review. They are not audited figures, tax determi…" ] } ``` ### POST /api/v1/accounting-schedules/accrual-prepaid-schedule $0.02 USDC. Spread a prepaid or accrual amount over months on a daily or equal-month basis with balancing journal entries. Inputs: amount, start, end, basis?, accounts Docs: https://www.brainiac.software/api/accounting-schedules/docs#accounting-schedules-accrual-prepaid-schedule Example request: ```json { "amount": 120000, "start": "2026-01-15", "end": "2027-01-14", "basis": "daily", "accounts": { "prepaid": "1400", "expense": "6200" } } ``` Example response: ```json { "periods": [ { "month": "2026-01", "amount": 5589 }, { "month": "2026-02", "amount": 9205 }, "…" ], "entries": [ { "date": "2026-01-28", "lines": [ { "account": "6200", "debit": 5589, "credit": 0 }, { "account": "1400", "debit": 0, "credit": 5589 } ] }, { "date": "2026-02-28", "lines": [ { "account": "6200", "debit": 9205, "credit": 0 }, { "account": "1400", "debit": 0, "credit": 9205 } ] }, "…" ], "sources": [ { "source": "Caller-supplied ledgers, contracts, asset registers and rates processed locally", "url": "https://www.brainiac.software/api/v1/accounting-schedules", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Outputs are schedules and journal-entry proposals for an accountant's review. They are not audited figures, tax determi…" ] } ``` ### POST /api/v1/accounting-schedules/intercompany-eliminate $0.03 USDC. Pair entity/counterparty intercompany balances, flag differences above tolerance, and propose elimination entries for matched amounts. Inputs: balances, tolerance? Docs: https://www.brainiac.software/api/accounting-schedules/docs#accounting-schedules-intercompany-eliminate Example request: ```json { "balances": [ { "entity": "UK", "counterparty": "US", "account": "IC receivable", "amount": 100000, "currency": "GBP" }, { "entity": "US", "counterparty": "UK", "account": "IC payable", "amount": -98000, "currency": "GBP" } ], "tolerance": 1000 } ``` Example response: ```json { "pairs": [ { "entities": [ "UK", "US" ], "difference": 2000, "withinTolerance": false } ], "eliminations": [], "sources": [ { "source": "Caller-supplied ledgers, contracts, asset registers and rates processed locally", "url": "https://www.brainiac.software/api/v1/accounting-schedules", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Outputs are schedules and journal-entry proposals for an accountant's review. They are not audited figures, tax determi…" ] } ``` ### POST /api/v1/accounting-schedules/journal-anomaly-detect $0.04 USDC. Flag round amounts, weekend/after-hours postings, amount z-scores, duplicates and Benford first-digit chi-square on journal lines. Inputs: entries, rules? Docs: https://www.brainiac.software/api/accounting-schedules/docs#accounting-schedules-journal-anomaly-detect Example request: ```json { "entries": [ { "id": "j1", "date": "2026-11-14", "postedAt": "2026-11-15T23:30:00.000Z", "user": "a", "account": "6000", "amount": 1000000, "description": "adj" } ], "rules": { "roundAmountMultiple": 100000, "weekendPosting": true, "afterHours": [ "20:00", "06:00" ], "zScore": 3 } } ``` Example response: ```json { "flags": [ { "id": "j1", "rules": [ "round_amount", "weekend_posting", "…" ] } ], "benford": { "chiSquare": 2.321928, "df": 8, "pValue": 0.969518 }, "sources": [ { "source": "Caller-supplied ledgers, contracts, asset registers and rates processed locally", "url": "https://www.brainiac.software/api/v1/accounting-schedules", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Outputs are schedules and journal-entry proposals for an accountant's review. They are not audited figures, tax determi…" ] } ``` ### POST /api/v1/accounting-schedules/form-1099-threshold-check $0.02 USDC. Sum payee payments by category for tax year 2026 and flag 1099-NEC / 1099-MISC boxes that meet IRS thresholds. Inputs: taxYear, payments Docs: https://www.brainiac.software/api/accounting-schedules/docs#accounting-schedules-form-1099-threshold-check Example request: ```json { "taxYear": 2026, "payments": [ { "payeeId": "v1", "payeeType": "individual", "category": "services", "amount": 250000, "paidByCardOrThirdParty": false } ] } ``` Example response: ```json { "payees": [ { "payeeId": "v1", "form": "1099-NEC", "box": "1a", "total": 250000, "threshold": 200000, "required": true } ], "sources": [ { "source": "IRS Instructions for Forms 1099-MISC and 1099-NEC; P.L. 119-21 $2,000 general threshold for tax years beginning after 2…", "url": "https://www.irs.gov/instructions/i1099mec", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Outputs are schedules and journal-entry proposals for an accountant's review. They are not audited figures, tax determi…", "Thresholds apply for tax year 2026 only ($2,000 general; royalties $10; attorney gross proceeds $600). Card/third-party…", "…" ] } ```