Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
@spree/sdk
6.0.2
Released with Spree 6.0.2, with no changes of its own.
6.0.1
Patch Changes
#14996
30493b4Thanks @damianlegawiec! - Added an optionalcustom_fieldsproperty to every record type that can carry custom fields, such as sellers, option types, media, orders, line items, addresses and customers. Request it withexpand: ['custom_fields']. The Store API returns only fields marked storefront visible, and the Admin API returns every field.#14997
730c9daThanks @damianlegawiec! - Added localized storefront SEO settings. Merchants edit the store's SEO title and meta description on Store Settings and translate them for each supported language. The Store SDK reads them withclient.store.get(), and the Admin SDK reaches the store's translations withclient.store.translations.get().
6.0.0
Minor Changes
- #14982
348c5bbThanks @damianlegawiec! - Added themaintenance_task_run.*webhook events (created,started,interrupted,succeeded,errored,cancelled,updatedanddeleted) to the typed webhook event catalog.
6.0.0-rc.7
Released with Spree 6.0.0.rc7, with no changes of its own. From this release the version matches the version of the Spree gems.
2.0.0-rc.5
Minor Changes
#14911
3ca1f5eThanks @KacperMekarski! - Company members can now pick their company's addresses when choosing where an order goes. Picking a company site at checkout used to be dropped without an error, because the cart only ever looked in the buyer's own address book. A newGET /store/carts/:id/addressesreturns everything a cart may be shipped or billed to — the buyer's book plus the sites of the company set as the cart'scompany_idand the ones it inherits, limited to the countries the cart's market sells to — andclient.carts.addresses.list()reaches it. The company has to be set on the cart explicitly: a buyer who belongs to a single company is not assumed to be buying for it when it comes to addresses. EveryAddressnow carries theownerit is filed under (nullfor an address in no book, such as the copy a placed order keeps), so a picker can label the two books from one response. On the Admin API thisownerobject replaces the separateowner_idandowner_typefields. Unlike the other cart endpoints this one needs a signed-in customer: it answers with the account's address books rather than the cart's own contents. Staff get the same reach: a company's sites are selectable when creating an order, and "use default addresses" takes the company's defaults for a company order. On a division's page, addresses inherited from the companies above it are labelled with their owner and cannot be edited there.#14934
dc2f1a7Thanks @mad-eel! - A customer's own data request now waits for confirmation from the account's email address.client.customer.dataRequestslists, reads and opens requests, andcreatetakes aredirect_urlfor the page the emailed link opens.client.dataRequests.confirm(token)confirms one from that page, andclient.dataRequests.get(token)reads it, with the download link once the export is ready.DataRequestStatusgainsawaiting_confirmationandlapsed. The dashboard's email editor lists the new confirmation email.
Patch Changes
#14933
1a86817Thanks @damianlegawiec! - Order filter and sort types includemarket_idandlocale. Locale, currency and country filters (locale,currency,cost_currency,country_code,country_of_origin) accept onlyLocaleCode,CurrencyCodeandCountryCodevalues (newCodeFilterstype) instead of free text.#14944
a0e5b66Thanks @damianlegawiec! - Added every status, kind and other value list the Spree API returns to@spree/core, each as a list of its values (PRODUCT_STATUSES,MEDIA_TYPES, …) and a type (ProductStatus,MediaType, …) — open where extensions may add values, closed otherwise — plussubsetOffor picking the values an action accepts with each one checked at compile time. The SDKs re-export these types instead of each carrying its own copy, so their names and values are unchanged. The dashboards and the seller panel build their status filters and action checks from these lists, so a status added on the server shows up without a dashboard change. Value lists the SDKs used to spell out inline, such as a seller transfer'skind, now have names of their own;MediaType,CollectionRuleMatchPolicyandCollectionSortOrderin@spree/admin-sdk, andClaimResolutionin@spree/dashboard-ui, now come from the generated lists under the same names. A seller'stax_remittanceandpayouts_schedule_interval, a claim'sresolution, a collection'ssort_order, a shipping label'sformat, purchase order and stock transfer statuses, and tax and commission lines'taxability_reasonare now typed with their lists instead of as plain strings.#14936
06fc8b0Thanks @damianlegawiec! - Weight and dimension units are closed code lists, exported asWeightUnitandDimensionUnit(values and types) likeCountryCodeandCurrencyCode, and every unit field in responses and request types uses them; unit fields in requests acceptnullto fall back to the store default. The Admin and Seller SDKs publish oneVariantParamstype:ProductVariantParams,VariantCreateParamsandVariantUpdateParamsbuild on it. The Seller SDK'sSellerProductVariantParamsis renamed toProductVariantParams(the old name stays as a deprecated alias). The variant editor and bulk variant editor now offer feet as a dimension unit.
2.0.0-rc.4
Minor Changes
- #14900
11b9a03Thanks @damianlegawiec! - AddedCountryCode,CurrencyCodeandLocaleCodeas values as well as types, so you can writeCurrencyCode.USD, list every code withObject.values(CurrencyCode)and see each code's name in your editor. Plain strings such as'USD'still type-check.
2.0.0-rc.3
Patch Changes
Fixed
products.filters()sending itsqfilters as[object Object], which the API answered with a server error; it now also takescollection_id. Entries ofqon every list method always stay insideq, even one namedpageorsort, and nested objects are sent in bracket form.Store API addresses accept
quick_checkouteverywhere a shopper writes one, in the address book as well as on a cart, soAddressCreateParams,AddressUpdateParamsand the deprecatedAddressParamscarry it again, asAddressParamsdid in rc1.The Store SDK no longer bundles the MD5 library used for file uploads, which it never performs.
sumMoney,subtractMoney,multiplyMoneyandnegateMoneynow write every result the same way: with the decimals their inputs carry, and at least the currency's when one is given (sumMoney(['1.50', '2.50'])is"4.00", not"4"). Nothing is rounded away.formatMoneyreturns an empty string for a currencyIntldoes not know, falls back to the reader's language for a locale it does not know, and no longer shows a minus sign on an amount that rounds to zero.Store API prices bring back
amount_in_centsandcompare_at_amount_in_cents, and price history brings backamount_in_cents, marked@deprecateduntil 6.1 so a 5.6 storefront keeps working. Readamountandcompare_at_amountinstead.PriceRangeFiltertypes the price filter'sminandmaxas decimal strings, which is what the API sends; it said numbers. The product filter types (PriceRangeFilter,OptionFilter,ProductFiltersResponseand the rest) are now aliases of the generated ones, so they follow the API.Bridges for 5.6 storefronts, each removed in 6.1:
carts.storeCredits.apply()accepts a number again, marked@deprecated, and the API reads it with a deprecation warning; the cart's delivery requirement keepsfield: 'shipping_method'(match itscode,delivery_method_required);Discountis a deprecated alias ofAppliedPromotion, the type ofcart.discountsandorder.discounts.
2.0.0-rc.2
Minor Changes
#14885
34b80f0Thanks @damianlegawiec! - AddedformatMoney(amount, currency, locale?, { unitPrice? }), which formats a decimal-string amount in its currency and the reader's language with the currency's own decimal places, without passing it through a JavaScript number. The dashboard now uses the SDK's copy.#14887
9b5911dThanks @damianlegawiec! - Country and currency names move to the client: the Store API's countrynameand currencynameandsymbolare deprecated (name them withIntl.DisplayNames, format amounts withformatMoney), and the Admin and Seller APIs no longer return a country'sname. The seller SDK'sSellerCountryis now the generatedCountrytype, and the setup country list'slocalesare typed asLocaleCode[]. The dashboard and seller panel name and sort countries in the admin's own language.In
@spree/dashboard-core,CountryOptionno longer hasnameandcountryFilteris removed: name countries withuseCountryDisplayNameand sort them with the newuseSortByCountryName, which collates in the admin's language.#14886
6034c11Thanks @damianlegawiec! - Added theLocaleCodetype: the locale codes Spree accepts (every ISO 639-1 language plus regional variants such asen-USandpt-BR). Order, cart and market locales, the store's default, supported and available locales, and the matching request params now use it. The dashboard validates locale fields with the newlocaleCodeSchema.The Store API's locale
nameis deprecated (name a locale from itscodewithIntl.DisplayNames) and the Admin API no longer returns it, so the admin SDK'sLocaletype dropsnameand typescodeasLocaleCode; the dashboard names locales in the browser.#14852
525959dThanks @damianlegawiec! - Money is a decimal string written to its currency's decimals, and Admin and Seller writes take money and rates only as decimal strings. AddedsumMoney,subtractMoney,multiplyMoney,negateMoney,compareMoney,isZeroMoney,isDecimalStringanddecimalPlacesfor exact arithmetic on those strings. Currencies carrydecimal_places; prices no longer carryamount_in_centsorcompare_at_amount_in_cents; tax rates read and writerateandrate_percentinstead ofamountandamount_percentage.#14877
8dbe607Thanks @KacperMekarski! -orders.getnow returnsOrder | OrderGroup. Called with the id of the cart a checkout was placed from, it returns the whole purchase: one order, or, when the checkout reached several sellers, the order group holding one order per seller. Narrow the result withisOrderGroupbefore reading order-only fields such asitems. An order group now carries the same money summary as an order (delivery, discount, tax, fee, gift card and store credit totals, the amount still due) and its payments.store_credit_totalon carts, orders and order groups no longer includes what a gift card paid. That amount is reported only ingift_card_total, so a summary that shows both rows no longer deducts it twice.amount_dueno longer subtracts store credit that has already been captured.#14873
f71fb8aThanks @damianlegawiec! -carts.storeCredits.apply()takes the amount as a decimal string ('10.00'), like every other money value; a number is no longer accepted.#14866
cbde8feThanks @damianlegawiec! - A cart's purchase order document is now set withpo_document_signed_idinstead ofpo_document.#14858
a90a9ccThanks @damianlegawiec! - Every filterable list method now takes typed filter and sort parameters, including returns, claims, exchanges, custom fields, digital links, payouts, imports and the rest that still accepted any key. The building block for custom field value filters is nowCustomFieldValueFilters, so it no longer hides the generated filters for custom field lists. The product digital files list now pages by 25 as intended.#14854
90af080Thanks @damianlegawiec! - List methods of documented endpoints now accept typed filter and sort parameters, generated from the filters each endpoint actually accepts; methods of endpoints the API reference does not document yet keep loose parameters. A misspelled filter, a filter the endpoint does not support, or an unknown sort field is now a type error instead of a request that silently returns the unfiltered list.ProductListParams,CategoryListParams,CollectionListParamsandOrderListParamskeep their names and are now generated; they no longer accept arbitrary keys. Filters an app adds through its own extensions can be sent unchecked insideq(list({ q: { erp_id_eq: 'ERP-1' } })), generated as declarations withspree filters types, or declared by hand by extending<Resource>FilterExtensionsand<Resource>SortExtensions. The filter building blocks (TextFilters,SortKey, …) are exported for those declarations.The dashboard's allowed-origins search, delivery zones by profile, and several filters and sorts on payment methods, sellers, option types, markets, custom field definitions and gift cards now take effect; the API used to ignore them.
#14876
5c1eeeeThanks @damianlegawiec! - Request types that served both create and update are split by action, so creating marks what the API requires (a company's or tax rate's name, a tax registration's kind and value, an address's name, street, city and country) while updating takes any field.AddressParamsandCompanyAddressParamsin@spree/sdkstay as deprecated aliases until 6.1. The Admin SDK'sorders.payments.capture(orderId, id, params?, options?)takes an optional{ amount }for a partial capture; request options move from the third argument to the fourth.A tax exemption certificate's
issued_at,expires_atandverified_atare typedstring | null: a certificate that is still pending has no dates yet.#14871
6990f37Thanks @damianlegawiec! - Request body types are now generated from the API itself, so every create, update and action method takes exactly the fields its endpoint accepts. Fields the API never accepted are gone from the types, and fields it accepted but the types left out are added. Renamed types keep their old names as deprecated aliases (for exampleVariantPriceis nowPriceParams,LineItemInputis nowLineItemInputParams). The dashboard now saves the store's digital download limits, which the API used to drop.Country and currency codes are typed as the closed
CountryCodeandCurrencyCodeunions in both requests and responses. Deprecated fields are marked@deprecatedin the types; the Store SDK keeps them until 6.1, while the Admin and Seller SDKs drop them (addresscountry_iso/state_abbr, cartnumber, marketcountry_isos, importowner_type/owner_id, payment methodauto_capture).
Patch Changes
#14885
34b80f0Thanks @damianlegawiec! - Marked the Store API'sdisplay_*money fields as deprecated. Format the amount beside each one with its currency instead (totalfordisplay_total); the fields are removed in 6.1.#14877
8dbe607Thanks @KacperMekarski! - Stock locations bring backcountry_isoandstate_abbr, and refunds bring backreimbursement_id(alwaysnull), all marked@deprecateduntil 6.1 so a 5.6 storefront keeps compiling.AppliedPromotion,Fee,TaxLineandDelivery, which carts, orders and their items already carry, are now exported from the package root.
2.0.0-rc.1
Minor Changes
#14837
3b80c52Thanks @damianlegawiec! - Changed every type value the APIs send or accept to a short name instead of a Ruby class name: delivery method, digital asset, payout, tax and pickup point providers (manual,internal,system,file), order routing strategies (rules), custom field definitionresource_type(product,category), tagtaggable_type, the owner and originator types on addresses, refunds and media usage, payment setup sessionpayment_source_type(credit_card), and type filters such astype_eqandreceivable_type_eq. Removedintegration_classfrom the provider listings and the deprecated custom fieldtypefield (usefield_type), and corrected the shipping labelowner_typetype to'fulfillment' | 'return'.#14799
c9d9a2fThanks @mad-eel! - Returns, claims and exchanges now give back the tax the customer paid. Return lines carryincluded_tax_total,additional_tax_total,tax_totalandrefund_amount(tax included), and returns carryrefund_tax_total. On a store whose prices include VAT, a return line'spre_tax_amountnow reads the price before tax rather than the gross price. Claim and exchange lines carry the tax on each half, tax lines name the return, claim or exchange line they belong to and whether they are acredit, Admin refunds carrytax_amount, and Seller order line items carryadditional_tax_total. Fees gain theexchangekind.#14773
8f21572Thanks @damianlegawiec! - Added typed webhook events.@spree/sdk/webhooksnow maps every event Spree publishes to the record itsdatacarries, so checkingevent.namenarrowsevent.data, andconstructWebhookEventverifies a request and returns the typed event (optionally validated withwebhookEventSchemasfrom@spree/sdk/zod).WebhookEvent<Order>keeps working but is deprecated in favour ofWebhookEvent<'order.placed'>. The Admin SDK addsclient.webhookEvents.list(), and the dashboard's webhook event picker now reads that list instead of a hand-kept one.
Patch Changes
- #14763
53d9925Thanks @damianlegawiec! - Added runtime Zod schemas to the Admin and Seller SDKs, exported from@spree/admin-sdk/zodand@spree/seller-sdk/zod, matching what@spree/sdk/zodalready offers for the Store API. Schemas for inline objects, unions and records are now precise instead of accepting any value, which also tightens a few Store SDK schemas (cart warnings, payment sources, product filters).
2.0.0-beta.2
Minor Changes
- #14695
df8a0eaThanks @damianlegawiec! -carts.completeis now typed asOrder | OrderGroup: in a marketplace, a cart holding several sellers' goods completes into an order group rather than a single order. Added theOrderGrouptype export and anisOrderGrouptype guard so storefronts can tell the two apart.
Patch Changes
- #14736
cb92ce3Thanks @damianlegawiec! -companies.members.createnow always returns theCompanyInvitation: adding a member from the storefront sends an invitation even to an existing customer, who joins by accepting it.
2.0.0-beta.1
Major Changes
#14442
4df88acThanks @damianlegawiec! - Rename the geography fields tocountry_codeandstate_codeacross the v3 API, replacingcountry_isoandstate_abbr. Addresses, stock locations, delivery zone members, markets, tax rates and tax exemption certificates all use the new names, on read and on write. Markets rename their list of countries fromcountry_isostocountry_codes.Addresses keep
country_isoandstate_abbras deprecated read fields and accepted write names for one release, so existing storefronts keep working; both are removed in 6.1. Every other resource moves outright.#14376
a52a6daThanks @damianlegawiec! - Spree 6.0 Store API line. Breaking changes for storefront integrations:- Completed carts are no longer served by the cart endpoints — fetching one returns 404, the signal to drop stale cart state. The checkout outcome stays reachable through
orders.get(cartId)authorized by the cart token (the order inherits it). DeliveryZone.membersis only embedded when requested withexpand=members(the type is now optional).- The placement webhook event is
order.placed;order.completedis still dual-emitted through 6.0 withdeprecated_alias_ofmetadata and drops in 6.1.
Additions:
coupon_codeon Cart and Order (with pending-code semantics — a real but not-yet-eligible code is kept and applies once the cart qualifies),cart_idon Order for matching cart activity to its conversion, andcart.created/cart.updated/cart.deletedwebhook events for abandonment tooling.- Completed carts are no longer served by the cart endpoints — fetching one returns 404, the signal to drop stale cart state. The checkout outcome stays reachable through
Minor Changes
#14394
a8b11ecThanks @damianlegawiec! - Collections reach both SDKs.@spree/sdk(storefront):collections.list()/collections.get(idOrPermalink)— the flat, merchandising-driven groupings ("Summer Sale", "New Arrivals"), whether membership is curated by hand or maintained from rules.collections.products.list(idOrPermalink, params)— a collection's product listing page. Takes the same filters and sorts asproducts.list, and whensortis omitted the collection's ownsort_orderapplies, so a shopper sees the ordering the merchant chose (including their manual arrangement).in_collectiononProductListParams, for composing a collection filter into a wider product query.
@spree/admin-sdk(back office):collectionsCRUD, with reordering as a plain 1-basedpositionon update rather than a separate action — collections are a flat list. Nestedcollections.productscovers membership, ordering andreposition, plus custom fields and translations.collectionRules.types()enumerates the registered rule kinds, so a rule a plugin registers shows up without an SDK release.products.bulkAddToCollections/bulkRemoveFromCollections, andcollection_idson product create/update.ruleson a collection is expand-gated (?expand=rules), matchingcustom_fields— a listing no longer ships every collection's full rule set.hide_from_navis gone from the category params. Nothing read it.
Patch Changes
- #14593
0f22450Thanks @Hemang-ai! - Preserve HTTP error statuses when a server returns an empty, non-JSON, or malformed error body. Avoid treating these responses as network failures, and allow admin and seller session recovery to handle unauthorized responses.
1.2.1
Patch Changes
#14363
705e515Thanks @damianlegawiec! -resource_type,inviter_typeandinvitee_typeon theInvitationtype now return the API shorthand ("store","admin_user") instead of the Ruby class name, matching how every other type field on the API is serialized. The TypeScript types are unchanged (string | null); only the values differ.#14361
f62ec82Thanks @damianlegawiec! - Expose product_id and Product at Wishlist Item#14353
8bf0dd0Thanks @ifizza! -ProductFilterSortOptionnow includes alabelfield — a human-readable name for custom-field-backed sort options (cf_*keys) returned by the product filters endpoint;nullfor built-in sort options.
1.2.0
Minor Changes
#14339
b71e613Thanks @damianlegawiec! - Add newsletter unsubscribe endpoints.newsletterSubscribers.requestUnsubscribe({ email })asks the store to fire anewsletter_subscriber.unsubscribe_requestedwebhook event carrying an unsubscribe token (always 202, so email existence is never revealed).newsletterSubscribers.delete(id, { token })removes a subscription using that token from an email link, or — with a customer JWT instead of the token — removes the signed-in customer's own subscription.Customernow exposes the store-scopednewsletter_subscriberonGET /customers/me, which is where a signed-in customer reads the subscription id.#14339
b71e613Thanks @damianlegawiec! - Money fields are now typedstring | nullacross Cart, Order, LineItem, Payment, Fulfillment, GiftCard, and Discount (Zod schemas acceptnullaccordingly). On a gated channel (prices_hidden), the Store API returnsnullfor every monetary amount — including those on records nested inside a cart or order — so anonymous visitors cannot recover hidden prices. Handlenullbefore formatting or doing arithmetic on these fields.#14339
b71e613Thanks @damianlegawiec! - Surface pre-order status on the Store API types.Variant,Product, andLineItemnow exposepreorder(whether the item is currently sold as a pre-order) andpreorder_ships_at(the customer-facing "ships by" promise,nullunless it's a live pre-order), so storefronts can render a "Pre-order — ships by …" badge. Both fields are included in the generated Zod schemas.#14339
b71e613Thanks @damianlegawiec! - Addclient.channel.get()— returns the channel the client's requests resolve to (API-key binding →channeloption → store default), including the resolvedstorefront_accessposture (public|prices_hidden|login_required) andguest_checkout. Gated storefronts can call it before authentication to decide whether to render a sign-in wall. Also exports theChannelandCustomerGrouptypes;customers/menow includes store-scopedcustomer_groups; andCartcarrieschannel_id, so a storefront serving several channels can verify a persisted cart belongs to the surface loading it.#14339
b71e613Thanks @damianlegawiec! - Support gated storefronts in the Store API. A channel (or its store) can now hide prices from anonymous visitors or require a login to browse: when prices are hidden, monetary fields on products, carts, and orders returnnullfor guests, andlogin_requiredchannels reject unauthenticated requests with401. Guest checkout can likewise be disallowed per channel, in which case completing a cart without a signed-in customer returns401.
1.1.0
Minor Changes
Add provider-dispatched login.
client.auth.login()now accepts third-party identity-provider payloads (e.g.{ provider: 'auth0', token: '<jwt>' }) in addition to the existing{ email, password }shape —LoginCredentialsis now a discriminated union ofEmailPasswordLogin | ProviderLogin, both newly exported. Pairs with the server-side strategy registry atSpree.store_authentication_strategies. Existing email/password calls are unchanged.Add
client.newsletterSubscribers.create()andclient.newsletterSubscribers.verify()for the new Store API newsletter subscription endpoints.Lets headless storefronts subscribe guests to the newsletter before account creation and confirm the double opt-in via the verification token from the confirmation email. Pass
redirect_urloncreate()and the storefront receives anewsletter_subscriber.subscription_requestedwebhook with the token + validated redirect URL so it can send the confirmation email itself — same pattern ascustomer.password_reset_requested. When called with a JWT and the customer's own email, the subscription is auto-verified.Consent is now preserved across registration: when
client.customers.create()is called with an email that already has a newsletter subscription on the current store, that subscriber is linked to the new user. If the subscription was verified,accepts_email_marketingis set totrueon the returned customer even when the registration body sentfalse— so guests who opted in before signing up don't lose their consent.Custom field
field_typetoken.CustomFieldnow exposesfield_typeas a string-literal union ('short_text' | 'long_text' | 'rich_text' | 'number' | 'boolean' | 'json' | (string & {})) — abstract token instead of the Ruby STI class name. Aligns with how Shopify, Saleor, Vendure, and commercetools expose typed custom fields.- The legacy
typefield (e.g.'Spree::Metafields::ShortText') is unchanged and still emitted alongside the newfield_typefor back-compat. The TypeScript type is annotated with@deprecatedso editors surface the migration tip on hover; eslint withno-deprecatedwill flag references. Storefronts should switch tofield_type;typewill be removed in a future minor.
Sync Zod schemas with TypeScript types for
CustomerandPaymentMethod.CustomerSchemanow includesfull_name: string(already present in theCustomertype since the Admin Customers API landed; the runtime schema was stale).PaymentMethodSchemanow includessource_required: boolean(already present in thePaymentMethodtype).
No source-API change — this only affects callers using
CustomerSchema/PaymentMethodSchemafor runtime validation (e.g.,CustomerSchema.parse(response)). Validation no longer rejects these fields and parsed values are correctly typed.
Patch Changes
Expose
Product.meta_titlein the Store API.meta_titleis a storefront SEO field (used in<title>tags) — previously it was only on the Admin product serializer. Now serialized on the StoreProducttype asmeta_title: string | nullso storefronts can render it without a second admin call.Expose
Product.option_valuesin the Store API.The
Producttype now includes an optionaloption_values: Array<OptionValue>field, listing the option values that are actually in use across the product's variants. This lets storefronts render option pickers (size, color, etc.) without iterating over every variant to collect them.Add sales-channel selection to the Store SDK via the
X-Spree-Channelheader.createClient({ channel: 'pos' })— set a client-level defaultclient.setChannel('wholesale')— sticky setter, mirrorssetLocale/setCurrency/setCountryawait client.products.list({}, { channel: 'pos' })— per-request override
The value can be either a channel
code(e.g.online,pos,wholesale) or the prefixed ID (ch_…);codeis preferred. Backend resolution stays atSpree::Api::V3::ChannelResolution: a matching header picks the channel for the request, otherwise the store's default channel applies.
1.0.1
Patch Changes
Add
total,display_total,tax_total,display_tax_total,additional_tax_total,display_additional_tax_total,included_tax_total, anddisplay_included_tax_totaltoDeliveryRatetype. These fields expose post-discount pricing and tax breakdowns on each shipping rate, fixing incorrect display when free shipping promotions are applied.Add
total,display_total,discount_total,display_discount_total,additional_tax_total,display_additional_tax_total,included_tax_total,display_included_tax_total,tax_total, anddisplay_tax_totaltoFulfillmenttype. Fulfillments now include the same cost/total/tax breakdown pattern used byLineItemandCart/Order.Expose
requestmethod on the client for calling custom API endpoints. Paths are relative to/api/v3/storeand use the same auth headers, retry logic, and locale/currency defaults as built-in resources.
1.0.0
Major Release
Stable release of @spree/sdk for Spree Commerce 5.4.0. No breaking changes from 0.21.0 — this release marks the SDK as production-ready and stable.
0.21.0
Minor Changes
- Renamed
nametolabelon CustomField type to align with OptionType/OptionValue naming convention. Breaking: API consumers readingcustom_fields[].namemust update tocustom_fields[].label.
0.20.2
Patch Changes
- Add
market_idandmarketto Cart and Order types. Cart and Order responses now include the associated market with its name, currency, default locale, supported locales, and tax inclusivity flag.
0.20.1
Patch Changes
- Add
kindto OptionFilter andcolor_code+image_urlto OptionFilterOption types
0.20.0
Minor Changes
- Add option type
kindfield (dropdown/color_swatch/buttons) and option valuecolor_code+image_urlfields for swatch support
0.19.1
Patch Changes
- Updated types reflecting removal of timestampts from Store API
0.19.0
Minor Changes
- Replace
categories_id_eqfilter andcategories.products.list()within_category/in_categoriesscopes on the/productsendpoint. Category filters now include descendant categories.
Patch Changes
Rename metafields to custom*fields in Store API. The expand parameter changes from
metafieldstocustom_fields, and the response key changes accordingly. Prefix IDs change frommf*tocf\_. TheStoreMetafieldtype is replaced byStoreCustomField.Remove
created_atandupdated_atfrom Store API responses. These internal timestamps are now only available in Admin API responses. Business timestamps likecompleted_atandexpires_atare unchanged.
0.18.0
Breaking Changes
- Removed
categories.products.list()— useproducts.list({ in_category: 'ctg_xxx' })instead. The dedicated/categories/{id}/productsendpoint has been removed in favor of thein_categoryscope on/products - Replaced
categories_id_eqfilter within_categoryandin_categoriesscopes
New Features
in_categoryfilter — filter products by category prefixed ID, automatically includes descendant categoriesin_categoriesfilter — filter by multiple category prefixed IDs with OR logic (checkbox-style filters), each includes descendants
Bug Fixes
- Category filtering on PLP — category filters now correctly include products in descendant categories, fixing empty results on multi-level taxonomy PLPs
0.17.0
New Features
- Webhook signature verification — new
@spree/sdk/webhookssubpath export withverifyWebhookSignature()for HMAC-SHA256 signature verification with replay protection. Works with any framework (Express, Hono, Cloudflare Workers, Next.js, etc.) - Webhook event types —
WebhookEvent<T>generic envelope type. Use existing SDK types (Order,Payment,Fulfillment, etc.) as the type parameter — webhook payloads use the same V3 serializers as the REST API
0.16.0
Breaking Changes
- Renamed
couponCodestodiscountCodes—client.carts.discountCodes.apply()/.remove()(wascouponCodes) - Renamed
customer.passwordResetstopasswordResets— moved to top-level:client.passwordResets.create()/.update()
New Features
- Gift cards — dedicated cart endpoints:
client.carts.giftCards.apply(cartId, code)andclient.carts.giftCards.remove(cartId, giftCardId) amount_due/display_amount_due— new fields on Cart and Order types showing the amount owed after store credits/gift cards- Cart warnings — every cart response now includes a
warningsarray flagging issues like removed out-of-stock items - Gift card error codes — dedicated error codes:
gift_card_not_found,gift_card_expired,gift_card_already_redeemed - Store policies —
client.policies.list()andclient.policies.get(slug)for return policy, privacy policy, terms of service, etc.
Types
Carttype now includeswarningsarray andamount_due/display_amount_duefields- New exported type:
CartWarning(derived fromCart['warnings'][number]) - New exported type:
Policy
0.15.0
Minor Changes
Breaking: Store API endpoint changes requiring backend >= 5.4.0.rc2:
- Default address: Removed
markAsDefault()method. Useis_default_billing/is_default_shippingbooleans oncreate()andupdate()instead (Medusa/Vendure pattern) - Removed redundant endpoints:
carts.paymentMethods.list(),carts.payments.list(),carts.payments.get(),carts.fulfillments.list()— payment methods, payments, and fulfillments are included in the cart response AddressParamsnow includesis_default_billingandis_default_shippingfields- Address response now includes
is_default_billingandis_default_shippingfields - Cart/Order response now includes
store_credit_total,gift_card_total,covered_by_store_credit, andgift_cardassociation - Customer response now includes
available_store_credit_total - New endpoint:
customer.storeCredits.list()andcustomer.storeCredits.get()— store credits for the authenticated customer
0.14.2
Patch Changes
- Restored
gateway_payment_profile_idonCreditCardandPaymentSourcetypes — needed by frontends for saved card payment flows (Stripe, Adyen, etc.)
0.14.1
Patch Changes
- Added
use_shippingoption toUpdateCartParams— whentrue, copies the shipping address to billing address (billing same as shipping). Write-only flag, not returned in cart responses. - Added
shipping_eq_billing_addressboolean to Cart —truewhen shipping and billing addresses match. Lets frontends pre-check the "same as shipping" checkbox without comparing addresses manually.
0.14.0
Minor Changes
Standardize Store API naming against industry conventions (Shopify, Medusa, Saleor, Vendure).
Breaking changes:
- Address:
firstname→first_name,lastname→last_name,zipcode→postal_code - Cart/Order:
special_instructions→customer_note,item_count→total_quantity,promo_total→discount_total,bill_address→billing_address,ship_address→shipping_address,promotions→discounts - LineItem:
promo_total→discount_total - OptionType/OptionValue:
presentation→label - CreditCard:
cc_type→brand,last_digits→last4, removedgateway_payment_profile_id - ReturnAuthorization:
state→status CartPromotion/OrderPromotiontypes replaced by unifiedDiscounttypeWishedItemtype replaced byWishlistItemUpdateCartParams:ship_address→shipping_address,bill_address→billing_address,special_instructions→customer_noteAddressParams:firstname→first_name,lastname→last_name,zipcode→postal_code- Promotion type slimmed to
id,name,description,code - Product filters:
presentation→label - Removed admin-only types from Store SDK (Asset, StockItem, StockMovement, StockTransfer, ShippingCategory, Reimbursement, Report, Export, Import, ImportRow, TaxCategory, CustomerReturn)
- Address:
0.13.2
Patch Changes
- Rename
multi_searchtosearchinProductListParamsandOrderListParams. Themulti_searchparam still works via backward compatibility on the backend butsearchis now the recommended parameter name for full-text search.
0.13.1
Patch Changes
- Changed generated TypeScript types from
typealiases tointerfacedeclarations, enabling declaration merging for SDK consumers who customize API serializers
0.13.0
Minor Changes
Refresh token support
AuthTokenstype now includesrefresh_tokenfield — returned by login, register, and password resetclient.auth.refresh({ refresh_token })— exchanges a refresh token for a new access JWT + rotated refresh token. No Authorization header needed.client.auth.logout({ refresh_token })— revokes the refresh token server-side
0.12.1
Patch Changes
- Added
itemsfield toFulfillmenttype — an array of{ item_id, variant_id, quantity }showing which line items (and how many) are in each fulfillment. Enables storefronts to correctly display per-fulfillment item lists for split-shipment orders.
0.12.0
Minor Changes
Breaking: Shipping → Delivery/Fulfillment naming
Renamed all shipping/shipment API surface to use delivery/fulfillment vocabulary:
client.carts.shipments→client.carts.fulfillmentsselected_shipping_rate_idparam →selected_delivery_rate_id/carts/:id/shipmentsendpoint →/carts/:id/fulfillments
Breaking: Renamed response fields
shipment_state→fulfillment_status(on Order)payment_state→payment_status(on Order)ship_total/display_ship_total→delivery_total/display_delivery_total(on Cart/Order)state→status(on Payment, GiftCard)shipped_at→fulfilled_at(on Fulfillment)shipping_method→delivery_method(on Fulfillment, DeliveryRate)shipping_rates→delivery_rates(on Fulfillment)
Breaking: Removed fields
- Removed
is_masterfrom Variant - Removed
expand=master_variantfrom Product (useexpand=default_variant)
Type renames
Shipment→Fulfillment/StoreFulfillmentShippingMethod→DeliveryMethod/StoreDeliveryMethodShippingRate→DeliveryRate/StoreDeliveryRate
Patch Changes
- Added
itemsfield toFulfillmenttype — an array of{ item_id, variant_id, quantity }showing which line items (and how many) are in each fulfillment. Enables storefronts to correctly display per-fulfillment item lists for split-shipment orders.
0.12.0
Minor Changes
Breaking: Shipping → Delivery/Fulfillment naming
Renamed all shipping/shipment API surface to use delivery/fulfillment vocabulary:
client.carts.shipments→client.carts.fulfillmentsselected_shipping_rate_idparam →selected_delivery_rate_id/carts/:id/shipmentsendpoint →/carts/:id/fulfillments
Breaking: Renamed response fields
shipment_state→fulfillment_status(on Order)payment_state→payment_status(on Order)ship_total/display_ship_total→delivery_total/display_delivery_total(on Cart/Order)state→status(on Payment, GiftCard)shipped_at→fulfilled_at(on Fulfillment)shipping_method→delivery_method(on Fulfillment, DeliveryRate)shipping_rates→delivery_rates(on Fulfillment)
Breaking: Removed fields
- Removed
is_masterfrom Variant - Removed
expand=master_variantfrom Product (useexpand=default_variant)
Type renames
Shipment→Fulfillment/StoreFulfillmentShippingMethod→DeliveryMethod/StoreDeliveryMethodShippingRate→DeliveryRate/StoreDeliveryRate
0.11.0
Minor Changes
- Breaking: Rename
imagestomediaacross the Store APIexpand: ['images']→expand: ['media']on products and variants- Response key
images→media Imagetype replaced byMediatype (withmedia_type,product_id,focal_point_x/y,external_video_url)StoreImagetype replaced byStoreMedia- Removed
viewable_idandviewable_typefrom media responses - Added
product_idfield to media responses
0.10.1
Patch Changes
- Add optional
redirect_urlparameter torequestPasswordResetfor password reset flow. The URL is validated against the store's allowed origins on the server side.
0.10.0
Minor Changes
Unified cart and checkout under single
cartsresourceBreaking changes:
- Removed
client.cart(singular) andclient.checkoutnamespaces - All cart and checkout operations are now under
client.carts - All operations on a specific cart now require
cartIdas the first argument UpdateCheckoutParamsrenamed toUpdateCartParams
Migration guide:
// Before (0.9.x) client.cart.create(); client.cart.get(options); client.cart.items.create(params, options); client.checkout.update(params, options); client.checkout.complete(options); client.checkout.shipments.list(options); client.checkout.payments.create(params, options); client.checkout.paymentSessions.create(params, options); // After (0.10.0) client.carts.create(); client.carts.get(cartId, options); client.carts.items.create(cartId, params, options); client.carts.update(cartId, params, options); client.carts.complete(cartId, options); client.carts.shipments.list(cartId, options); client.carts.payments.create(cartId, params, options); client.carts.paymentSessions.create(cartId, params, options);- Removed
0.9.0
Minor Changes
Breaking: Cart API no longer returns
state,checkout_steps, orstate_lock_version. These are replaced by:current_step— the current checkout step (e.g."address","delivery","payment")completed_steps— array of steps already completedrequirements— array of{ step, field, message }objects describing what's still needed to complete checkout
Added
CheckoutRequirementtype for the newrequirementsfield onCart.Breaking:
line_itemsrenamed toitemsin bothCartandOrderresponses.Breaking:
order_promotionsrenamed topromotionsin bothCartandOrderresponses. Cart promotions useCartPromotiontype (withcpromo_prefixed IDs), Order promotions useOrderPromotion(withoprom_prefixed IDs).Added
CartPromotiontype andCartPromotionSchemaZod schema.OrderPromotionnow has a prefixed ID (oprom_).Zod generator now supports inline object types (
Array<{...}>) and correctly handles nested braces in TypeScript type definitions.
0.8.2
Patch Changes
- Added
orders.payments.create()method for non-session payment methods (e.g. Check, Cash on Delivery, Bank Transfer). Acceptspayment_method_id, optionalamount, and optionalmetadata. For session-based payment methods, useorders.paymentSessions.create()instead. AddedCreatePaymentParamstype.
0.8.1
Patch Changes
- Renamed Taxons/Taxonomies to Categories in the public API surface.
client.taxonsis nowclient.categories,client.taxonomieshas been removed. TypesTaxon/Taxonomyreplaced withCategory. Filter types updated accordingly (TaxonFilter→CategoryFilter,TaxonListParams→CategoryListParams,ProductFiltersParams.taxon_id→category_id).
0.8.0
Minor Changes
Breaking: Move customer registration from
auth.register()tocustomers.create(). The API endpoint changed fromPOST /auth/registertoPOST /customers, aligning with RESTful resource conventions. The method signature and parameters remain the same — only the namespace changed.// Before const auth = await client.auth.register({ email, password, ... }) // After const auth = await client.customers.create({ email, password, ... })
Patch Changes
- Updated dependencies:
0.7.2
Patch Changes
Added
phone,accepts_email_marketing, andmetadatafields toRegisterParamsfor customer registration. Addedmetadataandcurrent_passwordfields tocustomer.update()params. TheCustomertype now includesphoneandaccepts_email_marketingfields returned from the Store API.Moved
AuthTokens,LoginCredentials, andRegisterParamstypes from@spree/sdk-coreto@spree/sdk. These are store-specific auth types and don't belong in the shared core package. No changes needed for consumers — they are still exported from@spree/sdk.
0.7.1
Patch Changes
- Fix
workspace:*protocol leaking into published package. Internal@spree/sdk-coredependency is now bundled at build time instead of declared as a runtime dependency.
0.7.0
Minor Changes
- Flatten client API —
createClient()replacescreateSpreeClient(), all store resources are now top-level (client.products.list()instead ofclient.store.products.list()). Generated types are re-exported with unprefixed names (Productinstead ofStoreProduct; prefixedStore*names remain as backward-compatible aliases). Shared HTTP client, retry logic, and param utilities extracted to internal@spree/sdk-corepackage.
Patch Changes
Added
checkout_stepsfield toStoreOrdertype. Returns an array of applicable checkout step names for the order (e.g.,["address", "delivery", "payment", "complete"]). Steps are dynamic per order — digital-only orders may skipdelivery, free orders may skippayment. Use alongsidestateto build dynamic checkout step indicators.Added
fieldsparameter support for field selection. Passfields: ['name', 'slug', 'price']tolistandgetmethods to receive only specific fields in the response. Theidfield is always included. Omitfieldsto return all fields (default behavior).Switch API
sortparameter to JSON:API standard-fieldnotation. Use-pricefor descending andpricefor ascending instead ofprice desc/price asc. Thesortparameter is now supported on all list endpoints (products, taxons, orders, taxonomies, etc.).Added support for nested expand with dot notation. Pass
expand: ['variants.images']to expand associations up to 4 levels deep. No SDK code changes required — this is a backend feature that works with the existing SDK.
0.6.9
Patch Changes
Added
checkout_stepsfield toStoreOrdertype. Returns an array of applicable checkout step names for the order (e.g.,["address", "delivery", "payment", "complete"]). Steps are dynamic per order — digital-only orders may skipdelivery, free orders may skippayment. Use alongsidestateto build dynamic checkout step indicators.Added
fieldsparameter support for field selection. Passfields: ['name', 'slug', 'price']tolistandgetmethods to receive only specific fields in the response. Theidfield is always included. Omitfieldsto return all fields (default behavior).Added
LineItemInputtype andline_itemsparameter toCreateCartParamsandUpdateOrderParams. You can now pass line items when creating a cart or updating an order, enabling bulk add/upsert of items in a single API call.// Create a cart with line items const cart = await client.cart.create({ line_items: [ { variant_id: "variant_abc123", quantity: 2 }, { variant_id: "variant_def456", quantity: 1 }, ], }); // Upsert line items on an existing order const order = await client.orders.update( "or_abc123", { line_items: [{ variant_id: "variant_abc123", quantity: 3 }], }, { token: "<token>" } );Switch API
sortparameter to JSON:API standard-fieldnotation. Use-pricefor descending andpricefor ascending instead ofprice desc/price asc. Thesortparameter is now supported on all list endpoints (products, taxons, orders, taxonomies, etc.).Added support for nested expand with dot notation. Pass
expand: ['variants.images']to expand associations up to 4 levels deep. No SDK code changes required — this is a backend feature that works with the existing SDK.
0.6.8
Patch Changes
Monetary amount types (
cost,amount,amount_used,amount_authorized,amount_remaining,cost_price) changed fromnumbertostringinStoreShippingRate,StoreGiftCard,AdminProduct, andAdminVarianttypes. This follows the Stripe convention of serializing financial values as strings to preserve decimal precision across JSON parsers.Fixed
StoreCountry.markettype fromunknowntoStoreMarket | null.Add
idempotencyKeyoption toRequestOptionsand auto-generate idempotency keys for all mutating requests (POST, PUT, PATCH, DELETE) when retries are enabled. This enables safe automatic retries on 5xx errors and network failures for all requests, matching Stripe SDK behavior. User-supplied keys take precedence over auto-generated ones.Added
ListResponse<T>type for non-paginated list endpoints (countries, currencies, locales, markets).PaginatedResponse<T>now extendsListResponse<T>.Made
publishableKeyoptional in client config. Admin-only consumers no longer need to provide a publishable key. At least one ofpublishableKeyorsecretKeymust still be provided.Stop sending
orderTokenas a URL query parameter. The order token is now sent exclusively via thex-spree-order-tokenheader, keeping auth tokens out of URLs (server logs, browser history, referrer headers).Removed
store.storeresource from the SDK. Store branding should be configured as developer config (env vars) rather than fetched from the API.
0.6.7
Patch Changes
- Standardize
expandparameter to accept onlystring[]
0.6.6
Patch Changes
- Rename
per_pagepagination parameter tolimit - Rename
includesquery parameter toexpand
0.6.3
Patch Changes
Add Markets API support and simplify Country type
- Add
StoreMarkettype withid,name,currency,default_locale,supported_locales,tax_inclusive,default, and optionalcountries - Add
client.marketswithlist(),get(id),resolve(country), and nestedcountries.list(marketId)/countries.get(marketId, iso) - Breaking: Remove
currency,default_locale,supported_localesfromStoreCountry— these now live onStoreMarket. Use?include=marketon the countries endpoint or the markets endpoint directly - Add optional
market?: StoreMarketfield toStoreCountry(populated when?include=marketis passed)
- Add
0.6.2
Patch Changes
Added
quick_checkoutattribute to Address type and AddressParams interfaceAdd
state_lock_versiontoStoreOrderandAdminOrderresponse types. The API now returns astate_lock_versionfield on order responses for tracking order mutation versions.
0.6.1
Patch Changes
Added client-level locale, currency, and country defaults. Set them at initialization (
createSpreeClient({ locale: 'fr', currency: 'EUR', country: 'FR' })) or update later withclient.setLocale(),client.setCurrency(),client.setCountry(). Per-request options still override defaults.Added flat query params for filtering and sorting. Instead of
{ 'q[name_cont]': 'shirt' }, you can now write{ name_cont: 'shirt', sort: 'price asc' }. The SDK transforms these to Ransack format automatically. Oldq[...]syntax still works for backward compatibility.Removed
StorePostandStorePostCategorytypes and Zod schemas. Posts feature has been extracted to thespree_postsextension.
0.6.0
Minor Changes
Add
metadatasupport to Store API — Stripe-style write-only key-value storage- Add
CreateCartParamswith optionalmetadatafor setting metadata on cart creation - Add
metadataparameter toAddLineItemParamsfor setting metadata when adding items to cart - Add
metadataparameter toUpdateLineItemParamsfor updating line item metadata (merge semantics) - Add
metadataparameter toUpdateOrderParamsfor updating order metadata (merge semantics) - Make
quantityoptional inUpdateLineItemParams(can now update metadata without changing quantity) - Breaking:
cart.create()signature changed from(options?)to(params?, options?)— first argument is now optionalCreateCartParams - Remove
public_metadatafromStorePaymentSourcetype and Zod schema
- Add
Remove deprecated fields from
StoreStoretype — these are now managed through Markets and dedicated API endpoints- Remove
default_currency— usestore.currencies.list()or theX-Spree-Countryheader for automatic currency resolution - Remove
default_locale— usestore.locales.list()or theX-Spree-Countryheader for automatic locale resolution - Remove
default— internal flag, not useful for storefront clients - Remove
supported_currencies— usestore.currencies.list()instead - Remove
supported_locales— usestore.locales.list()instead - Remove
default_country_iso— usestore.countries.list()instead
- Remove
Patch Changes
- Added missing types and zod files
0.5.0
Minor Changes
Replace markets API with flat countries, currencies, and locales endpoints
- Remove
store.markets(list, get, resolve, countries) methods - Add
store.countries(list, get) — each country includescurrencyanddefault_localefrom its market - Add
store.currencies(list) — supported currencies derived from markets - Add
store.locales(list) — supported locales derived from markets - Add
StoreCurrencyandStoreLocaletypes - Update
StoreCountrytype withcurrencyanddefault_localefields - Remove
StoreMarkettype
- Remove
Patch Changes
- Add currency attribute to StoreLineItem type and Zod schema
0.4.0
Minor Changes
- Breaking: Replace
store.countrieswithstore.markets— Markets bundle geography (zone), currency, and locale into a single entity for multi-region commercestore.countries.list()→store.markets.countries.list(marketId)(countries are now scoped to a market)store.countries.get(iso)→store.markets.countries.get(marketId, iso)- New
store.markets.list()— list all markets with nested countries (for country/currency switcher) - New
store.markets.get(id)— get a single market by prefixed ID - New
store.markets.resolve(countryIso)— resolve which market a country belongs to
- Add
countryoption toRequestOptions— sendsX-Spree-Countryheader for automatic market resolution (currency, locale, tax zone) - Add
StoreMarkettype andStoreMarketSchemaZod schema - Breaking: Remove
default_currencyanddefault_localefromStoreCountrytype and Zod schema (these were misleading ISO3166 values, not store config)
0.3.1
Patch Changes
- Add
download_urlfield toStoreDigitalLinktype — digital links on line items now include a ready-to-use download URL. The endpoint no longer requires API key authentication; the token in the URL is the sole authentication mechanism.
0.3.0
Minor Changes
- Breaking: Restructure Store API endpoints for Cart, Checkout & Orders
- Cart creation moved from
POST /orderstoPOST /cart— useclient.cart.create()instead ofclient.orders.create() - Customer order history moved from
GET /orderstoGET /customer/orders— useclient.customer.orders.list()instead ofclient.orders.list() orders.create()removed — usecart.create()insteadorders.list()removed — usecustomer.orders.list()instead- Orders namespace now focuses on individual order management and checkout:
get,update,next,advance,complete, plus nested resources (lineItems, payments, shipments, etc.)
- Cart creation moved from
- Add
customer.orders.list()method for fetching authenticated customer's order history - Add Payment Setup Sessions support:
client.customer.paymentSetupSessionswithcreate,get, andcompletemethods for saving payment methods for future use
0.2.5
Patch Changes
- Add currency attribute to StoreLineItem type and Zod schema
0.2.4
Patch Changes
- Add payment source to
StorePaymenttype — payments now includesource_type('credit_card' | 'store_credit' | 'payment_source' | null) andsource(polymorphic union ofStoreCreditCard | StoreStoreCredit | StorePaymentSource | null) for frontend payment source display. Add newStorePaymentSourceandStoreStoreCredittypes.
0.2.3
Patch Changes
- Add
gateway_payment_profile_idtoStoreCreditCardtype — exposes the Stripe PaymentMethod ID (pm_xxx) needed for saved card checkout flows getCart()now clears stale cart token when the backend returns 404 (e.g., after order completion)
0.2.2
Patch Changes
- All cart/checkout mutations (line items create/update/delete, shipments update) now return the updated
StoreOrderwith recalculated totals, matching the industry standard StoreOrdertype: all associations (line_items,shipments,payments,bill_address,ship_address,order_promotions) are now always included — no longer require?includes=param
0.2.1
Patch Changes
- Add Payment Sessions support:
client.orders.paymentSessionswithcreate,get,update, andcompletemethods. Addsession_requiredfield toStorePaymentMethodtype. AddStorePaymentSession,CreatePaymentSessionParams,UpdatePaymentSessionParams, andCompletePaymentSessionParamstypes.
0.2.0
Minor Changes
- Restructure SDK to support dual API namespaces:
client.*(Store API) andclient.admin.*(Admin API)
Internal
- Extract request infrastructure into
request.tswithcreateRequestFn()factory - Split monolithic
client.tsintostore-client.ts,admin-client.ts, and composedclient.ts - Add
StoreClientandAdminClientexports
0.1.8
Patch Changes
- Add addresses.markAsDefault() method to set a customer address as default billing or shipping
0.1.7
Patch Changes
- Add password, password_confirmation, accepts_email_marketing, and phone to customer.update() params type
0.1.6
Patch Changes
- Add digital_links to StoreLineItem type and zod schema, exposing digital download metadata (filename, content_type, access status) on line items
0.1.5
Patch Changes
- Rename StoreUser/AdminUser types to StoreCustomer/AdminCustomer to align with industry naming conventions and avoid future AdminUser model conflict
0.1.4
Patch Changes
- Fix automated release with npm Trusted Publishing
0.1.3
Patch Changes
- Fix release workflow for npm Trusted Publishing (OIDC)
0.1.2
Patch Changes
- Fix release workflow for npm Trusted Publishing
0.1.1
Patch Changes
Fix package license to MIT
First public release with basic Product Catalog features, Customer account, Cart and Checkout