Changelog
What changed in the API, newest first. The API version is part of the address (/v1/); the store software version that carries a change is named with it.
v1: store software 1.0.31
Two new writes, each behind a permission of its own. Nothing that existed has changed; a program written for 1.0.30 runs as before.
- Prices:
PATCH /v1/priceswith the new permissionprices:writesets prices and sale prices by stock code, up to 100 per request. Every change is listed in the history of the store's price manager, where the owner can undo it. A change that would take a price outside one tenth to 10 times its value before the API's first change within 24 hours is refused, for the list price and for the price the unit sells at alike, and no parameter overrides that (the guard on price writes). Only an administrator of the store can give a key this permission. - Products:
POST /v1/productswith the new permissionproducts:writecreates one simple product, always as a draft that the owner publishes in the admin panel. - Shipments: cash-on-delivery orders that are being prepared can be marked as shipped (
POST /v1/orders/{id}/shipment). - Idempotency-Key: the message of
request_in_progress, the answer when a value cannot be used again, now says plainly that the next attempt needs a newIdempotency-Key(not a new API key). The code is unchanged. - New error codes:
price_rejected,sku_exists,product_limit. New daily allowances per key: 20,000 price rows and 500 products.
v1: store software 1.0.30
Initial release.
- Read: store, products with variants, stock, orders with lines and tracking, shipping carriers, customers.
- Write: stock quantities (
PATCH /v1/stock), the shipment of an order (POST /v1/orders/{id}/shipment), the document number of another program (PUT /v1/orders/{id}/reference). - API keys with fixed permissions, optional IP list and expiry; personal data behind separate permissions.
- Machine-readable description at
/api/v1/openapi.jsonof every store with the API switched on.
What version 1 does not do
Publishing, changing or deleting products; images and variants; order creation, cancellation or refunds; customer writes; webhooks; OAuth.
What may change within v1
Later versions of the store software may add endpoints, optional parameters, members of answers, permissions and error codes. Write your program so that it ignores answer members it does not know and treats an unknown error code by its HTTP status. Existing members keep their name, type and meaning; anything else would be a new version with a new address.
GET /v1/store returns api_version and, with the permission store:read, the software_version of the store you are talking to.