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.
curl -s https://misc.shopamine.com/restapi/changelog.atom
curl -s https://misc.shopamine.com/restapi/changelog.rss
- FIXED
POST /v1/items,POST /v1/items/{id}, bulk requests included: theerp_syncin 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_syncis 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.
- ADDED
POST /v1/promotions/{id}/couponsand the coupon update and bulk requests: a new or changedcoupon_codemust be at least 6 characters long, otherwise the request is refused with400. 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
400and anInvalid request body:message instead of500. - ADDED Webhook URLs that are not
httporhttps, or that point to a private or internal address, are refused with400when the webhook is saved. - ADDED
POST /v1/imagesfrom a source URL: a source that cannot be fetched, including one at a private or internal address, is answered with400andcould 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.
- FIXED
GET /v1/items,POST /v1/items/{id}: the documentation said supplier prices (cost_price,list_price,wholesale_price,distributor_rrpand the prices insuppliers) are always tax-exclusive. They use the same tax basis as the item's prices: tax-inclusive when the item'stax_inclusiveis true, otherwise net (an item with no setting of its own follows the store's price 1 default). Readtax_inclusiveon 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.
- ADDED
GET /v1/items: read-onlyerp_syncboolean, true when the item meets its ERP sync condition.GET /v1/items/listaccepts?erp_sync=true|false; any other value returns400. - ADDED
GET /v1/purchases,POST /v1/purchases/{id}:supplier_referenceholds 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
401and an error message. - ADDED Payment option type
corvus_pay. - ADDED Choices created without
order_weightare placed next to their closest neighbour in the spec's order. Sendingorder_weightstill places the choice exactly where you say. - FIXED
POST /v1/users/{id}:lockednow does what it says.truelocks the user andfalseunlocks them; the two values were swapped.
- BREAKING
GET /v1/items: the rootlist_priceof the selected supplier is now its Distributor RRP when one is set, and the supplier'sppcotherwise. 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, readppcin thesuppliersentry whosesupplier_idequalscurrent_supplier_id. - ADDED
GET /v1/items:distributor_rrpanddistributor_rrp_mode(LINKED,FIXEDorPRICE_LIST) at the root for the selected supplier and on each supplier row, when set.computed_pricescan report the new sourceSUPPLIER_DISTRIBUTOR_RRP. - ADDED
POST /v1/items/create,POST /v1/items/{id}, supplier rows insuppliers:distributor_rrpfixes the row's Distributor RRP, anddistributor_rrp_modeLINKEDmakes it followppcagain, andFIXEDwithout a value keeps the current value as the fixed one. Any other mode, includingPRICE_LIST, is rejected with an error.
- ADDED
GET /v1/purchases: purchases placed at checkout by a buyer who was then a member of a company carrycompany_idand acompanyobject (id,name, and when setexternal_idandtax_code), also in purchase webhooks.nameandtax_codeare as they were when the order was placed. Purchases placed before this release do not have these fields. - ADDED
GET /v1/purchases/list: new filterscompany_id,company_external_id(the company's ERP customer number) andcompany_tax_code(ignores spaces, dots, dashes and case). They combine with each other and withstatus. - 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 invalidsingle_use_per_userorguest_single_use_handlingvalue now returns400with the field name instead of500.
- FIXED
GET /v1/items:computed_pricesentries resolved from the item's own price (ITEM_P1/ITEM_P2/ITEM_P3) now splitnet/grossusing 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 getnet/grossfigures computed on the wrong basis.
- ADDED
GET /v1/purchases: basket-level entries indiscounts_breakdownnow carrycalculation_modeand a per-tax-classlinesbreakdown (net, tax and gross in whole cents), flaggedlines_derivedwhen reconstructed from stored totals rather than stored directly. - ADDED
GET /v1/items: a change to the store'scomputed_pricesconfiguration now counts as a change to every item it reaches, soupdated_afterpolls pick it up like any other update instead of missing it.
- BREAKING
POST /v1/purchases/{purchase_id}: settingstatustoready_to_shipcan now be rejected on stores that use an order-management integration, with400when the integration hasn’t confirmed the order yet or503when it couldn’t be reached. A request that previously always succeeded may now receive one of these responses; treat503as retryable and400as a sign to resolve the order in the integration first.
- BREAKING
POST /v1/users/{user_id}: writing agdpr_permissionsentry no longer accepts a caller-suppliedmailchimp_id. The value is now always taken from the store's own permission definition, and one sent in the request is silently ignored. Stop sendingmailchimp_idon write; it has no effect. - FIXED
GET /v1/users/{user_id}:gdpr_permissionsnow 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.
- BREAKING
GET /v1/*/list: alimitabove an entity's maximum page size is now rejected with400instead of being silently reduced to the maximum. A client paging with a too-largelimitused 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 ownlimitto it before sending the request.
- FIXED
GET /v1/items/list:updated_afterand each item'sdate_updatednow include supplier-driven price changes. Before, a consumer polling withupdated_aftercould 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.
- ADDED
X-Shopamine-Webhook-Event: a manually re-triggered purchase webhook now carries this header (createorupdate) alongsideX-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
onChangesURLs and fell back toonCreatesonly when none were configured, regardless of which event it stood in for. Configure destinations for bothonCreatesandonChangesif you want manual resends of either event delivered.
- ADDED
POST /v1/promotions: a new target-items condition type,ITEM_IS_PREORDER, matches items whose availability type is preorder.
- BREAKING
GET /v1/items: thecomputed_pricesblock was restructured.rrp/whp/rpare gone, replaced bycost_price/consumer_price/wholesale_price/retail_price(each withnet/gross/source), plus newprice_modeandresolved_atfields. 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.
- ADDED
GET /v1/specs/{id}/choices/{subPath}: two explicit lookup prefixes,by_id/{id}andby_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.