E-Commerce Starter Kit
Fake E-Commerce API for Frontend Development
The E-Commerce Starter Kit is a ready-made mock REST API for an online store. It returns realistic JSON for products, categories, a customer login, a shopping cart, order history and a checkout confirmation, so you can build the storefront interface before your backend exists. Launch it into your own Forge API project, then edit any response to match your design.
Demo or full kit
What you get without an account, and with one
No-account demo: 5 of 10 endpoints
A temporary project that expires after 12 hours. Creating a free account within that time keeps the demo project.
- GET
/products - GET
/categories - POST
/auth/login - GET
/cart - GET
/orders
Full kit: all 10 endpoints
Launch it from a signed-in account on the Free plan or higher. The full kit is a separate launch that creates a new project, so your plan's project limit applies.
Creating an account does not add the other 5 endpoints to an existing demo.
What you can build
Build the product, cart and checkout screens
Each screen below maps to endpoints in the kit, so you can build the whole purchase journey against working URLs.
Product listing
GET /products returns a data array of products with price, currency, stock and rating, plus a pagination object you can render as a pager. GET /products/featured and GET /categories fill a homepage section and a navigation menu.
- GET
/products - GET
/products/featuredfull kit - GET
/categories
- GET
Product details
GET /products/prod_001 returns one product with specifications and the available sizes and colours. Only prod_001 exists in the kit, so a detail page for any other id needs its own endpoint.
- GET
/products/prod_001full kit
- GET
Shopping cart
GET /cart returns cart items with quantity, unit price and line total, followed by subtotal, delivery, discount and total, which is everything an order summary needs.
- GET
/cart
- GET
Checkout and order history
POST /checkout returns 201 with a confirmed order, and GET /orders returns past orders with their items and status for an account page.
- POST
/checkoutfull kit - GET
/orders
- POST
Sign in and not-found states
POST /auth/login returns a customer and a token for the login form, and GET /products/missing returns a 404 error object so you can design the not-found state.
- POST
/auth/login - GET
/auth/profilefull kit - GET
/products/missingfull kit
- POST
Endpoint reference
All 10 E-Commerce Store endpoints
This list is generated from the kit itself. Paths match exactly, so only these paths exist after you launch it.
| Method | Path | Status | What it returns | Available in |
|---|---|---|---|---|
| GET | /products | 200 | List products. Returns products for a store listing, search page or product grid. | Demo and full kit |
| GET | /products/featured | 200 | Featured products. Returns a smaller collection suitable for a homepage or featured-products section. | Full kit only |
| GET | /products/prod_001 | 200 | Product detail. Returns one detailed product including inventory and review information. | Full kit only |
| GET | /categories | 200 | List categories. Returns product categories for menus, filters and navigation. | Demo and full kit |
| POST | /auth/login | 200 | Customer login. Simulates a successful customer login response. | Demo and full kit |
| GET | /auth/profile | 200 | Customer profile. Returns the current customer profile and saved preferences. | Full kit only |
| GET | /cart | 200 | Shopping cart. Returns a connected shopping cart containing products from the catalogue. | Demo and full kit |
| GET | /orders | 200 | Customer orders. Returns an order history suitable for customer account pages. | Demo and full kit |
| POST | /checkout* | 201 | Checkout success. Simulates successfully creating an order during checkout. | Full kit only |
| GET | /products/missing | 404 | Product not found. Simulates requesting a product that does not exist. | Full kit only |
* POST /checkout is defined with a response delay (800 ms). The delay is applied only on plans that support response delays.
Example responses
What the endpoints return
These are real responses from the kit. They are abbreviated: lists show their first item with the number of omitted items, and long text is shortened. The launched endpoint returns the full response.
List products
{
"data": [
{
"id": "prod_001",
"name": "Classic Polo Shirt",
"slug": "classic-polo-shirt",
"description": "A comfortable cotton polo shirt for everyday wear.",
"sku": "POLO-NAVY-M",
"category_id": "cat_clothing",
"price": 24.99,
"currency": "GBP",
"size": "M",
"colour": "Navy",
"stock": 32,
"in_stock": true,
"rating": 4.7,
"review_count": 128,
"image_url": "https://images.example.com/products/classic-polo-shirt.jpg"
}
// ... 3 more items in the full response
],
"pagination": {
"page": 1,
"per_page": 20,
"total_items": 4,
"total_pages": 1
}
}Checkout success
{
"success": true,
"message": "Your order has been created.",
"order": {
"id": "order_1003",
"customer_id": "user_001",
"status": "confirmed",
"payment_status": "paid",
"currency": "GBP",
"total": 124.96,
"created_at": "2026-08-05T15:30:00Z"
}
}Product not found
{
"success": false,
"error": {
"code": "product_not_found",
"message": "The requested product could not be found."
}
}Call the endpoints
curl and fetch examples
These URLs only work after you launch the kit, because the kit then exists in your own project. Replace YOUR_PROJECT_KEY with the project key shown in your dashboard.
curl -i \
https://apis.getforgeapi.com/YOUR_PROJECT_KEY/productscurl -i \
-X POST \
-H "Content-Type: application/json" \
-d '{"items":[{"product_id":"prod_001","quantity":2}]}' \
https://apis.getforgeapi.com/YOUR_PROJECT_KEY/checkoutconst API_BASE_URL = "https://apis.getforgeapi.com/YOUR_PROJECT_KEY";
const response = await fetch(API_BASE_URL + "/products");
if (!response.ok) {
throw new Error("Request failed with status " + response.status);
}
const json = await response.json();
// json.data is the array of products; json.pagination describes the page.More request examples are in Calling endpoints.
Frontend example
A React product list and checkout call
This example loads the product list with loading and error states, and shows a checkout request. The checkout endpoint is not part of the no-account demo, so run it against a full kit launched from a signed-in account.
import { useEffect, useState } from "react";
const API_BASE_URL = import.meta.env.VITE_API_BASE_URL;
async function apiGet<T>(path: string): Promise<T> {
const response = await fetch(API_BASE_URL + path);
if (!response.ok) {
throw new Error("GET " + path + " failed with status " + response.status);
}
return response.json() as Promise<T>;
}
async function apiPost<T>(path: string, body: unknown): Promise<T> {
const response = await fetch(API_BASE_URL + path, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(body),
});
if (!response.ok) {
throw new Error("POST " + path + " failed with status " + response.status);
}
return response.json() as Promise<T>;
}
type Product = {
id: string;
name: string;
price: number;
currency: string;
in_stock: boolean;
};
export function ProductGrid() {
const [products, setProducts] = useState<Product[]>([]);
const [status, setStatus] = useState<"loading" | "error" | "ready">("loading");
useEffect(() => {
apiGet<{ data: Product[] }>("/products")
.then((json) => {
setProducts(json.data);
setStatus("ready");
})
.catch(() => setStatus("error"));
}, []);
if (status === "loading") return <p>Loading products...</p>;
if (status === "error") return <p>Could not load products.</p>;
return (
<ul>
{products.map((product) => (
<li key={product.id}>
{product.name} - {product.currency} {product.price}
{product.in_stock ? "" : " (out of stock)"}
</li>
))}
</ul>
);
}
// Needs the full kit: POST /checkout is not in the no-account demo.
export async function placeOrder() {
const json = await apiPost<{ order: { id: string; status: string } }>(
"/checkout",
{ items: [{ product_id: "prod_001", quantity: 2 }] },
);
return json.order;
}Keep the base URL in an environment variable such as VITE_API_BASE_URL or NEXT_PUBLIC_API_BASE_URL. When your real backend is ready, change that value; if it keeps the same paths and response shapes, your components do not need to change. The Create a REST API Online tutorial walks through that handover.
Accurate expectations
What this mock does and does not do
Every Starter Kit
- Responses are static. Each endpoint returns the JSON configured for it, so the same request always gets the same response.
- Paths match exactly. Only the paths listed in the endpoint reference exist, and there are no automatic dynamic route parameters.
- There is no automatic filtering, sorting or pagination. Query strings are not used to choose a response, so adding ?page=2 returns the same response.
- Nothing is saved. POST, PUT, PATCH and DELETE endpoints return the response configured for them, and request bodies are not stored.
- Response delays and required request headers are available on paid plans. You can edit an endpoint's JSON and status code after launching the kit.
The E-Commerce Store kit
- Product detail exists only for prod_001. Other product ids are not recognised.
- The pagination object in GET /products is data, not a feature. Requesting another page returns the same response.
- Login, cart and checkout return fixed responses whatever you send. The cart does not change when you add an item, and checkout takes no payment and saves no order.
Project and endpoint limits depend on your plan. See API limits for the current allowances.
Related Starter Kits and guides
Looking for a different kit? Browse all ready-made mock APIs.
Frequently asked questions
E-Commerce Store Starter Kit questions
Do I need an account to try the E-Commerce API?
No. You can launch the E-Commerce Starter Kit as a temporary demo without an account. The demo contains 5 of the kit's 10 endpoints (products, categories, login, cart and orders) and expires after 12 hours. Creating a free account within that time keeps the demo project.
What is in the full kit compared with the demo?
The full kit has all 10 endpoints, including featured products, product detail, the customer profile, checkout and the 404 example. It is a separate launch from a signed-in account on the Free plan or higher, and it creates a new project, so your plan's project limit applies. Creating an account does not add the other 5 endpoints to an existing demo.
Can I change the products, prices and responses?
Yes. After launching, you can edit the JSON and status code of each endpoint in your project. The Free plan allows 10 endpoints per project and the kit already has 10, so edit existing endpoints rather than adding new ones.
Does checkout take a payment or save an order?
No. POST /checkout returns the confirmed order configured for it with a 201 status. No payment is taken, nothing is stored, and GET /orders does not change.
How is this different from a public fake store API?
Public fake APIs are convenient when you want to make a call with no launch step, but their endpoints and data are managed by the provider. A Starter Kit is launched into your own Forge API project, so you can edit its responses and status codes to match your frontend.
Build against E-Commerce Store today
A temporary demo can be launched without an account. The full kit needs a signed-in Free account or higher. Launch the kit, call its hosted URLs and edit the responses to match your frontend.