Changelog
2026-11-12: fixes from partner testing
@shoppable/checkout 0.2.1
validateCouponis deprecated. It now reports a coupon valid only when the server confirms it, and throws on session or server failures instead of treating them as valid. Apply coupons throughprepareCheckoutinstead.toCheckoutAddresssplits a name at the last word, the same rule Shoppable uses when it places the order.CartConfigurationmarksstripePublishableKey,isTestMode,isActiveandcurrencyas always present, so the documented code compiles without casts.
@shoppable/checkout-react 0.1.1
- Now ships a README.
API
- A mistyped or invalid cart token now returns
401with “The cart token is not valid”, instead of a500.
Docs and examples
- Every payment sample passes
toStripeShipping(value)asconfirmParams.shipping, and the Quickstart is complete from token to placed order. - The home page explains how Shoppable checkout works, with a link to the Developers page and a short glossary.
- Cart Builder copy is HTML from your team; the examples and the Payments guide sanitize it.
- The classic cart example keeps your store’s name in one place and shows the substitution checkbox only when your cart allows it.
2026-11-11: server-priced checkout
The server now computes every amount in a checkout. Clients send what the shopper chose and display the totals that come back; totals sent by a client are ignored. See Cart and pricing.
API
POST /prepare-checkoutaccepts{ items: [{ upc, merchantId, quantity }], coupons }and returns a priced checkout: line prices from the catalog, shipping per retailer (free above its threshold), coupon discounts, an estimated tax, thetotaland theauthorizationAmount. Pass_idto re-price an existing checkout.PATCH /update-checkout/{checkoutId}returns the checkout re-priced. Unknown fields are rejected with422.POST /create-intent/{checkoutId}always authorizes the stored checkout’s server-priced amount.422responses from prepare-checkout list each failing line inerrors, with areasonofout_of_stock,quantity_unavailable,price_increasedorinvalid_line.- A checkout belonging to another Shoppable account answers
404“Checkout not found”. GET /cart-configurationreturnsstripePublishableKeyfor the token’s mode.
@shoppable/checkout 0.2.0
- Breaking:
prepareCheckouttakes aPrepareCheckoutRequest({ items, coupons, ... }) and resolves with aPricedCheckout.updateCheckoutalso resolves with aPricedCheckout. - New
placeOrder: authorize, confirm with your Stripe UI, and place the order in one call. See Payments. - New
validateAddress, which resolves with{ valid, address }or{ valid, message }instead of throwing. - New
ShoppablePaymentErrorfor payments Stripe did not confirm. - New helpers:
cheapestOffer,fromStripeAddressandtoCheckoutAddress. - Plain-text error responses become the error’s
message. - On a top-level page the SDK sends the page’s own origin. It used to send the referrer, so
shoppers arriving from another site (a search result, an ad) were refused with a
403. - A script build for pages without a bundler, served at
https://developer.shoppable.com/sdk/checkout@0/index.global.jsand exposingwindow.Shoppable. - While the npm release is pending, both packages install from tarball URLs on developer.shoppable.com (see Install).
@shoppable/checkout-react 0.1.0
- New
ShoppableProvider,useShoppable,useProducts,CartProvideranduseCart. The cart re-prices on the server on every change and persists inlocalStorage. See React. - Replaces the earlier
useCart(client)scaffold.useShoppableCheckoutis deprecated in favor ofShoppableProvider.
API 2026-06-16
- Initial public Checkout API surface: configuration, product availability, prepare/create-intent/update/complete checkout, coupon validation, and AI cart lander reads.
@shoppable/checkout 0.1.0
- First release of the isomorphic checkout SDK.
- Resilience: automatic retries with backoff (network/timeout/429/5xx),
auto-attached idempotency keys on mutations, configurable timeouts, and
AbortSignalsupport. - Granular error types (
ShoppableAuthError,ShoppableValidationError,ShoppableRateLimitError,ShoppableServerError,ShoppableNetworkError,ShoppableTimeoutError) carryingstatus,ref, andrequestId. - Session lifecycle: inject an existing session token, transparent re-mint and
retry on expiry,
onSessionTokencallback, andgetSessionToken(). - Wire types generated from the OpenAPI spec, guarded by a compile-time contract test so the SDK and API cannot drift.
- API-version pinning via the
Shoppable-Versionheader (apiVersionoption). - MIT licensed.