E-commerce pack

Subscriptions CSV import API

Migrate subscription data from any CSV: customer, plan, price, billing interval, status, renewal and cancellation dates. Multilingual headers.

30-second curl
curl -X POST https://api.adaptivmapr.com/v1/uploads \
  -H "Authorization: Bearer $ADAPTIVMAPR_API_KEY" \
  -F "template=subscriptions_v1" \
  -F "file=@your_data.csv"
→ 10 canonical fields · 0 validated · low risk

Canonical columns

The whole schema, printed as it ships.

Every canonical column, the type each row carries, whether it is required, the field-level validators that fire on commit, and the multilingual header hints the cascade resolves against. This is the shipped definition, not a summary of it.

subscriptions_v1
fields
10
required
3
validated
0
hints
63
Canonical columnTypeRequiredValidatorsHeader hints the cascade matches
idstringyes—abo-nummerabonnement-idid abonnementid abbonamentosubscription idid de suscripción
customer_idstringyes—kundekundennummerclientclientecustomer
planstringyes—tarifaboformulepianoplanproducto
pricenumber——preisprixprezzopriceprecioamount
currencystring——währungdevisevalutacurrencymoneda
intervalenummonthquarteryear——intervallabrechnungsintervallpériodicitéperiodicitàbilling intervalintervalo
statusenumtrialingactivepast_duecancelled——statusstatutstatoestado
started_atdate——startdatumbeginndate de débutdata iniziostart datefecha de iniciocreated (utc)created
renews_atdate——verlängerungnächste abrechnungrenouvellementrinnovorenewalrenovacióncurrent period end (utc)current period end
cancelled_atdate——gekündigt amkündigungrésilié ledisdetto ilcancelledcancelado elcanceled at (utc)canceled atcanceled

Read the same definition as JSON at GET /v1/templates/subscriptions_v1. A hint match resolves on layer 2 — no LLM call, no token spend, just the flat per-map fee. Hover a validator id to see what it checks.

  • 10 canonical fields
  • 3 required
  • 0 validated
  • 63 header hints, 5 languages

Why it exists

Written for the file you actually receive.

The Subscriptions template is one recurring agreement per row: its id, the customer_id and the plan (all three required), a price and currency, the billing interval (month, quarter or year), a status (trialing, active, past_due, cancelled), and three dates: when it started, when it next renews, and when it was cancelled. It is what a billing platform's subscription export, a subscription app's customer list or a hand-kept membership spreadsheet reduces to. Finance and growth teams use it to move subscribers between billing systems without resetting anyone's renewal date, to compute recurring revenue and churn from a single table, and to check the billing system against the CRM. It is `low` risk, commercial terms rather than payment details, so a confirmed mapping commits straight through. There is no field for card or bank data, and that data should not be in the file at all.

id, customer_id and plan are required. price is the amount per interval, so a yearly plan carries its yearly price and monthly recurring revenue is calculated downstream. interval accepts month, quarter and year; weekly or daily billing does not fit and is reported, not rounded. status accepts the American spelling "canceled" as cancelled. renews_at and cancelled_at are optional dates, auto-detected across formats: an active subscription has the first, a cancelled one usually the second. The template does not check that a cancelled row carries a cancellation date; that is a business rule for your own pipeline.

Migration scenarios & the foreign headers they ship

Common moves: migrating subscribers from Stripe Billing to Chargebee or Paddle, or back, so renewal dates and trial ends carry over; exporting a Shopify subscription app's list (Recharge, Shopify Subscriptions) into a warehouse for churn reporting; consolidating memberships kept in two systems after a merger; and auditing the billing system against signed contracts. Headers we see: "Abo-Nummer / Subscription ID / id / Kundennummer / Customer ID / Tarif / Formule / Plan / Preis / Prix / Price / Währung / Currency / Intervall / Interval / Status / Startdatum / Start Date / Verlängerung / Renouvellement / Gekündigt am / Résilié le". Stripe's dashboard export typically names its dates "Created (UTC)", "Current Period End (UTC)" and "Canceled At (UTC)" and its price "Amount"; all four are registered hints, so a Stripe export lands on started_at, renews_at, cancelled_at and price without a model call.

The cascade

Six layers, and the cheapest one wins.

Layers run in order and stop the moment a column resolves. That is the single biggest cost lever in the system: a column caught on layer 2 never reaches the metered layer 5.

  1. L1Statisticsno LLM

    Auto-accepts a header that past confirmations already resolved the same way, at {minN:100, minRatio:0.95} or {minN:20, minRatio:1.00}.

  2. L2Heuristicno LLM

    Normalises accents, punctuation and whitespace, then compares against the column name, the label, and every registered hint (DE / FR / IT / EN / ES).

  3. L3Fuzzyno LLM

    Token-set ratio plus Levenshtein over the normalised strings. Auto-accepts at 0.80 — it absorbs typos and reordered words.

  4. L4Semanticcheap, cached

    Embedding cosine between the header and the field’s label + hints. Catches the long tail of paraphrases.

  5. L5LLMmetered

    Everything still unresolved goes up in ONE batched, collision-aware call, constrained to this template’s column set so it cannot invent a field.

Try it

One template id, two ways in.

REST for your import pipeline, MCP for your editor. Both run the same cascade and both honour the same schema-only clamp.

REST · POST /v1/uploads

Name the template; the cascade picks up the rest. The canonical definition is read-only at GET /v1/templates/subscriptions_v1.

bash
curl -X POST https://api.adaptivmapr.com/v1/uploads \
  -H "Authorization: Bearer $ADAPTIVMAPR_API_KEY" \
  -F "template=subscriptions_v1" \
  -F "file=@your_data.csv"
→ upload created · mappings ready · confirm before commit

MCP · Cursor / Claude Desktop

Drop AdaptivMapr into your editor and call the same cascade as a tool. Schema-only calls leave only column names and a few example values.

mcp
// In Cursor or Claude Desktop with the AdaptivMapr MCP server installed:
adaptivmapr.match_headers({
  template_id: "subscriptions_v1",
  headers: ["id", "customer_id", "plan", "price"]
})
schema-only · column names and a few examples only
MCP install instructions

Questions

Subscriptions CSV import — FAQ

Will Stripe statuses validate?
trialing, active and past_due are members as they stand, and "canceled" is accepted as cancelled. Stripe's incomplete, unpaid and paused are not members and are reported as row errors; decide how your business counts them and rename before import.
Can we import card details with the subscription?
No. There is no field for them. Payment methods move between processors through the processors' own migration process, never through a CSV.
How do we handle usage-based plans with no fixed price?
Leave price blank. It is optional, and a metered plan has no single amount per interval to record.
We bill weekly. Does the template fit?
Not as it stands: interval holds month, quarter and year. Define a custom schema in your workspace with a week value if weekly billing is a real part of your book.

Map subscriptions in production — without shipping raw records.

Minimal data mode sends only column names and a few example values — never the full file. Add full-data when you need row-level AI, routed in-region under a BAA.