TripleBooks
Ledger

Leases

ASC 842 lease accounting

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

MethodPathDescription
GET/api/ledger/leases?entityId=List leases (ASC 842)
POST/api/ledger/leasesCreate lease
PUT/api/ledger/leasesUpdate lease
DELETE/api/ledger/leasesDelete lease

List leases

GET /api/ledger/leases?entityId={entityId}

Returns an array of leases for the entity.

[
  {
    "id": "lease_abc123",
    "lessor": "Vendor Inc",
    "assetDescription": "Office space",
    "termMonths": 60,
    "classification": "operating"
  }
]

Create lease

POST /api/ledger/leases

Body: { "entityId", "lessor", "assetDescription", "termMonths", "monthlyPayment", "classification": "operating" | "finance", ... }

Update / Delete

PUT /api/ledger/leases — body: { "entityId", "leaseId", ...fields }

DELETE /api/ledger/leases — body: { "entityId", "leaseId" }

On this page