Revenue & Contracts
Contracts
ASC 606 revenue contracts
Authentication
Authenticate with Authorization: Bearer ak_... — see API keys. Entity-scoped routes use entityId in the query or body; a mismatched entityId returns 403.
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /api/contracts?entityId= | List contracts |
| POST | /api/contracts | Create contract |
| PUT | /api/contracts | Update contract |
List contracts
GET /api/contracts?entityId={entityId}
Returns ASC 606 revenue contracts for the entity.
Create contract
POST /api/contracts
Body: { "entityId", "customerId", "contractType", "performanceObligations", "transactionPrice", ... }
Update contract
PUT /api/contracts
Body: { "entityId", "contractId", ...fields }