Ledger
Contracts
ASC 606 revenue contracts
Authentication
Authenticate with Authorization: Bearer ak_... — see API keys. Requests are scoped to one entity. Pass entityId as a query parameter, JSON field, or x-entity-id header. API keys are already pinned to an entity. A mismatched entityId returns 403.
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /api/ledger/contracts?entityId= | List contracts |
| POST | /api/ledger/contracts | Create contract |
| PUT | /api/ledger/contracts | Update contract |
List contracts
GET /api/ledger/contracts?entityId={entityId}
Returns ASC 606 revenue contracts for the entity.
Create contract
POST /api/ledger/contracts
Body: { "entityId", "customerId", "contractType", "performanceObligations", "transactionPrice", ... }
Update contract
PUT /api/ledger/contracts
Body: { "entityId", "contractId", ...fields }