Changelog and version policy
What changed in the SDK, and how the API is versioned.
API version
The API has one version at a time, named by date. The current version is 2026-07-01. Every response carries it as api_version.
The version changes only when the contract changes in a way that could break existing code.
SDK 0.4.0, not yet released
No breaking changes. Code written for 0.3.0 compiles and runs unchanged, and 0.3.0 keeps verifying every delivery the server sends.
- The verified event returns the new body fields when the server sends them:
created(when the event happened, the same on every retry and replay),api_version,mode('test'or'live') andtest: trueon a test event. All four are optional onMintEvent. - Secret rotation overlap: for 24 hours after a rotation,
x-mint-signaturecarries twov1values, the new secret's first. Verification accepts either. 0.3.0 already accepted severalv1values; this release tests it against the server's signer. - Typed webhook event
api_key.expiring, withApiKeyExpiringEventandApiKeyExpiringData. It is inMINT_EVENT_TYPES.
SDK 0.3.0, 16 November 2026
No breaking changes. Code written for 0.2.0 compiles and runs unchanged.
- Price changes:
catalog.previewPriceChange,schedulePriceChange,listPriceChanges,getPriceChangeandcancelPriceChange. A change must be at least 30 days away; each subscriber moves at their first renewal on or after it. - Typed webhook events:
subscription.renewal_upcoming,subscription.price_change_scheduled,subscription.price_change_applied,subscription.price_change_canceledandsubscription.updated. Everysubscription.*event'sdata.subscriptionis aSubscriptionSnapshot. MINT_EVENT_TYPES: the list of every event the server delivers, at runtime.MintApiError.details: the server'serror.detailswhen present.checkout.create({ lockItems: true })fixes the plan, seats and interval on the checkout page.catalog.updateProductandcatalog.getProduct, including the two portal settings.
SDK 0.2.0, 25 October 2026
Breaking. checkout.create items are now { planId | planCode, quantity?, meter? }. Version 0.1 sent items[].plan, which the server refused. interval is removed, and metadata values must be strings.
- Catalogue:
catalog.upsertPlan,updatePlanandgetPlan. - Subscriptions:
create,get,changePlan,previewChangePlanandcancel. - Invoices:
list,get,pdf,createOneOff,recordPaymentandpayLink. usage.send(events): an immediate, awaited send that throws on failure.- Webhook event types
customer.updated,payment.succeededandcheckout.session.completed. - Calls that move money require an
idempotencyKey. - Fixed: a cache-miss read can no longer overwrite a newer
entitlements.updatedsnapshot that arrived while the request was in flight.
SDK 0.1.0, 19 October 2026
First release: the client, customers, cached entitlements, usage reporting, credits, subscription seats, webhook verification, checkout and portal sessions, typed errors and the React entry.