Zero storefront lock-in
Keep Vue Router, Pinia, Tailwind, or custom animations while Shoprivet enforces prices, discounts, and stock server-side.
Framework Integration · Vue & Nuxt
Power reactive Vue 3 product catalogs and Nuxt server-rendered storefronts using Shoprivet public Storefront REST APIs, typed OpenAPI schemas, and server-side /v1 routes.
Vue 3 apps fetch /public/stores/{slug}/products and run guest cart mutations via scoped bearer credentials, while Nuxt 3 server routes securely proxy /v1 merchant operations using runtimeConfig.
Practical implementation
Load /public/stores/:slug/products and /payment-methods with useFetch in Nuxt or Composition API composables in Vue.
Call POST /public/stores/:slug/carts when adding a first item and use PATCH/DELETE for quantity changes.
Keep SHOPRIVET_API_KEY out of NUXT_PUBLIC_ and VITE_ prefixes; call /v1 endpoints strictly from Nitro server handlers.
Nuxt useFetch catalog example
const { data } = await useFetch("https://api.shoprivet.io/public/stores/downtown-shop/products");
Requirements, pricing & limits
Keep Vue Router, Pinia, Tailwind, or custom animations while Shoprivet enforces prices, discounts, and stock server-side.
Need a fast shop page inside an existing Vue marketing site? Mount <div data-shoprivet="..."> inside a component template.
Paid digital items appear directly in /public/stores/:slug/orders/:orderNumber lookup responses.
Download /docs/openapi.json to generate TypeScript types for Vue and Nitro handlers.
Direct answers
Related documentation & solutions
Start free at $0/month
Create a store in minutes, embed a catalog on your existing site, or call our public Storefront and /v1 APIs.
Create your free store