Getting Started

Changelog

Dated, newest-first record of every change to the public storefront API. Read this before upgrading an integration.

View as Markdown

The storefront API is versioned by URL prefix (/v1). Within v1 every change is additive: fields, endpoints, optional parameters and enum values are only ever added. Each entry below names the date it shipped, what changed, and which pages of this reference were updated. The same entries appear in the repository changelog.

2026-11-12

Added

  • @borkol/content: borkolImage(media, {w, h}) crops on the value's focal point (&a=focal&fpx=&fpy= with h only), borkolImageLoader for next/image (absolute http(s) URLs only, any host), and cropPosition / focalStyle for CSS crops that match wsrv's cut; the Media type gains focal and variants as required fields (a hand-written Media object must now set both). New page Images. No API change.
  • focal and variants on every media value and media_list item (properties, repeater rows and sections): focal is the focal point {x, y} (0 to 1 from the left and from the top) set for this use of the image, else the image's default, else null; variants holds resized WebP URLs (thumb, card, detail). See Media values.
  • Webhook event media.updated with data {id, tags}: the alt text or the default focal point of an image changed while a published record shows it. A connected site's webhook subscribes to it, also for sites connected before. See Webhooks.
  • Preview: header X-Borkol-Preview on GET /v1/api/objects/types/{key}/records, .../records/by-slug/{slug} and GET /v1/api/objects/records/{id}. A valid preview token (60 minutes, one record of one store) serves its own record as its draft (staged values and slugs, whatever its status, its draft address in filter[path] and by-slug), adds status (draft, scheduled, changed, published) to that record only and answers with Cache-Control: private, no-store; every other record stays live. An invalid or expired token answers 403 {code: "invalid_preview"}; without the header nothing changes. See Preview.
  • GET /v1/api/objects/preview (scope objects:read, token in X-Borkol-Preview): {record_id, type_key, path, locale, expires_at}, the record a token opens and its draft address. See Preview.
  • POST /v1/api/objects/preview-tokens (scope objects:schema, {record_id?, locale?}): {token, expires_at, url}, the home page by default; 422 no_site or no_home. See Preview.
  • A preview budget: requests with a token valid for the store count against a separate 120 per minute per store; an invalid token counts against the live budget. See Errors and rate limits.
  • filter[path] on GET /v1/api/objects/types/{key}/records: the one record at a composed address such as /about/team (type prefix, parent addresses, own address) in the locale language, or an empty list. The root page record with the address home answers /. See Records.
  • fallback_locale on GET /v1/api/objects/types/{key}/records, .../records/by-slug/{slug} and GET /v1/api/objects/records/{id}: localized values missing in locale take this language's value in the response; 422 when it is not enabled. GET /v1/api/objects/records/{id} also reads locale for it. See Records.
  • updated_at on every public record: when the live record last changed; staged, unpublished edits do not move it. See Records.
  • PUT /v1/api/objects/schema (scope objects:schema): plan (dry_run=1) or apply a connected site's compiled manifest, with yes=1 for archives that hold values; answers {plan, applied, needs_yes, refused, manifest_hash}. See Schema and Manifest.
  • GET /v1/api/objects/schema and GET /v1/api/objects/section-types (scope objects:read): the connected site, the types and the active section types (key, name, icon, group, help, looks, fields, item_label_field, thumbnail_url). See Schema.
  • site on every section type of GET /v1/api/objects/section-types and of section_types in GET /v1/api/objects/schema: the connected site's key for the section types it pushed, null for starter and dashboard-made ones. See Schema.
  • List limits: a record_ref_list, media_list, repeater or tags field in a section type or a repeater row may carry config.min_items and config.max_items; record writes outside them answer 422 (At most 12 linked records are allowed.), and a schema push refuses new or tighter limits that stored lists break. See Manifest.
  • POST /v1/api/objects/media (scope objects:schema): upload a section type thumbnail, answers 201 {id, url}. See Schema.
  • Scope objects:schema, carried only by a connected site's push key and never grantable on an API key. See Authentication.
  • site and help on every type, and help on every property, of GET /v1/api/objects/types; section_type_keys on sections properties. See Types.
  • Webhook event object_schema.updated with data {site, manifest_hash, tags}. See Webhooks.
  • POST /v1/api/objects/seed?dry_run=&publish=&overwrite= (scope objects:write, multipart records plus files[<path>]): queue a create-only seed of starter content for the connected site's types, answers 202 {job_id}; 409 {code: "seed_locked"} for publish=1 or overwrite=1 once a person has edited that content. A {"ref": "<external_id>"} resolves in any reference field, inside sections and repeater rows too. GET /v1/api/objects/seed/{job_id} reports {phase, total, done, failed, finished, created, errors}. See Seed.
  • New chapter Build a site.
  • locale in the url of POST /v1/api/objects/preview-tokens (and of the dashboard's preview links) when a language was asked for: {site_url}{preview_path}?token=...&path=...&locale=.... The site's preview route forwards it to GET /v1/api/objects/preview, so the redirect lands on that language's address. See Preview.

Changed

  • A slug prefix in settings.slug.prefixes of PUT /v1/api/objects/schema (and in the dashboard) must be a path of slugs: /blog or /shop/bread, no ., .., empty segment or %, else 422. Only a changed prefix is checked; stored prefixes keep working. See Manifest.
  • Webhook events object_record.published, object_record.updated, object_record.unpublished and object_record.deleted carry tags (["borkol"]) in data. See Webhooks.
  • A record scheduled for a future published_at now also sends object_record.published within a minute of that time passing, when it becomes visible. Before, the moment the schedule came due sent nothing. See Webhooks.

Notes

  • A preview token stays valid for its full 60 minutes, even after the team member who opened it is removed or the push key is rotated, and its reads keep the preview budget for that time. See Preview tokens.
  • @borkol/content/next completes the preview: createFetchers (live reads inside 'use cache' with the borkol tag, preview reads uncached), previewHandler() for app/api/borkol/preview/route.ts, <BorkolPreview appOrigin /> for the borkol:ready and borkol:refresh messages, and withBorkol now turns on cacheComponents and sends noindex and no-referrer on preview URLs. borkol init writes the preview route and renders <BorkolPreview/> in the root layout; borkol doctor checks the preview round trip and cacheComponents. See Preview and The package.
  • New page The package: installing @borkol/content, borkol init, the CLI (push, seed, pull, doctor) with its environment and exit codes, withBorkol, webhookHandler, and the shared-cache caveat for sites on several instances. No API change.
  • Documentation fix: section type definitions are no longer described as dashboard-only and private. They are seeded or pushed by a connected site and readable through GET /v1/api/objects/section-types. See Sections values.

2026-11-11

Added

  • GET /v1/api/commerce/categories: every node now carries image (image object or null), meta_title and meta_description (string or null). See Categories.
  • GET /v1/api/commerce/products: new optional sort=manual parameter; with filter[category] it returns the products in the merchant's manual order for that category, products reached only through a subcategory after them, newest first. See Products.
  • Webhook events product.created, product.updated, product.deleted, category.created, category.updated, category.deleted, contact.created, contact.updated, contact.deleted, with their data fields. Merchants can now redeliver a logged delivery (a new delivery with the same event and data, its own created_at) and rotate an endpoint's signing secret. See Webhooks.

Changed

  • GET /v1/api/objects/types/{key}/records answers 422 with a q validation error when q is sent as an array (?q[]=x), instead of a 500. See Records.
  • GET /v1/api/objects/types/{key}/records q now also searches email and phone properties, the url and label of link properties and the text of richtext properties (tags removed). See Records.
  • API keys can now carry an expiry set by the merchant; an expired key gets 401 {"message": "Unauthenticated."} like a revoked one. A merchant can also change a key's scopes in place; the change applies on the next request with the same token. See Authentication and Errors and rate limits.

Notes

  • Withdrawn: GET /v1/api/sites/route, GET /v1/api/sites/site, GET /v1/api/sites/pages and the scope sites:read, published earlier on 2026-11-11, are removed together with the Sites chapter. They were live for less than a day and no API key carried sites:read, so no integration is affected. This is a one-time exception to the additive rule within v1.
  • Documentation fix: the module-disabled error no longer claims to win over the scope check. Which 403 comes first depends on the route. See Module not enabled.

2026-11-08

Added

  • settings.menu ({placement, icon, position}), settings.singleton and settings.hierarchical, and system_key, on every type of GET /v1/api/objects/types. See Types and Menu, single records and subpages.
  • parent_id and position on every record of GET /v1/api/objects/types/{key}/records, GET /v1/api/objects/types/{key}/records/by-slug/{slug} and GET /v1/api/objects/records/{id}. See Records.
  • filter[parent] (root or a record id) and sort=position on GET /v1/api/objects/types/{key}/records. See Records.
  • The standard Pages type: every store with Objects has the type page with the core properties title, body, seo_title, seo_description and social_image. See The standard Pages type.

Changed

  • The richtext allowlist grows from a handful of elements to the full table in Rich text values: headings 1 to 6, u, s, sub, sup, blockquote, hr, tables, figure, figcaption, pre, code, class and id tokens, title on links and images, target="_blank" with rel="noopener noreferrer", and width, height and data-media-id on img. Every write is cleaned by this one policy, so a value may now carry markup the old list removed.
  • On a public read, an img with a data-media-id of public media of the store gets the current media src (and width and height when missing); an id that is not the store's is dropped. See Rich text values.

Notes

  • Storefronts render richtext as HTML. Sanitizing it again and setting a Content Security Policy is recommended.

2026-10-29

Added

  • variants[].image_id (uuid or null) and variants[].image (image object or null) on GET /v1/api/commerce/products and GET /v1/api/commerce/products/{id}: a variant's own image, one of the product's media items, so image_id matches an entry in images on the detail endpoint. Products imported from Shopify get it from the Variant Image column. See Variant object.

2026-10-24

Notes

  • Documentation fix, nothing changed in the API. The webhook event catalog now documents the eight subscribable sales events that WebhookDispatcher has allowed since the sales module shipped: quote.offered, quote.accepted, quote.declined, quote.expired ({id, number, status, origin, total_amount, currency, email, valid_until, signed_at}) and invoice.sent, invoice.paid, invoice.overdue, credit_note.sent ({id, number, kind, status, total_amount, paid_amount, open_amount, currency, email, issue_date, due_date}), with when each fires. See Webhooks.
  • The scope table lists every grantable scope and the routes that check it: catalog:read (and the catalog:write, configurator:* pair), contacts:read / contacts:write with customers:* as their former names, sales:read / sales:write, and which scopes are grantable but used by no /v1/api route yet. See Authentication.

2026-10-18

Added

  • GET /v1/api/forms/address-lookup (scope forms:read): country=NL, postal_code, house_number and an optional addition answer 200 {street, city, postal_code, lat, lon} (not wrapped in data). Errors: 404 (No address found.), 422 on country, postal_code or house_number, 503 (Address lookup is temporarily unavailable.). 60 requests per minute per store, then 429. See Address lookup.
  • Field kind address on forms. config is {country, lookup?, service_area?}; the answer is {postal_code, house_number, addition?, street, city, lat?, lon?} and a bad value answers Must be a valid address. on answers.{key}. service_area is {origin: {lat, lon, label?}, radius_km, mode: notice | block, message}. See Field kinds.
  • meta.address on a stored submission: per address field with a service area, {distance_km, in_area}. With mode: "block", an address known to be outside the area answers 422 on answers.{key} with the field's message. See Address fields and the service area.
  • options_source on choice fields: {object_type, label, description?, sort?, limit?}. GET /v1/api/forms/{key} fills config.options from the publicly visible records of the collection on every request, and a submission is checked against them. See Field kinds.
  • Length limits on the parts of an address answer, after trimming: postal_code 12 characters, house_number 20, addition 10, street and city 255 each. A longer part answers Must be a valid address. on answers.{key}, in check() of @borkol/forms too. See Field kinds.
  • @borkol/forms 0.2.0: the persistKey option on BorkolForm and useBorkolForm keeps a visitor's draft in localStorage for up to 30 days, and formatAddress, normaliseAddress and distanceKm are exported. See The @borkol/forms package.

Changed

Notes

  • address is a new field kind: a renderer that picks a component by kind needs one for it. Treat an unknown kind as additive, as always within /v1.
  • On GET /v1/api/forms/{key}, config.service_area.message of an address field is a string in the requested language (with the usual fallback), like every other text of the definition. See Field kinds.

2026-10-16

Added

  • code: "module_disabled" and module (the module key) on the module-disabled error body, on both the 403 and the 404 variant. error is unchanged, so existing checks keep working. See Module not enabled.

2026-10-13

Added

  • Forms. A new forms module and chapter. GET /v1/api/forms/{key}?locale= (scope forms:read) returns the published version of an active form wrapped in data: {key, version, name, steps, settings: {thank_you: {message, redirect_url}}}, every text resolved to one language with a fallback to the store's default language. Steps and fields carry show_if rules (equals, not_equals, contains, filled, empty, one level of all or any); field kinds are text, textarea, number, email, phone, date, select, link, choice, consent, hidden, file, heading and paragraph. See Forms and Load a form.
  • POST /v1/api/forms/{key}/submissions (scope forms:write) checks the answers against the published version with the same rules, drops answers to hidden fields, stores the submission and answers 201 {"data": {"number", "thank_you": {message, redirect_url}}}. Errors are the 422 envelope keyed answers.{key} and files.{key}; a honeypot with any value other than an empty string or null answers 201 with number: null and stores nothing. See Submissions.
  • X-Borkol-Visitor-Ip header on the forms routes: the per-form hourly limit (1 to 100 per visitor, default 5) counts per visitor address, including attempts that fail with 422, and answers 429 {"message": "Too many submissions. Try again later."}. Without a valid header the connecting address is used. See Visitor IP and the hourly limit.
  • Scopes forms:read and forms:write, and forms as a module key in 403 {"error": "Module not enabled: forms"}. Keep forms:write keys on your server. See Authentication.
  • Webhook events form.published ({key, version}) and form_submission.created ({id, number, form_key, status, locale, name, email, created_at}, never the answers). See Webhooks.
  • POST /v1/api/forms/{key}/uploads (scope forms:write, multipart field and file) stores one file for a file field privately and answers 201 {"data": {"token", "name", "size"}}. The type is judged by content (image: JPEG, PNG, WebP, HEIC/HEIF; pdf: PDF), the size against the field's max_mb (at most 20 MB); errors are 422 on field or file. 30 uploads per form per visitor per hour, then 429 {"message": "Too many uploads. Try again later."}. Tokens are single use, bound to the form and field, and expire after 24 hours. See Uploads.
  • files on POST /v1/api/forms/{key}/submissions: field key to a list of upload tokens, claimed with the submission; a token that is unknown, of another form or field, used or expired answers 422 on files.{key} (This upload is invalid or has expired. Upload the file again.). See Submissions.
  • Cloudflare Turnstile on forms: settings.turnstile_site_key on GET /v1/api/forms/{key} when the form has Turnstile on and the store set both keys, and turnstile_token on the submission, verified after the hourly limit and before the answers. A failed check answers 422 on turnstile; tokens are single use, so reset the widget after every 422. See Turnstile and Load a form.
  • The @borkol/forms package: types, the visibility and answer rules (visible, check, prefill) and a headless React renderer (@borkol/forms/react) with upload, turnstileToken, onServerErrors and a formError component. See The @borkol/forms package.

Notes

  • A form with Turnstile on is not checked until the store has set both Turnstile keys: turnstile_site_key is then absent and submissions are accepted without the check.

2026-10-12

Added

  • Filtering a tags, record_ref_list or record_ref property with filter[{propertyKey}]: a tag, or a record id, that the stored list contains (a reference matches by equality). See Records.
  • settings on every object type of GET /v1/api/objects/types: {publishable, slug?}, where slug is {source, prefixes} and only present when the type gives its records addresses. localized (boolean) and config (object or null) on every property definition. See Types.
  • Property types richtext, datetime, media, media_list, link, icon, token_variant, color, email, phone, tags, record_ref, record_ref_list and a one-level nested repeater for object properties, next to the existing types. Properties can be localized (not number, money, boolean, date, datetime, customer, color, media_list, record references, repeater, sections; a media_list carries alt and caption as locale maps instead). See Objects.
  • published_at on every record, and slugs (language tag to address) on the records of a type that has addresses, limited to the languages enabled for the store. See Records.
  • GET /v1/api/objects/types/{key}/records/by-slug/{slug}?locale= fetches one published record by its address in one language (locale defaults to the store's default language; 422 on locale when it is not enabled, 404 when nothing visible matches). See Records.
  • Webhook events object_record.published, object_record.updated, object_record.unpublished and object_record.deleted, with the payload {id, type_key, slugs, published_at}. They fire on real transitions only; a scheduled record reaching its time sends nothing. See Webhooks.
  • GET /v1/api/redirects also accepts tenant:read and objects:read, and redirects to record addresses the same way it redirects products and categories (a record address change records a redirect only when the type has a non-empty address prefix for that language). See Redirects and sitemap.
  • include=refs (or include[]=refs) on GET /v1/api/objects/types/{key}/records, GET /v1/api/objects/records/{id} and the by-slug endpoint expands record_ref and record_ref_list values into {id, type_key, values, slugs?, published_at}, one level deep. Targets that are not publicly visible are dropped (null for a reference, removed from a list); unknown include tokens are ignored. See Records.
  • locale query parameter on GET /v1/api/objects/types/{key}/records: localized filter[...], sort and q use that language. An enabled-language tag is required to take effect; any other value falls back to the store's default language. See Records.
  • Object records in GET /v1/api/sitemap: entries {type: "object_record", object_type, locale, path, lastmod, alternates}, one per publicly visible record, language and address, for types with a non-empty address prefix. See Redirects and sitemap.
  • GET /v1/api/business (scope tenant:read) returns the public business profile: trade and legal name, contact details, address, registration and VAT numbers, social_links ({platform, url, label}, 23 platforms), the default locale and content_locales. Banking, signer, sender and terms fields are never exposed, and a store without a profile answers 200 with nulls. See Business profile.

Changed

  • Media values are objects. A media value (a property, or a field inside a section or repeater row) is now {id, url, alt, width, height, mime_type} or null when the item is missing or private. It used to be the media id as a string. A media_list value is a list of the same objects, each with a caption; items that are missing or private are dropped from the list. Fetching the media id yourself is no longer needed. See Objects.
  • Drafts and scheduled records are hidden. On a type with settings.publishable: true, drafts and records with a published_at in the future are left out of the record list and answer 404 on GET /v1/api/objects/records/{id} and by slug. filter[status] is not accepted publicly (422 on filter). Types that are not publishable are unchanged. See Records and Publishing and visibility.
  • Localized values are cut down to the enabled languages. A localized property or field returns a map from language tag to value containing only the languages enabled for the store. A stored empty sections value is returned as []; sections of a type that no longer exists are left out. See Localized values.
  • GET /v1/api/redirects and GET /v1/api/sitemap are served by the platform. Same paths, same responses. They no longer require the catalog module (no more 403 Module not enabled: catalog), accept any of the catalog:read, commerce:read, tenant:read or objects:read scopes, and the sitemap lists the entries of the enabled modules only (a store without the catalog module gets an empty list). The reference page moved from Catalog to Getting started. See Redirects and sitemap.
  • Localized filters, sort and search follow locale. Filtering or sorting a localized property, and q on a localized text property, now read the value in the requested language (the store's default language when locale is absent) instead of the raw stored map. See Records.
  • Translations without the default language are kept. A translatable property or field that is not required and has no entry for the store's default language, for example {"en": "Dusk"} with default nl, is stored as written instead of being dropped; only a map whose entries are all empty still counts as empty. A required one still answers 422. The richtext allowlist also gains img with src and alt only (https:// or root-relative / sources; any other img is removed). See Objects.

Notes

  • The record shape grew by published_at (always) and slugs (types with addresses). Treat unknown fields as additive, as always within /v1.

2026-10-11

Added

  • capability (standard or made_to_measure) and capability_active (boolean) on the product object of GET /v1/api/commerce/products and GET /v1/api/commerce/products/{id}. capability says how the product goes into a cart; capability_active is false while the module that sells it (commerce for standard, configurator for made_to_measure) is disabled. See Products.
  • unit on the product object (piece, kg, g, l, m, m2, m3, hour) and on every order line (lines[].unit, the product's unit at order time). See Products and Orders.
  • Product fields compare_at_amount, barcode, weight_grams, requires_shipping, track_stock, returnable, lead_time_days, tags and social_image, and variant fields barcode and weight_grams. See Products.
  • GET /v1/api/redirects?path= returns {data: {from_path, to_path, status}} for a product or category path whose slug changed (404 when none), and GET /v1/api/sitemap lists every active product and category path as {data: [{type, path, lastmod}]}. Both take catalog:read or commerce:read and the catalog module. See Redirects and sitemap.
  • A top-level code on the 422 a cart line add refuses with (POST /v1/api/commerce/carts/{id}/lines): CAPABILITY_INACTIVE, INVALID_CONFIGURATION or NOT_PURCHASABLE, next to the unchanged message and errors. See Cart lines and Errors and rate limits.
  • attributes.returnable and attributes.lead_time_days on every order line placed through checkout or an accepted quote; a made-to-measure line is never returnable. See Orders.

Changed

  • Breaking: type is removed from the product object. Use capability instead, plus requires_shipping and track_stock: former simple and variable products are standard; configurable products are made_to_measure (and not returnable); digital, license and subscription products are standard with requires_shipping: false and track_stock: false. See Products.
  • Breaking: quantities are decimal. Cart line, order line and quote line quantity, availability available, the checkout and quote-accept out_of_stock[].requested and .available, and the stock.adjusted webhook quantity are JSON numbers that may be fractional (0.75, 12). quantity on POST /v1/api/commerce/carts/{id}/lines and PATCH .../lines/{lineId} accepts up to three decimals; a product with unit piece still takes whole numbers only (422 on quantity). See Cart lines, Carts, Orders, Availability and Webhooks.
  • Breaking: the configurator endpoints (GET /v1/api/commerce/configurator/products/{id}/schema, POST .../quote) are gated by the configurator module: without it they answer 403 {"error":"Module not enabled: configurator"} (was catalog). They answer 404 for a product whose capability is not made_to_measure. See Configuration schema, Price quote and How the configurator works.
  • Configurator dimensions must be whole numbers; a fractional value used to be truncated and is now refused. The quote endpoint answers 422 on dimensions.{key} ({Label} must be a whole number.) in its plain validation envelope, without a top-level code; a cart add answers the same error with code INVALID_CONFIGURATION. See Price quote and Cart lines.
  • Breaking: components[].qty in the configuration snapshot on cart and order lines is an exact decimal string ("2.16"), was an integer. See Carts and Orders.
  • Breaking: POST /v1/api/commerce/carts/{id}/quote-request belongs to the sales module and answers 404 {"error":"Module not enabled: sales"} when the store has sales disabled. Quote triggers fire only when sales is enabled and quote requests are switched on; otherwise requires_quote is always false and checkout never refuses with QUOTE_REQUIRED. See Quote requests, Checkout and Errors and rate limits.
  • purchasability is set by the sales module and reads direct when the merchant set nothing; it is reported even when sales is disabled. A quote product can be added to a cart: the cart reports requires_quote: true with reason product_purchasability, checkout refuses with 409 {"code": "QUOTE_REQUIRED", "reasons": [...]}, and the cart goes through the quote request instead. A contact group's always-quote setting is now a sales setting; the customer_group reason is unchanged. See Products and Quote requests.
  • stock_status is untracked for a product with track_stock: false and all of its variants, even when stock rows exist, on the product object and on GET /v1/api/stock/availability and GET /v1/api/stock/products/{productId} (tracked: false). See Products and Availability.
  • Checkout requires shipping_method_id when the cart holds a line whose product has requires_shipping: true (was: a product of type simple, variable or configurable). See Checkout and Shipping methods.
  • Quote lines created from a cart carry unit pcs for a product sold by the piece and the product's unit otherwise (was null). See Quote requests and Quote tokens.
  • Accepting a quote in order mode reserves stock through each product's line handler at the quoted price, so a made-to-measure line deducts its components. Only a real shortage refuses with OUT_OF_STOCK; a line whose product can no longer be sold converts without stock movement. See Quote tokens.

Deprecated

  • QUOTE_NOT_ORDERABLE (422) on POST /v1/api/sales/quotes/by-token/{token}/accept and POST /v1/api/commerce/quotes/by-token/{token}/accept is no longer returned: a quote with fractional line quantities converts to an order with those quantities. Keep tolerating the code, but expect never to see it. See Quote tokens.

Notes

  • The /v1 surface was restructured before any production consumer depended on it, so the breaking changes above ship inside /v1 instead of under a new URL version. From this release on, changes within /v1 are additive again.
  • Documentation fixes, nothing changed in the API: the product and category endpoints accept catalog:read or commerce:read and are gated by the catalog module (the reference named commerce:read and commerce); the order object's invoice_id and the full quote request response (origin, intro, terms, acceptance_mode, pdf_url, signed_at, signed_pdf_url, and the line fields kind, unit, description, tax_rate, unit_price) are now documented. See Products, Categories, Orders and Quote requests.

2026-09-17

Added

  • discount_total (money) and discount_breakdown (array or null) on the order object returned by POST /v1/api/commerce/carts/{id}/checkout, GET /v1/api/commerce/orders/{id} and GET /v1/api/commerce/my/orders. discount_total.amount is the goods discount applied at checkout (0 when none); discount_breakdown lists one {discount_id, name, code, kind, amount} entry per applied discount and is null when none applied. Both are additive; no existing field changed. See Orders and Checkout.
  • message on the OUT_OF_STOCK refusal of POST /v1/api/commerce/quotes/by-token/{token}/accept (order mode only). The 409 body now reads {"code": "OUT_OF_STOCK", "message": "Insufficient stock.", "out_of_stock": [...]}; the out_of_stock rows are unchanged. Additive, and the envelope now matches every other refusal on the endpoint (code + message). See Quote tokens.

Changed

  • POST /v1/api/commerce/carts/{id}/claim now merges every other active cart the customer owns into the claimed cart, not only the first one found. Each folded cart flips to merged and releases its stock holds, exactly as before; there is simply no longer an orphaned active cart left behind. See Claiming a cart and Storefront guide.
  • The claim merge carries identity across: the claimed cart keeps its own email and metadata when set and otherwise takes the merged cart's value, so a guest email captured before login is no longer lost. No field was added or retyped on the cart envelope. See Claiming a cart.

Notes

  • POST /v1/api/commerce/carts/{id}/lines: two simultaneous identical adds (same product, variant and configuration) used to make the loser fail with a 500. The loser now folds its quantity into the winning line and returns the same 201 envelope as before, still clamped to max_quantity_per_line. See Cart lines.
  • X-Customer-Token handling is now consistent with the documented rule "must resolve to a customer, else 401": a token past its expires_at, or older than the platform session window, no longer resolves, so it cannot claim or check out a customer-owned cart. Log in again to obtain a fresh token. See Claiming a cart and Checkout.
  • POST /v1/api/customers/forgot-password still answers 202 with the same body for known and unknown addresses; it now also does the same amount of queue work on both paths, so the response time no longer hints at whether an account exists. See Passwords.
  • A bogo discount now grants its get quantity once per qualification instead of once per cart: the discounted units are get_quantity × floor(qualifying buy quantity ÷ minimum buy quantity), capped at the quantity of the cheapest get line. The discounts[].amount on the cart and the order's discount_total grow accordingly; no field or enum value changed. See Cart discounts.
  • Products of type configurable are priced by the configurator engine only; customer-group and tier price rows left over from a type change no longer surface in price, quantity_tiers or the cart line price for such a product. Simple products are unaffected. See Products.
  • POST /v1/api/commerce/quotes/by-token/{token}/accept: the QUOTE_NOT_OFFERED refusal raised while the order is being built (a race with another accept of the same quote) now carries the documented message Quote is not awaiting a response (status: ...) instead of Quote cannot be accepted in its current status (...). Code and status are unchanged. See Quote tokens.

2026-09-04

Changed

  • A configurator choice whose requires rule cannot be satisfied by the other published choices is now omitted from GET /v1/api/commerce/configurator/products/{id}/schema instead of being published and then rejected at quote time. The filtering propagates, so every choice the schema exposes can be selected and priced. See Configuration schema and How the configurator works.
  • POST /v1/api/commerce/configurator/products/{id}/quote applies the same availability rule: selecting a choice the schema no longer publishes fails with the existing generic choices message, and the per-choice choices.{choiceId} messages now name only choices that are still available, so a deactivated choice is never disclosed in an error. See Price quote.
  • A price matrix with a condition on a choice that is not available is now omitted from price_matrices instead of being listed with a shortened conditions array. Such a matrix can never become eligible, so the engine treats the configuration as not_priceable rather than falling back to it. See Configuration schema.

Notes

  • Documentation fix on both configurator endpoints: they accept an API key carrying either the catalog:read or the commerce:read scope (unchanged since 2026-08-25), and their module gate is the catalog module, so the 403 body reads {"error":"Module not enabled: catalog"}. The reference named commerce:read and commerce for both. Nothing changed in the API. See Price quote, Configuration schema and How the configurator works.

2026-08-26

Added

  • Customer endpoints are now also served at /v1/api/contacts/*; the previous /v1/api/customers/* paths remain as a permanent alias with identical request and response shapes. New API-key scopes contacts:read and contacts:write are available; existing customers:read / customers:write keys keep working unchanged. See Contact accounts.
  • The contact profile (GET/PATCH /v1/api/contacts/me, also .../customers/me) now includes kind (person or company), company_name, registration_number, vat_id, external_id, and display_name. These fields are read-only through the storefront API. email can now be null for any merchant-created contact; storefront registration still requires it. See Profile.
  • The address type field accepts a new value, work, alongside shipping and billing. See Addresses.
  • contact_id on order and merchant quote objects: the same value as customer_id, under the canonical name going forward. customer_id is unchanged and stays. The token-addressed quote object carries neither. See Orders and Checkout.
  • The quote-token endpoints are now also served at /v1/api/sales/quotes/by-token/{token} (GET, /accept, /decline). /v1/api/commerce/quotes/by-token/* keeps working, identically and permanently; both paths accept a key with sales:read/sales:write or commerce:read/commerce:write. See Quote tokens.
  • GET /v1/api/{sales,commerce}/quotes/by-token/{token} returns origin, intro, terms, scope_items[], acceptance_mode, pdf_url, signed_at and signed_pdf_url; each entry of lines[] gains kind, unit, description and tax_rate. See Quote tokens.
  • POST /v1/api/{sales,commerce}/quotes/by-token/{token}/accept accepts an optional signature body parameter — a PNG data URL of at most 2 MB, required when the store's acceptance_mode is signature — and returns signed_pdf_url. New error codes SIGNATURE_REQUIRED (422), SIGNATURE_INVALID (422), QUOTE_NOT_ORDERABLE (422), ALREADY_CONVERTED (409) and QUOTE_EXPIRED (410). See Quote tokens.
  • New scopes sales:read and sales:write, accepted anywhere commerce:read/commerce:write is accepted on the quote-token endpoints. See Authentication.
  • A quote's status may now be draft: merchant-written quotes exist before they are sent. A draft has no number and is never reachable by token.

Changed

  • Customer endpoints no longer require a module to be enabled; the 403 Module not enabled: customers response can no longer occur. See Customer accounts and Errors and rate limits.
  • Quote line quantity (merchant quotes and the token-addressed quote object) is documented as number instead of integer: product lines still always report a whole number, but service and material lines can now carry a fractional quantity (hours, metres). Every previously-integer value keeps serializing exactly as before. See Quote requests and Quote tokens.
  • Accept and decline on the quote-token endpoints are throttled to 30 requests per minute, keyed by the caller's IP. See Errors and rate limits.

Notes

  • lines[].quantity on the quote-token endpoints was always a JSON number and still is; it may now be fractional (two decimals). No field was removed, renamed or retyped.

2026-08-25

Changed

  • Public catalog routes (/v1/api/commerce/products, /v1/api/commerce/categories, /v1/api/commerce/configurator/*) now accept an API key carrying either the catalog:read or the commerce:read scope. Existing keys keep working unchanged. See Authentication.
  • New API-key scopes catalog:read and catalog:write are available to stores with the Catalog module enabled. Scope names for every other module are unchanged.

Notes

  • No request parameter, response field, status value or error envelope changed in this release.