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.
curl -X POST https://api.adaptivmapr.com/v1/uploads \
-H "Authorization: Bearer $ADAPTIVMAPR_API_KEY" \
-F "template=subscriptions_v1" \
-F "file=@your_data.csv"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 column | Type | Required | Validators | Header hints the cascade matches |
|---|---|---|---|---|
id | string | yes | — | abo-nummerabonnement-idid abonnementid abbonamentosubscription idid de suscripción |
customer_id | string | yes | — | kundekundennummerclientclientecustomer |
plan | string | yes | — | tarifaboformulepianoplanproducto |
price | number | — | — | preisprixprezzopriceprecioamount |
currency | string | — | — | währungdevisevalutacurrencymoneda |
interval | enummonthquarteryear | — | — | intervallabrechnungsintervallpériodicitéperiodicitàbilling intervalintervalo |
status | enumtrialingactivepast_duecancelled | — | — | statusstatutstatoestado |
started_at | date | — | — | startdatumbeginndate de débutdata iniziostart datefecha de iniciocreated (utc)created |
renews_at | date | — | — | verlängerungnächste abrechnungrenouvellementrinnovorenewalrenovacióncurrent period end (utc)current period end |
cancelled_at | date | — | — | 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.
- 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}.
- L2Heuristicno LLM
Normalises accents, punctuation and whitespace, then compares against the column name, the label, and every registered hint (DE / FR / IT / EN / ES).
- L3Fuzzyno LLM
Token-set ratio plus Levenshtein over the normalised strings. Auto-accepts at 0.80 — it absorbs typos and reordered words.
- L4Semanticcheap, cached
Embedding cosine between the header and the field’s label + hints. Catches the long tail of paraphrases.
- 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.
curl -X POST https://api.adaptivmapr.com/v1/uploads \
-H "Authorization: Bearer $ADAPTIVMAPR_API_KEY" \
-F "template=subscriptions_v1" \
-F "file=@your_data.csv"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.
// In Cursor or Claude Desktop with the AdaptivMapr MCP server installed:
adaptivmapr.match_headers({
template_id: "subscriptions_v1",
headers: ["id", "customer_id", "plan", "price"]
})Questions








