Skip to main content

Overview

Store Settings API allows store owners to configure operational settings including delivery options, pickup availability, and store live status. Location: convex/stores/settings.ts

Update Store Settings

Store settings are managed via stores.operations.updateStore.
settings
object
Settings object with delivery, pickup, and live status options
const updatedStore = await convex.mutation(api.stores.operations.updateStore, {
  settings: {
    deliveryEnabled: true,
    pickupEnabled: true,
    storeLive: true
  }
});
{
  "_id": "j123456789",
  "name": "Mario's Pizza",
  "settings": {
    "deliveryEnabled": true,
    "pickupEnabled": true,
    "storeLive": true
  },
  "_creationTime": 1640995200000
}
Settings changes take effect immediately and update the store’s availability for customers.