API Versioning And Changelog

Compatibility policy for LedgerLine developer infrastructure.

LedgerLine uses the current public /api/v1 surface, a manual OpenAPI source, local SDK helpers, and a public event schema registry. This page explains how API changes, webhook schema updates, SDK changes, deprecations, and breaking changes should be communicated before external developers rely on them.

Current public API version: /api/v1.
Manual OpenAPI source: docs/openapi/ledgerline.v1.yaml.
Public OpenAPI route: /developers/openapi.yaml.
No /api/v2 route exists today.
No published npm SDK package exists today; SDK helpers are local repo helpers.
LedgerLine is setup/testing-ready from the code side, not production-approved.

Backward-Compatible

Changes clients should tolerate.

  • Adding optional response fields.
  • Adding new endpoints or route examples.
  • Adding new event types while receivers tolerate unknown types.
  • Adding new enum values where clients are expected to ignore unknown values.
  • Adding optional request fields.
  • Adding SDK helpers or OpenAPI examples.

Breaking

Changes that need explicit notice.

  • Removing or renaming fields.
  • Changing required request fields.
  • Changing auth, scoping, idempotency, or error-code semantics.
  • Changing accounting side effects, posting, reversal, or report calculations.
  • Removing endpoints or changing webhook payloads incompatibly.
  • Turning on broad enforcement behavior that blocks existing integrations.

Changelog Entry Shape

Every meaningful developer-surface change should be classifiable.

Categories

AddedChangedDeprecatedRemovedFixedSecurityDocsBreaking
date
version, tag, or commit
affected surface
migration note
operator action
breaking change flag

Recent Milestones

High-level changelog for the current foundation.

v1.0-ledgerline-production-readiness-foundation

Production readiness foundation

Runtime, health, security docs, beta setup

Captured code-side readiness gates and operator setup boundaries without production approval.

v1.1-ledgerline-platform-admin-foundation

Platform admin foundation

Platform Admin, audit, support visibility

Added allowlisted aggregate platform visibility while keeping tenant mutation and impersonation deferred.

v1.2-ledgerline-public-launch-surface

Public launch surface

Marketing, developer docs, OpenAPI, API Reference

Locked the public launch surface for setup/testing, including docs, product pages, security, and recipes.

May 2026 productization lane

Public marketing and developer docs

Public pages, feature pages, pricing strategy

Added product, use case, accounting API, feature, and early-access pricing pages with clear deferred-provider boundaries.

Default-off module guard lane

Module enforcement foundation

Module warnings, guard, error contract, route wiring, QA

Added soft warnings and default-off route guard wiring. Normal/default API behavior remains non-breaking.

376c092

Webhook event schema registry

Events, webhooks, SDK docs, developer docs

Added active/accepted/planned/deferred event registry and public /developers/webhooks page without changing webhook runtime behavior.

Deprecation Policy

Deprecate before removing.

Deprecated behavior should be marked in docs first, include a replacement path, be reflected in OpenAPI and SDK docs, and keep behavior stable during a notice window where feasible. While LedgerLine is pre-production, these windows are guidance rather than a contractual SLA.

OpenAPI, SDK, Webhooks

Compatibility spans more than HTTP routes.

OpenAPI changes should pass npm run validate:openapiand be recorded in the changelog. Future published SDK packages should use semantic versioning. Webhook receivers should be idempotent and tolerate new event types or optional fields.

Product Truth

Versioning does not change runtime behavior.

  • This page is static documentation only.
  • No /api/v2 exists today.
  • OpenAPI remains manual; the JSON route and generated OpenAPI remain future work.
  • The published npm SDK remains future work.
  • Module enforcement is default-off and broad rollout would need changelog notice.
  • Production approval still requires operator setup, migrations, buckets, RLS/Storage dry-run, smoke/security QA, and rollout planning.

Related Docs

Developer Docs

Keep the developer surface consistent

Use the changelog policy alongside the integration guide, webhook registry, OpenAPI YAML, SDK notes, and security boundaries.