Finault Documentation
Turn AI invoices into audit-ready journal entries. This documentation covers everything from basic invoice analysis to real-time gateway integration.
New to Finault? Start with the Quickstart guide to upload your first invoice in 60 seconds.
Quickstart
1. Upload an Invoice
Go to app.html and drag your AI provider CSV (OpenAI, Anthropic, Azure, or Google) into the upload zone. Or click "Try with Sample Data" to see how it works.
2. Review Allocation
Finault automatically detects your provider, extracts costs, and allocates to cost centers based on project metadata. Review the allocation breakdown and confidence scores.
3. Download Close Pack
Click "Download Complete Close Pack" to get a ZIP containing:
- Executive Summary — CFO-ready overview PDF
- GL Journal Entry — NetSuite/QuickBooks-ready CSV
- Reconciliation Certificate — Audit-ready proof with SHA-256 hash
- Controls Narrative — SOX-compliant documentation
Core Concepts
Cost Centers
Cost centers are organizational units (teams, projects, departments) that consume AI resources. Finault maps invoice line items to cost centers using project metadata and custom rules.
Allocation Rules
Rules define how costs are assigned to GL codes and cost centers. Pattern matching (e.g., proj-platform-* → ENG-001) allows flexible, automated allocation.
Confidence Scores
Each allocation has a confidence score (0-100%) based on the clarity of the metadata match. High confidence (90%+) means strong mapping; lower scores may need manual review.
Data Integrity
Every Close Pack includes a SHA-256 hash of the source data, ensuring the output can be verified against the original invoice. This is critical for audit compliance.
Invoice Analyzer
The Invoice Analyzer accepts CSV exports from major AI providers and automatically detects the format.
Supported Providers
| Provider | Export Source | Key Fields |
|---|---|---|
| OpenAI | Usage page CSV | cost_in_usd, project_name, model |
| Anthropic | Billing CSV | amount, workspace, model |
| Azure OpenAI | Cost Management export | Cost, ResourceGroup, ServiceName |
| Google Cloud | Billing export | cost, project.id, service.description |
Close Pack
The Close Pack is a finance-ready deliverable containing everything needed to close the books on AI spend.
Components
| Document | Format | Purpose |
|---|---|---|
| Executive Summary | High-level spend overview for CFO/leadership | |
| GL Journal Entry | CSV | Import-ready journal entries for ERP systems |
| Reconciliation Certificate | Audit trail with data integrity hash | |
| Controls Narrative | SOX 404 compliant control documentation |
Unit Economics PRO
Understand the true cost of AI in your business with unit economics calculations.
Metrics
- Cost per Transaction — Total spend ÷ API calls
- Cost per User — Total spend ÷ Active users
- AI % of Revenue — Total spend ÷ AI-attributed revenue × 100
- Revenue per $1 Spent — AI-attributed revenue ÷ Total spend
Benchmark: AI costs above 30% of AI-attributed revenue may squeeze margins at scale.
Gateway Setup BUSINESS
Route all AI API calls through Finault Gateway for real-time cost attribution, budget enforcement, and compliance logging.
Quick Integration
Change one environment variable to start routing through Finault:
# For OpenAI
export OPENAI_BASE_URL="https://gateway.finault.ai/v1"
export FINAULT_API_KEY="fin_live_xxxxxxxxxxxx"
# For Anthropic
export ANTHROPIC_BASE_URL="https://gateway.finault.ai/anthropic"
export FINAULT_API_KEY="fin_live_xxxxxxxxxxxx"
Headers
Add cost attribution headers to your requests:
| Header | Required | Description |
|---|---|---|
X-Finault-Key | Yes | Your Finault API key |
X-Cost-Center | No | Cost center code (e.g., ENG-001) |
X-Project | No | Project identifier |
X-Budget-Id | No | Budget to charge against |
Gateway Endpoints
Proxy to OpenAI Chat Completions with automatic cost tracking.
Real-time usage and cost metrics by cost center, project, or time period.
Check if a request would exceed budget before making the call.
Budget Enforcement BUSINESS
Set hard or soft limits on AI spend by team, project, or time period.
Budget Types
- Hard Limit — Requests that would exceed budget return HTTP 402 (Payment Required)
- Soft Limit — Alerts triggered at threshold (e.g., 80%) but requests continue
# Create a budget
curl -X POST https://gateway.finault.ai/v1/budgets \
-H "Authorization: Bearer fin_live_xxx" \
-d '{
"name": "Platform Team Monthly",
"cost_center": "ENG-001",
"limit": 50000,
"period": "monthly",
"type": "hard",
"alert_threshold": 0.8
}'
API Authentication
All API requests require a Finault API key in the Authorization header.
Authorization: Bearer fin_live_xxxxxxxxxxxx
API Key Types
| Prefix | Environment | Use For |
|---|---|---|
fin_live_ | Production | Live API calls, real billing |
fin_test_ | Test | Development, no billing |
API: Analyze BUSINESS
Upload and analyze an invoice CSV. Returns parsed costs and detected provider.
curl -X POST https://gateway.finault.ai/v1/analyze \
-H "Authorization: Bearer fin_live_xxx" \
-F "file=@invoice.csv"
API: Allocate BUSINESS
Run cost allocation on analyzed invoice data.
API: Close Pack BUSINESS
Generate a complete Close Pack ZIP from allocated data.
API: Verify
Verify a data integrity hash from a Close Pack.
curl "https://gateway.finault.ai/v1/attest/verify?hash=sha256:7f83b1657..."
Data Security
Encryption
- In Transit — TLS 1.3 for all connections
- At Rest — AES-256 encryption for stored data
Data Retention
| Tier | Retention |
|---|---|
| Free | No data stored (download only) |
| Pro | 90 days |
| Business | 2 years |
| Enterprise | Custom (up to 7 years) |
Compliance
Standards
- SOX 404 — Controls Narrative document provides required documentation
- GAAP/IFRS — Journal entries follow standard accounting practices
- EU AI Act — Audit logging supports Article 12 requirements (Enterprise)
- SOC 2 Type II — In progress (Q2 2026)
Questions? Email support@finault.ai or join our Slack community.