My Account Subscribe Help About
Sign In | Register FREE
Tuesday, April 28, 2026
King to defend democratic values as US state visit beginsBP profits more than double as Iran war sends oil prices higherSuspect charged with attempted assassination of Trump at Washington dinnerPolitical violence jolts the US once again - with a familiar responseMy tenant owes £15,000 in rent, but I can't get them out of the propertyWhen Attenborough met the gorillas - the story behind his iconic TV momentRussian superyacht sails through Strait of Hormuz despite blockadeFigures show rise in suicides after domestic abuseMan who murdered British dad in Australia declared mentally unfit for trialMan pleads guilty to murder two decades after death of Run DMC's Jam Master JayJimmy Kimmel rejects White House criticism over Melania widow jokeIn pictures: King Charles and Queen Camilla begin US state visitNewspaper headlines: 'United King Don' and 'PM battles to block sleaze vote'Why Spotify has no button to filter out AI music'My husband finally got full-time care – he died a week later'Babies among those tied up and allegedly abused in Indonesia childcare centre'I had £20,000 stolen and had to fight a 13-month fraud reporting rule to get it back''My husband might give up work to care for our kids' - nursery bills in Wales highest in BritainRescuers race to free survivors trapped inside train after fatal Indonesia crashTerror trial to begin for man accused of plotting attack on Taylor Swift concertRebel Wilson says claims she bullied women on her film are 'absolute nonsense'Claire's closes all 154 stores in UK and Ireland with loss of 1,300 jobsIS claims responsibility for Nigeria attack that killed 29 peopleExecutions in North Korea ramped up significantly during pandemic - reportDeal 'within sight' to end year-long Birmingham bin strike, says council leaderBBC News appThe King Arrives In The US, But Can He Mend The Special Relationship?Who is Trump’s 'would-be assassin' and were there security failings at DC shooting?All but back in Champions League - yet big decisions loom at Man UtdGreaves becomes first female PDC title winner

Marketplace API

Browse storefronts, products, and retrieve your order history from the Flamenet peer-to-peer marketplace.

Base path: /api/flamenet/v1/marketplace

The Marketplace API covers user-owned storefronts (Flamenet Shopping). For the curated catalog, see the Shop API.
GET /marketplace/stores

Returns a list of active seller storefronts.

Query parameters

ParameterTypeDefaultDescription
pageinteger1Page number.
per_pageinteger20Stores per page (max 100).

Example request

curl "https://flamenet.io/api/flamenet/v1/marketplace/stores"

Example response

{
  "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
}
Stripe account IDs and internal financial data are never exposed in this response.
GET /marketplace/stores/{slug}

Returns storefront details and the store's active product listing.

Query parameters

ParameterTypeDefaultDescription
pageinteger1Product page number.
per_pageinteger20Products per page (max 100).

Example request

curl "https://flamenet.io/api/flamenet/v1/marketplace/stores/retrotech-surplus"

Example response

{
  "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
}
GET /marketplace/products

Returns a paginated list of active products across all stores.

Query parameters

ParameterTypeDefaultDescription
pageinteger1Page number.
per_pageinteger20Results per page (max 100).
store_idintegerFilter by store ID.
categorystringFilter by category name.
searchstringSearch by product title.
sortstringnewestSort order: newest, price_asc, price_desc.

Example request

curl "https://flamenet.io/api/flamenet/v1/marketplace/products?search=keyboard&sort=price_asc"

Example response

{
  "products": [ { "id": 7, "title": "Compaq Presario Keyboard", "price": 12.00, ... } ],
  "page": 1
}
GET /marketplace/products/{id}

Returns full details for a single marketplace product, including store info.

Example request

curl https://flamenet.io/api/flamenet/v1/marketplace/products/7

Example response

{
  "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
  }
}
POST /marketplace/products AUTH REQUIRED

Creates a new product in the authenticated user's store. The user must have an active storefront.

Request body (JSON)

FieldTypeRequiredDescription
titlestringYesProduct title.
pricenumberYesPrice in USD (must be > 0).
descriptionstringNoProduct description.
stockintegerNoAvailable quantity. Omit or pass -1 for unlimited.
categorystringNoCategory name.
image_urlstringNoPublic URL of the product image.

Example request

curl -X POST https://flamenet.io/api/flamenet/v1/marketplace/products \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"title":"IBM Model M Keyboard","price":45.00,"stock":2,"category":"Peripherals"}'

Example response — 201 Created

{
  "id":        19,
  "title":     "IBM Model M Keyboard",
  "price":     45.00,
  "stock":     2,
  "in_stock":  true,
  "status":    "active",
  "store_id":  3
}

Returns 403 if the user has no active store. Returns 422 if title is missing or price is zero or negative.

GET /marketplace/orders AUTH REQUIRED

Returns the authenticated user's full marketplace order history, including per-store line items.

Example request

curl https://flamenet.io/api/flamenet/v1/marketplace/orders \
  -H "Authorization: Bearer YOUR_API_KEY"

Example response

{
  "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.