Self-serve source imports

Import subscription history into SubHero from a provider export, an API connection or read-only S3/GCS access, then inspect its coverage.

Open Project → Migrate history. Select a provider, read its coverage limits, then upload CSV/JSONL (optionally gzip), validate an API connection, or validate read-only S3/GCS access to the historical export prefix. Secrets are AES-256-GCM encrypted with the service encryption key, just like store credentials. A saved connection is frozen as encrypted ciphertext on each pull attempt; later edits cannot change that attempt's source.

Imports stage mappings and call the same canonical history verification pipeline. Apple history and current Google state come from the project's store credentials. Accepted historical Google charges preserve source labels and exact decimal strings. Explicit per-charge base plans/durations are preserved; expiry gaps are never periods. Google exports without purchase tokens need an enriched token mapping or canonical file; a missing token is a visible reject. Refund/non-charge rows that cannot be represented by the canonical historical format are rejected rather than invented as renewals. Apple financial fields are ignored because store history supplies them.

Bounds and failure behavior

The hosted reader accepts 20 MiB per compressed and decompressed file, 30 MiB per upload request, 100 MiB per bucket batch, 1,000 files, and a 100,000-record memory cap. API pulls are limited to 25 minutes and pace requests at least 250 ms apart: per-customer RevenueCat/Qonversion crawls support fewer than roughly 5,900 customers before network or store lookup latency. Use a bucket or file export for larger accounts. Split larger exports into batches/prefixes. Large Apphud/RevenueCat exports should be split upstream; Parquet is not accepted—select CSV at the source. Large file conversion is isolated from console request processing. Private bucket credentials use the official AWS/GCS SDKs; endpoints are fixed, there is no arbitrary URL fetch. S3 ETags/GCS generations pin each downloaded object, not the entire multi-object snapshot.

Live validation reads the source or lists and reads an export object before saving credentials. Run-time validation repeats the check. Source errors are sanitized; rejects contain file number, row number and reason without keys or raw source values. Admins can write connections and start jobs, members can inspect progress/rejects, other tenants receive 404. Mutations require the console Origin.

An API attempt starts from page one and fetches each page once. Current providers do not offer a verified inexpensive ID-only listing, so the console does not claim a verified ID snapshot. Large accounts should use bucket or file exports. Temporary pages and frozen attempt credentials are removed after staging or failure. Abandoned 30-minute pulls are checked every ten minutes.

A failed source read requires a fresh pull. Once data is staged, use Retry store verification if queue delivery failed; uploading the same file again is unnecessary. Persistently failing mappings and Apple verification warnings become visible quarantined rows while other mappings advance. After correcting the cause, Retry quarantined rows resets their retry budget explicitly. Quarantine keeps the run incomplete and blocks cutover.

API counts represent unique provider record IDs. File and bucket counts represent accepted store mappings after deduplication, with rejects reported separately. Superwall requires explicit UTC or offset timestamps and rejects unsupported pagination. Adapty Google rows need an explicit supported charge event type; refunded and family-shared rows require canonical correction.

Coverage and completion

The console shows source staging separately from store verification. Inspect rejected rows, imported identifiers and live notification capture. A nonzero reject count means incomplete history even if the accepted mappings finish.

No researched source currently has a verified machine-readable authoritative snapshot field implemented by these adapters. Therefore the export boundary remains unknown and coverage is unverified. RevenueCat documents generation-start semantics, but neither an authenticated response field nor a documented naming/manifest contract supplying that instant was verified. A future documented source field can establish it; client timestamps, file names guessed from timestamps, object LastModified, SDK timestamps and local request clocks cannot. Identical API passes prove only ID-set stability. Lookup-only and bounded-window sources additionally set enumeration_complete=false.

Optional comparison

The console displays the latest 100 stored comparison observations for a project with configured Apphud metric mappings. These remain available for projects with configured chart mappings. Other sources' metric APIs have incompatible/insufficiently verified tax, commission, grace and period definitions; this release does not invent equivalent series. The console points to imported analytics and displays these comparison requirements. Provider exports' gross, net and proceeds columns are not interchangeable. Real-account comparison and SDK release are owner actions; imports never change notification routes or cut over mobile access.

API row rejects include a stable source_reference, SHA-256 of the attempt UUID, a NUL separator, and the adapter record key (for example rc:<subscription-id>). It lets an operator match a record locally without exposing the provider ID in the download. Sandbox Apple records are excluded before store lookup; an individual unresolved production chain is rejected without aborting other records.