1065 & K-1 Generator • GNV Ledger & API
Quickstarts, technology, API endpoints, and support.
Scope (Read this first)
- Federal partnership returns only: Form 1065 + Schedule K-1s.
- Simple partnerships only: no tiered structures / complex waterfalls yet.
- State filings: handled separately and scoped after review.
- Complex deals: reviewed separately (may be quoted or declined).
Generate federal partnership tax returns using structured templates. Designed for simple SPVs and funds. Complex cases reviewed separately.
1065 & K-1 Generator — Quickstart
This section covers producing Form 1065 and partner K-1s using the Gainvest generator.
1) Prepare your inputs
- P&L — normalized accounts with mapping codes (e.g.,
1a,2,9, etc.). - Balance — beginning/end amounts grouped by
asset,liability,equity. - Partners — one row per partner with identity, ownership %, capital, liabilities, and allocation overrides.
Tip: On Gold tier, we preprocess all three files for you.
2) Upload & validate
- From your Dashboard, upload P&L, Balance, and Partners under your entity/year.
- Set Line G/H flags (initial/final/amended; cash/accrual) in Return Options.
- Confirm the partner count matches (we show it on 1065 line “Number of Schedules K-1”).
3) Generate PDFs
- Click Generate 1065 to produce the return PDF.
- Click Generate K-1s to produce one K-1 per partner.
4) Review & file
- Verify allocations, capital analysis (begin → contributions → income/loss → withdrawals → end), and liabilities sections.
- On Silver/Gold, Gainvest files the 1065 and K-1s for you.
Partners sheet — required columns
partner_name, address_line1, address_line2, city, state, postal_code, country, tax_id, entity_type (I/C/P/T/E), is_foreign_partner, is_disregarded_entity, de_tin, de_name, profit_pct_begin, profit_pct_end, loss_pct_begin, loss_pct_end, capital_pct_begin, capital_pct_end, capital_begin, capital_contributions, capital_other_increase_decrease, capital_withdrawals, capital_end, liab_nonrecourse_begin, liab_nonrecourse_end, liab_qnrf_begin, liab_qnrf_end, liab_recourse_begin, liab_recourse_end, liab_subject_to_guarantee, alloc_ordinary_business_income, alloc_interest_income, alloc_ordinary_dividends, alloc_qualified_dividends, alloc_royalties, alloc_stcg, alloc_ltcg, alloc_collectibles_28, alloc_unrecaptured_1250, alloc_1231, alloc_other_income_desc, alloc_other_income_amt, alloc_section_179, alloc_other_deductions_desc, alloc_other_deductions_amt, is_ptp, is_passive, is_retirement_plan, max_pct_owned_profit, max_pct_owned_loss, max_pct_owned_capital, citizenship_country, b2_eligible_partner_code, s_corp_shareholder_count
Notes: Percent fields accept 50, 50%, or 0.5. Monetary fields take numbers. Booleans accept true/false, yes/no, or X.
Technology
High-level components used by the Gainvest app and generator.
- Frontend: Django templates (HTML/CSS/JS). Chat preview on the homepage, authenticated chat after login.
- Auth & Data: Firebase Auth (web + mobile), Firestore (partners, books, return options, file refs).
- PDF Engine: Python (pypdf) overlay on IRS fillable PDFs (Form 1065 + Schedule K-1), coordinate maps with right/left alignment helpers.
- Storage/Links: GCS object storage with signed URLs for generated PDFs.
- Payments: Stripe Checkout for annual entity subscriptions (Bronze/Silver/Gold).
- Ops: Cloud Run or VM for API, REST endpoints for generation, logging, and webhooks.
Reliability & gotchas
- Unique filenames: K-1s use
{slug}-{index}-{timestamp}.pdfto avoid overwrite/caching issues. - Signed URL expiry: Generated links expire. Re-download from the dashboard if needed.
- Booleans: Line G/H and Schedule B flags must be explicit (we write “X” or blank to the PDF layer).
GNV Ledger & API
The GNV ledger records activity and provides a simple API for balance, blocks, and mining.
Endpoints
POST /mine— Submit prompt + wallet to mint GNV.POST /transfer— Transfer GNV between wallets.GET /balance/<wallet>— Wallet balance.GET /supply— Total circulating supply.GET /blocks— Block history.POST /dao/register_model— Register mining-eligible models.POST /dao/vote— Submit a DAO vote.
Example
curl -X POST https://mainnet.gainvest.ai/mine \
-H "Content-Type: application/json" \
-d '{"wallet":"gnv1xyz...","prompt":"Hello Gainvest!"}'
Tools: Public Ledger • GitHub • About
Support
Questions on generator inputs, PDFs, or billing? Email support@gainvest.ai.
For integration help (APIs/models), contact support@gainvest.ai.