Context
Enterprise users need to export their subscription data into external systems (ERP, CRM, accounting platforms) with reliable incremental sync rather than full daily dumps. The current export service (backend/services/exportService.ts) only supports full snapshot exports, which become prohibitively expensive at scale and create data freshness gaps.
\
\
Current Limitation
\
- Full exports only; no incremental change tracking
\
- No export watermark/checkpoint mechanism
\
- Missing conflict resolution when external systems modify synced records
\
- No retry logic for partial export failures
\
- Export format is fixed; no pluggable format adapters
\
\
Expected Outcome
An incremental export pipeline with change data capture (CDC), configurable export formats (CSV, JSON, Parquet), watermark-based checkpointing, retry with idempotency guarantees, and bidirectional conflict resolution for supported integrations.
\
\
Acceptance Criteria
\
\
Technical Scope
\
- Files:
backend/services/exportService.ts, backend/services/subscription/subscriptionEventStore.ts, backend/services/billing/accountingExport/, backend/services/shared/apiResponse.ts
\
- APIs: Export format adapters, watermark store (PostgreSQL/Redis), CDC log
\
- Edge cases: Schema changes mid-stream, deleted records in incremental sync, timezone handling across export windows, large batch exports (>1M records), concurrent export runs
Context
Enterprise users need to export their subscription data into external systems (ERP, CRM, accounting platforms) with reliable incremental sync rather than full daily dumps. The current export service (
backend/services/exportService.ts) only supports full snapshot exports, which become prohibitively expensive at scale and create data freshness gaps.\
\
Current Limitation
\
\
\
\
\
\
\
Expected Outcome
An incremental export pipeline with change data capture (CDC), configurable export formats (CSV, JSON, Parquet), watermark-based checkpointing, retry with idempotency guarantees, and bidirectional conflict resolution for supported integrations.
\
\
Acceptance Criteria
\
\
\
\
\
\
\
\
\
\
Technical Scope
\
backend/services/exportService.ts,backend/services/subscription/subscriptionEventStore.ts,backend/services/billing/accountingExport/,backend/services/shared/apiResponse.ts\
\