Skip to content

Changelog

2026-11-12: fixes from partner testing

@shoppable/checkout 0.2.1

  • validateCoupon is 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 through prepareCheckout instead.
  • toCheckoutAddress splits a name at the last word, the same rule Shoppable uses when it places the order.
  • CartConfiguration marks stripePublishableKey, isTestMode, isActive and currency as 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 401 with “The cart token is not valid”, instead of a 500.

Docs and examples

  • Every payment sample passes toStripeShipping(value) as confirmParams.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-checkout accepts { 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, the total and the authorizationAmount. Pass _id to re-price an existing checkout.
  • PATCH /update-checkout/{checkoutId} returns the checkout re-priced. Unknown fields are rejected with 422.
  • POST /create-intent/{checkoutId} always authorizes the stored checkout’s server-priced amount.
  • 422 responses from prepare-checkout list each failing line in errors, with a reason of out_of_stock, quantity_unavailable, price_increased or invalid_line.
  • A checkout belonging to another Shoppable account answers 404 “Checkout not found”.
  • GET /cart-configuration returns stripePublishableKey for the token’s mode.

@shoppable/checkout 0.2.0

  • Breaking: prepareCheckout takes a PrepareCheckoutRequest ({ items, coupons, ... }) and resolves with a PricedCheckout. updateCheckout also resolves with a PricedCheckout.
  • 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 ShoppablePaymentError for payments Stripe did not confirm.
  • New helpers: cheapestOffer, fromStripeAddress and toCheckoutAddress.
  • 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.js and exposing window.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, CartProvider and useCart. The cart re-prices on the server on every change and persists in localStorage. See React.
  • Replaces the earlier useCart(client) scaffold. useShoppableCheckout is deprecated in favor of ShoppableProvider.

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 AbortSignal support.
  • Granular error types (ShoppableAuthError, ShoppableValidationError, ShoppableRateLimitError, ShoppableServerError, ShoppableNetworkError, ShoppableTimeoutError) carrying status, ref, and requestId.
  • Session lifecycle: inject an existing session token, transparent re-mint and retry on expiry, onSessionToken callback, and getSessionToken().
  • 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-Version header (apiVersion option).
  • MIT licensed.