Revenue & Contracts
Accruals
Accrual schedules
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/accruals?entityId= | List accrual schedules |
| POST | /api/accruals | Create accrual schedule |
| PUT | /api/accruals | Update accrual |
List accrual schedules
GET /api/accruals?entityId={entityId}
Returns accrual schedules for the entity. Supports status, accountId, and other filters.
Create accrual schedule
POST /api/accruals
Body: { "entityId", "accountId", "amount", "startDate", "endDate", "frequency", ... }
Update accrual
PUT /api/accruals
Body: { "entityId", "accrualId", ...fields }