Browse storefronts, products, and retrieve your order history from the Flamenet peer-to-peer marketplace.
Base path: /wp-json/flamenet/v1/marketplace
Returns a list of active seller storefronts.
| Parameter | Type | Default | Description |
|---|---|---|---|
page | integer | 1 | Page number. |
per_page | integer | 20 | Stores per page (max 100). |
curl "https://flamenet.io/wp-json/flamenet/v1/marketplace/stores"
{
"stores": [
{
"id": 3,
"name": "RetroTech Surplus",
"slug": "retrotech-surplus",
"status": "active",
"description": "Vintage computing gear from the 90s and 00s.",
"product_count": 18
}
],
"page": 1
}
Returns storefront details and the store's active product listing.
| Parameter | Type | Default | Description |
|---|---|---|---|
page | integer | 1 | Product page number. |
per_page | integer | 20 | Products per page (max 100). |
curl "https://flamenet.io/wp-json/flamenet/v1/marketplace/stores/retrotech-surplus"
{
"store": {
"id": 3, "name": "RetroTech Surplus", "slug": "retrotech-surplus",
"status": "active", "product_count": 18
},
"products": [
{
"id": 7,
"title": "Compaq Presario Keyboard",
"price": 12.00,
"stock": 4,
"in_stock": true,
"status": "active",
"category": "Peripherals",
"image_url": "https://flamenet.io/wp-content/uploads/kb.jpg",
"store_id": 3
}
],
"page": 1
}
Returns a paginated list of active products across all stores.
| Parameter | Type | Default | Description |
|---|---|---|---|
page | integer | 1 | Page number. |
per_page | integer | 20 | Results per page (max 100). |
store_id | integer | — | Filter by store ID. |
category | string | — | Filter by category name. |
search | string | — | Search by product title. |
sort | string | newest | Sort order: newest, price_asc, price_desc. |
curl "https://flamenet.io/wp-json/flamenet/v1/marketplace/products?search=keyboard&sort=price_asc"
{
"products": [ { "id": 7, "title": "Compaq Presario Keyboard", "price": 12.00, ... } ],
"page": 1
}
Returns full details for a single marketplace product, including store info.
curl https://flamenet.io/wp-json/flamenet/v1/marketplace/products/7
{
"id": 7,
"title": "Compaq Presario Keyboard",
"price": 12.00,
"stock": 4,
"in_stock": true,
"status": "active",
"category": "Peripherals",
"image_url": "https://flamenet.io/wp-content/uploads/kb.jpg",
"store_id": 3,
"store": {
"id": 3, "name": "RetroTech Surplus", "slug": "retrotech-surplus",
"status": "active", "product_count": 18
}
}
Returns the authenticated user's full marketplace order history, including per-store line items.
curl https://flamenet.io/wp-json/flamenet/v1/marketplace/orders \ -H "Authorization: Bearer YOUR_API_KEY"
{
"orders": [
{
"id": 55,
"total": 24.00,
"status": "paid",
"items": [
{
"product_id": 7,
"title": "Compaq Presario Keyboard",
"price": 12.00,
"quantity": 2,
"store_id": 3,
"store_name": "RetroTech Surplus"
}
],
"created_at": "2026-03-01 09:30:00"
}
],
"total": 1
}
Order status values: pending, paid, completed, refunded, disputed.