OpenAPI 3.0.3 schema ready
Generate TypeScript types directly from https://shoprivet.io/docs/openapi.json.
Framework Integration · Next.js
Render server-side Next.js product pages with zero extra commerce infrastructure. Read public catalogs in Server Components, run guest carts in browser state, and keep /v1 keys safely on the server.
Yes. Next.js Server Components can fetch unauthenticated GET /public/stores/{slug}/products endpoints for SSR/ISR product pages, while client components call /public/stores/{slug}/carts and Route Handlers can safely use server-only SHOPRIVET_API_KEY credentials.
Practical implementation
Use fetch with Next.js revalidate caching against GET /public/stores/:slug/products so prices and metadata render in initial HTML.
Create guest carts via POST /public/stores/:slug/carts from the client, then check out with an idempotencyKey.
Never prefix merchant API keys with NEXT_PUBLIC_. Keep SHOPRIVET_API_KEY in Route Handlers or Server Actions only.
Next.js Server Component fetch
const res = await fetch("https://api.shoprivet.io/public/stores/downtown-shop/products", { next: { revalidate: 60 } });
const { products } = await res.json();
Requirements, pricing & limits
Generate TypeScript types directly from https://shoprivet.io/docs/openapi.json.
Query /public/stores/:slug/payment-methods dynamically to render Stripe, Paystack, Flutterwave, Razorpay, PayPal, or COD options.
Retrieve order status and paid digital file download URLs using the checkout orderAccessToken.
Public carts allow 60 req/min; /v1 endpoints scale from 60 to 1,000 req/min across Free, Premium, and Business plans.
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