Retrieve a list of all vendor stores registered on the platform
curl --request GET \
--url https://api.example.com/api/v1/stores/{
"count": 25,
"next": "http://api.example.com/api/v1/stores/?offset=10",
"previous": null,
"results": [
{
"id": 1,
"url": "http://api.example.com/api/v1/stores/awesome-electronics/",
"brand_name": "Awesome Electronics",
"about": "We specialize in consumer electronics and accessories with fast shipping and excellent customer service.",
"products_sold": 1247,
"owner": 42,
"followers": [15, 23, 89, 102]
},
{
"id": 2,
"url": "http://api.example.com/api/v1/stores/green-garden-supplies/",
"brand_name": "Green Garden Supplies",
"about": "Organic gardening supplies and sustainable farming equipment.",
"products_sold": 823,
"owner": 58,
"followers": [12, 45, 67]
}
]
}
This endpoint returns a paginated list of all stores (vendors) registered on the e-commerce platform. Stores represent multi-vendor accounts that can list and sell products.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/klvxn/ecommerce-api/llms.txt
Use this file to discover all available pages before exploring further.
{
"count": 25,
"next": "http://api.example.com/api/v1/stores/?offset=10",
"previous": null,
"results": [
{
"id": 1,
"url": "http://api.example.com/api/v1/stores/awesome-electronics/",
"brand_name": "Awesome Electronics",
"about": "We specialize in consumer electronics and accessories with fast shipping and excellent customer service.",
"products_sold": 1247,
"owner": 42,
"followers": [15, 23, 89, 102]
},
{
"id": 2,
"url": "http://api.example.com/api/v1/stores/green-garden-supplies/",
"brand_name": "Green Garden Supplies",
"about": "Organic gardening supplies and sustainable farming equipment.",
"products_sold": 823,
"owner": 58,
"followers": [12, 45, 67]
}
]
}
stores/models.py:8-39stores/serializers.py:8-19product_set (available in the detail endpoint)const response = await fetch('https://api.example.com/api/v1/stores/');
const data = await response.json();
const stores = data.results;
// Client-side filtering by products sold
const topStores = stores
.filter(store => store.products_sold > 1000)
.sort((a, b) => b.products_sold - a.products_sold);
stores.forEach(store => {
console.log(`${store.brand_name}: ${store.followers.length} followers, ${store.products_sold} sales`);
});
slug, automatically generated from brand_nameis_vendor and is_staff status when their store is createdproducts_sold field is a computed property that sums the quantity_sold of all products in the storecurl --request GET \
--url https://api.example.com/api/v1/stores/{
"count": 25,
"next": "http://api.example.com/api/v1/stores/?offset=10",
"previous": null,
"results": [
{
"id": 1,
"url": "http://api.example.com/api/v1/stores/awesome-electronics/",
"brand_name": "Awesome Electronics",
"about": "We specialize in consumer electronics and accessories with fast shipping and excellent customer service.",
"products_sold": 1247,
"owner": 42,
"followers": [15, 23, 89, 102]
},
{
"id": 2,
"url": "http://api.example.com/api/v1/stores/green-garden-supplies/",
"brand_name": "Green Garden Supplies",
"about": "Organic gardening supplies and sustainable farming equipment.",
"products_sold": 823,
"owner": 58,
"followers": [12, 45, 67]
}
]
}