Complete API documentation for the Kurdish Marketplace platform
https://lunax-marketplace.dmsystem.dpdns.org/api•
Get all stores with their products, reels, and discounts
fetch('https://lunax-marketplace.dmsystem.dpdnsorg//api/stores', {
headers: {
'Accept': 'application/json'
}
})
[
{
"id": "65f8a1b2c3d4e5f6a7b8c9d0",
"logo": "https://example.com/logo.jpg",
"name": {
"kurdish": "فرۆشگای ئەلیکترۆنی",
"english": "Electronic Store"
},
"address": "Sulaymaniyah, Kurdistan",
"phone_number": "+9647701234567",
"products": [...],
"reels": [...],
"discounts": [...]
}
]
Create a new store (requires bilingual name)
{
"logo": "https://example.com/logo.jpg",
"coverImage": "https://example.com/cover.jpg",
"name": {
"kurdish": "ناوی فرۆشگا بە کوردی",
"english": "Store Name in English"
},
"address": "Full address here",
"phone_number": "+9647701234567",
"description": "Store description",
"category": "electronics"
}
{
"id": "65f8a1b2c3d4e5f6a7b8c9d0",
"logo": "https://example.com/logo.jpg",
"name": {
"kurdish": "ناوی فرۆشگا بە کوردی",
"english": "Store Name in English"
},
"createdAt": "2024-03-19T10:30:00.000Z"
}
Get all products for a specific store
fetch('https://lunax-marketplace.dmsystem.dpdns.org//api/products/stor/65f8a1b2c3d4e5f6a7b8c9d0')
[
{
"id": "65f8a1b2c3d4e5f6a7b8c9d1",
"name": {
"kurdish": "مۆبایل",
"english": "Smartphone"
},
"price": 899.99,
"discount_price": 809.99,
"category": "electronics",
"specifications": [
{"key": "RAM", "value": "8GB"},
{"key": "Storage", "value": "256GB"}
]
}
]
Search products by name or category
fetch('https://lunax-marketplace.dmsystem.dpdns.org//api/products/search?q=smartphone&categor=electronics')
[
{
"id": "65f8a1b2c3d4e5f6a7b8c9d1",
"name": {
"kurdish": "مۆبایل",
"english": "Smartphone"
},
"store": {
"id": "65f8a1b2c3d4e5f6a7b8c9d0",
"name": "Electronic Store"
}
}
]
Check daily upload limit for a store
Upload a new reel (multipart/form-data)
Get paginated reel feed
Create a new discount (percentage 0-100%)
{
"store_id": "65f8a1b2c3d4e5f6a7b8c9d0",
"product_id": "65f8a1b2c3d4e5f6a7b8c9d1",
"amount": 15,
"startDate": "2024-03-20T00:00:00.000Z",
"endDate": "2024-04-20T00:00:00.000Z"
}
Get all active discounts
| Endpoint | Method | Description |
|---|---|---|
/stores |
GET | Get all stores |
/stores |
POST | Create store |
/stores/:id |
GET | Get store by ID |
/products/store/:storeId |
GET | Get store products |
/products/search |
GET | Search products |
/reels/upload |
POST | Upload video (multipart) |
/reels/limit/:storeId |
GET | Check upload limit |
/reels/feed |
GET | Get video feed |