API reference
Shopamine platform

API changelog

Every documented change to the public REST API v2.1, one entry per release: breaking changes, deprecations, additions and fixes. Subscribe to the feed below to find out without checking back here.

Subscribe

This page is also published as an Atom and an RSS feed, generated from the same entries below, so your own tooling can watch it directly, no account or mailing list required.

changelog.atom
An Atom feed per RFC 4287, one <entry> per release.
changelog.rss
The same releases as an RSS 2.0 feed, for tooling that only reads RSS.
curl
curl -s https://misc.shopamine.com/restapi/changelog.atom
curl -s https://misc.shopamine.com/restapi/changelog.rss

November 10, 2026

26.4.2
  • FIXED POST /v1/items, POST /v1/items/{id}, bulk requests included: the erp_sync in the response is the value stored after the request is committed. It could show the old value when the same request linked categories or a parent. erp_sync is also re-checked when a category or brand it depends on changes.
  • FIXED POST /v1/images: when the image file cannot be stored, no image record is left behind. Uploading the same file again now retries instead of returning an image without a file.

November 9, 2026

26.4.1
  • ADDED POST /v1/promotions/{id}/coupons and the coupon update and bulk requests: a new or changed coupon_code must be at least 6 characters long, otherwise the request is refused with 400. Existing shorter codes keep working when saved unchanged.
  • FIXED A request body that cannot be parsed (invalid JSON, an unknown field or enum value) is answered with 400 and an Invalid request body: message instead of 500.
  • ADDED Webhook URLs that are not http or https, or that point to a private or internal address, are refused with 400 when the webhook is saved.
  • ADDED POST /v1/images from a source URL: a source that cannot be fetched, including one at a private or internal address, is answered with 400 and could not fetch image source. The status of the remote server is no longer passed on.
  • ADDED Purchase documents: a location that is neither a file path in the store nor an absolute https:// URL is skipped, and so is base64 content over 20 MB.

November 3, 2026

26.3.19.1
  • FIXED GET /v1/items, POST /v1/items/{id}: the documentation said supplier prices (cost_price, list_price, wholesale_price, distributor_rrp and the prices in suppliers) are always tax-exclusive. They use the same tax basis as the item's prices: tax-inclusive when the item's tax_inclusive is true, otherwise net (an item with no setting of its own follows the store's price 1 default). Read tax_inclusive on the same item to know which. The API itself is unchanged.
  • DEPRECATED Timed discounts, supplier_config.list_price: accepted but ignored. It is still returned and changes no price.

October 28, 2026

26.3.19
  • ADDED GET /v1/items: read-only erp_sync boolean, true when the item meets its ERP sync condition. GET /v1/items/list accepts ?erp_sync=true|false; any other value returns 400.
  • ADDED GET /v1/purchases, POST /v1/purchases/{id}: supplier_reference holds the supplier's reference for a purchase. It is emitted only when set and is not shown to the buyer.
  • ADDED A request with a deactivated or expired API key is refused with 401 and an error message.
  • ADDED Payment option type corvus_pay.
  • ADDED Choices created without order_weight are placed next to their closest neighbour in the spec's order. Sending order_weight still places the choice exactly where you say.
  • FIXED POST /v1/users/{id}: locked now does what it says. true locks the user and false unlocks them; the two values were swapped.

October 6, 2026

26.3.18
  • BREAKING GET /v1/items: the root list_price of the selected supplier is now its Distributor RRP when one is set, and the supplier's ppc otherwise. The value changes only where a rule, a fixed value or a supplier price list sets the Distributor RRP. If you need the price as the supplier's feed delivers it, read ppc in the suppliers entry whose supplier_id equals current_supplier_id.
  • ADDED GET /v1/items: distributor_rrp and distributor_rrp_mode (LINKED, FIXED or PRICE_LIST) at the root for the selected supplier and on each supplier row, when set. computed_prices can report the new source SUPPLIER_DISTRIBUTOR_RRP.
  • ADDED POST /v1/items/create, POST /v1/items/{id}, supplier rows in suppliers: distributor_rrp fixes the row's Distributor RRP, and distributor_rrp_mode LINKED makes it follow ppc again, and FIXED without a value keeps the current value as the fixed one. Any other mode, including PRICE_LIST, is rejected with an error.

October 5, 2026

26.3.17
  • ADDED GET /v1/purchases: purchases placed at checkout by a buyer who was then a member of a company carry company_id and a company object (id, name, and when set external_id and tax_code), also in purchase webhooks. name and tax_code are as they were when the order was placed. Purchases placed before this release do not have these fields.
  • ADDED GET /v1/purchases/list: new filters company_id, company_external_id (the company's ERP customer number) and company_tax_code (ignores spaces, dots, dashes and case). They combine with each other and with status.
  • FIXED Promotions, single_use_per_user: the rule now also applies to promotions without coupons. Previously only coupon promotions enforced it.
  • FIXED POST /v1/promotions/create, POST /v1/promotions/{id}: an invalid single_use_per_user or guest_single_use_handling value now returns 400 with the field name instead of 500.

September 29, 2026

26.3.16.1
  • FIXED GET /v1/items: computed_prices entries resolved from the item's own price (ITEM_P1/ITEM_P2/ITEM_P3) now split net/gross using the item's own tax-inclusive flag, falling back to the store default only when the item leaves it unset. Previously the store default was always used regardless of the item's flag, so items whose tax basis differed from the store default could get net/gross figures computed on the wrong basis.

September 28, 2026

26.3.16
  • ADDED GET /v1/purchases: basket-level entries in discounts_breakdown now carry calculation_mode and a per-tax-class lines breakdown (net, tax and gross in whole cents), flagged lines_derived when reconstructed from stored totals rather than stored directly.
  • ADDED GET /v1/items: a change to the store's computed_prices configuration now counts as a change to every item it reaches, so updated_after polls pick it up like any other update instead of missing it.

September 16, 2026

26.3.15
  • BREAKING POST /v1/purchases/{purchase_id}: setting status to ready_to_ship can now be rejected on stores that use an order-management integration, with 400 when the integration hasn’t confirmed the order yet or 503 when it couldn’t be reached. A request that previously always succeeded may now receive one of these responses; treat 503 as retryable and 400 as a sign to resolve the order in the integration first.

September 2, 2026

26.3.12
  • BREAKING POST /v1/users/{user_id}: writing a gdpr_permissions entry no longer accepts a caller-supplied mailchimp_id. The value is now always taken from the store's own permission definition, and one sent in the request is silently ignored. Stop sending mailchimp_id on write; it has no effect.
  • FIXED GET /v1/users/{user_id}: gdpr_permissions now always lists every permission the store currently has enabled, and never one the store has disabled. Before, the whole array came back empty for a user who had not yet answered any permission, and a permission the store had since switched off was still reported as declined. Both were read straight from the response, not from the account settings, so an integration that used them to decide whether to ask a customer again was acting on wrong information.

August 26, 2026

26.3.11
  • BREAKING GET /v1/*/list: a limit above an entity's maximum page size is now rejected with 400 instead of being silently reduced to the maximum. A client paging with a too-large limit used to receive a smaller page of data with no indication it was truncated, and its next offset would skip the rows in between; it now gets an explicit error. Check the maximum page size documented for the entity you are paging and clamp your own limit to it before sending the request.

August 25, 2026

26.3.10
  • FIXED GET /v1/items/list: updated_after and each item's date_updated now include supplier-driven price changes. Before, a consumer polling with updated_after could miss a wholesale-price update pushed through a supplier sync indefinitely, since neither the filter nor the timestamp moved for it.
  • FIXED GET /v1/purchases/{id}: fetching a purchase left in a partially committed state (for example after a failed checkout) no longer errors. The response now omits the shipping cost when it can't be resolved instead of failing the request.

July 29, 2026

26.3.6
  • ADDED X-Shopamine-Webhook-Event: a manually re-triggered purchase webhook now carries this header (create or update) alongside X-Shopamine-Webhook-Trigger: manual, naming which webhook the resend stands in for.
  • BREAKING A manual purchase webhook resend now reaches only the destination URLs configured for its own event. Before, a resend preferred your onChanges URLs and fell back to onCreates only when none were configured, regardless of which event it stood in for. Configure destinations for both onCreates and onChanges if you want manual resends of either event delivered.

July 23, 2026

26.3.5
  • ADDED POST /v1/promotions: a new target-items condition type, ITEM_IS_PREORDER, matches items whose availability type is preorder.

July 20, 2026

26.3.4
  • BREAKING GET /v1/items: the computed_prices block was restructured. rrp / whp / rp are gone, replaced by cost_price / consumer_price / wholesale_price / retail_price (each with net / gross / source), plus new price_mode and resolved_at fields. Migration: read the new field names; the old ones no longer exist.
  • BREAKING DELETE /v1/warehouses/{id}: deleting a warehouse that still holds stock records no longer fails. It now deletes those stock records first, then the warehouse.

July 16, 2026

26.3.3
  • ADDED GET /v1/specs/{id}/choices/{subPath}: two explicit lookup prefixes, by_id/{id} and by_external_id/{code}, disambiguate the sub-resource path. The previous heuristic (a numeric segment is treated as an internal ID, otherwise as an external code) still works as the fallback.
Copied