Stores
Get Store
Returns a single store (the Store detail page's header/overview), including its address fields and associated sales channels. `is_default` indicates whether this store is the tenant's default outbound-email sender. Archived stores are resolvable by this endpoint.
Get Store Stats
Dashboard KPIs for the Store detail page: connected sales-channel count, assigned-customer count, 90-day order count and revenue, the store's outbound-sending identity (email/PO email, sender domain and its verification status), and the store's linked sales channels, email templates (each with a friendly `context_label`, e.g. 'Bulk Sales Order'), and PDF templates.
Get Store Activity Log
Paginated, filterable audit log of the store's own events (create, edit, archive, restore). Each entry records the event, the changed attributes, and the user who made the change.
Create Store
Creates a new store. Also creates an associated address record.
Bulk Delete Stores
Bulk deletes multiple stores by IDs.
Update Store
Updates an existing store and its address.
Delete Store
Deletes a store. Returns an error if the store is linked to other records.
Archive Store
Archives a store. Returns a warning if already archived.
Unarchive Store
Unarchives a store. Returns a warning if not currently archived.
Set Default Store
Set this store as the tenant default. It becomes the fallback From/sender for outbound email whose context has no store of its own (e.g. an account-level customer statement); a store carried by the order or customer still takes precedence. Returns the updated store.
Bulk Archive Stores
Bulk archives multiple stores by IDs.
Bulk Unarchive Stores
Bulk unarchives multiple stores by IDs.
Check Stores Deletable
Checks which stores can be safely deleted.
Import Stores
Imports stores in bulk from JSON data.
Preview Import Stores
Previews a store import without committing changes.