All blocks

Billing & commerce

Promotions

Percentage, fixed and free-shipping promotions, automatic or by code, with usage limits and stacking rules, priced into orders carts.

DocsModes:managedcustom
terminal
npx better-supabase sql add promotions
better-supabase.config.ts
import { defineConfig } from "better-supabase/config";

export default defineConfig({
  sql: {
    modules: {
      // Required by promotions; sql add installs them too.
      "updated-at": {},
      tenant: {},
      access: {},
      catalog: {},
      orders: {},
      // Modes: "managed", "custom". The default is "managed".
      promotions: { mode: "managed" },
    },
  },
});