# Shopamine REST API v1 > Public REST API for Shopamine stores: catalogue, customers, orders, stock, pricing and promotions. This index points at one markdown file per entity, each small enough to read whole. - **Base URL:** `https://api.shopamine.com/[shop-domain]/api/v1` — the `[URL_BASE]` used throughout the docs. - **Auth:** `Authorization: Bearer ` header. Header only; there is no query-parameter form. Tokens are issued in the shop admin. - **Scopes:** every endpoint requires one (`items`, `users`, `purchases`, `settings`, `images`, `nodes`, `specs`). Three are not guessable: `purchase_attempts` needs `settings`, and `physical_store` and `warehouse` need `items`. A missing scope returns `403 You need scope ""`. - **Shape:** JSON in and out. Updates merge — fields you omit are left alone, an explicit `null` clears. Localized strings are objects keyed by locale with `__` as the default. Datetimes are ISO 8601 UTC. - **Human docs:** https://misc.shopamine.com/restapi/ ## Reference - [Overview](https://misc.shopamine.com/restapi/md/overview.md): URL format, authentication, scopes, update semantics, localized strings, list parameters and error responses. Read this first. - [Items / Products](https://misc.shopamine.com/restapi/md/items.md): Products and variants: prices, stock, specs, images, node placement, and bulk create/update. - [Items / Products — examples](https://misc.shopamine.com/restapi/md/items-examples.md): curl and Python examples for items / products, with captured responses. - [Nodes](https://misc.shopamine.com/restapi/md/nodes.md): The catalogue hierarchy - categories, brands and content pages. - [Specs](https://misc.shopamine.com/restapi/md/specs.md): Product specifications and their choice values. - [Users](https://misc.shopamine.com/restapi/md/users.md): Customer accounts, GDPR permissions, addresses (append-only) and per-user contract prices. - [External Prices Service](https://misc.shopamine.com/restapi/md/external-prices.md): A service the MERCHANT implements and Shopamine calls for live pricing - a receiver, not a Shopamine endpoint. - [User types](https://misc.shopamine.com/restapi/md/user-types.md): Customer groups used for pricing and visibility rules. - [Purchase attempts](https://misc.shopamine.com/restapi/md/purchase-attempts.md): Shopping carts, including abandoned ones. Read-only. Needs the `settings` scope, not `purchases`. - [Purchases](https://misc.shopamine.com/restapi/md/purchases.md): Completed orders, discount semantics, and updating an order's status and documents. - [Tax classes](https://misc.shopamine.com/restapi/md/tax-classes.md): Tax rate groupings that items are assigned to. - [Images](https://misc.shopamine.com/restapi/md/images.md): Image assets, addressable by md5 hash. - [Physical stores](https://misc.shopamine.com/restapi/md/physical-stores.md): Store locations. Path is singular `/physical_store/`; needs the `items` scope. - [Warehouses](https://misc.shopamine.com/restapi/md/warehouses.md): Stock locations. Path is singular `/warehouse/`; needs the `items` scope. - [Promotions](https://misc.shopamine.com/restapi/md/promotions.md): Promotional campaigns and their coupon codes. Dates are date-only; discount_rate is a 0-1 fraction. - [Timed discounts](https://misc.shopamine.com/restapi/md/timed-discounts.md): Time-boxed discounts. Uses ISO datetimes, unlike promotions. - [Payment options](https://misc.shopamine.com/restapi/md/payment-options.md): Configured payment methods. Read-only over the API. - [Shipping options](https://misc.shopamine.com/restapi/md/shipping-options.md): Configured delivery methods. Read-only over the API. - [Tax rates mapping](https://misc.shopamine.com/restapi/md/tax-rates-mapping.md): Territory-to-tax-rate lookup helper. - [Affiliates](https://misc.shopamine.com/restapi/md/affiliates.md): Affiliate payouts and clawbacks. Requires the `enablePublicApi` flag. - [Web hooks](https://misc.shopamine.com/restapi/md/webhooks.md): Purchase, item, user and purchase-attempt web hooks - Shopamine calls YOUR endpoint. Configured by Shopamine support. ## Full text - [llms-full.txt](https://misc.shopamine.com/restapi/llms-full.txt): every file above concatenated, for tools that prefer one document.