Developer guide
Store API quickstart
The RapBooster Store API lets any website or app sell a workspace's catalogue: products, carts, checkout with Razorpay, buyer accounts, orders, subscriptions and reviews. Create a publishable key in Settings › Developer, add your site's origin, then call the endpoints under /public/v1/store from the browser or your app.
Guide
Step by step
1. Create a publishable key
In RapBooster open Settings › Developer › Keys and choose New key. Pick Publishable, then list the exact origins your site runs on, such as https://shop.example.com. A test key (rb_pk_test_…) may also allow http://localhost:3000 while you build.
A publishable key is safe to ship in a browser or a mobile app: it opens only the Store API, answers only its allowed origins, and you can show it again in Settings any time. Requests without an Origin header (servers, native apps) are not origin-checked.
2. List products
Every Store API call sends the key as a bearer token. Lists answer { items, meta }, records { data }, and money is in minor units (paise) with a currency.
curl
curl "https://api.rapbooster.com/api/v1/public/v1/store/products?limit=12&in_stock=true" \
-H "Authorization: Bearer rb_pk_test_…"3. Build a cart
Create a cart with lines of price_id and qty, then read it back priced: discounts, delivery fee and the free-delivery gap come with it. Keep the cart id in the browser; attach it to the buyer once they sign in.
JavaScript (@rapbooster/sdk)
import { createRapBooster } from "@rapbooster/sdk";
const rb = createRapBooster({ key: "rb_pk_test_…" });
const { data: products } = await rb.store.products.list({ limit: 12 });
const { data: cart } = await rb.store.carts.create({
lines: [{ price_id: "17", qty: 2 }],
});
await rb.store.carts.setDelivery(cart!.data.id, { pincode: "334001" });Next
Sign the buyer in (Buyer sign-in guide), take the payment (Checkout guide) and listen for order events (Webhooks guide). Every endpoint, with Try it, is in the API reference.