FLECS
HomeMarketplaceRessourcesGet started
Engineering
Engineering
  • API Docs
    • FLECS Console API
      • Welcome!
      • Quick Start
      • API Reference
        • Authentication
        • Users
        • Products
        • Device
        • Apps
    • FLECS Core API
      • API Reference
        • System
        • Device
        • Console
        • Instances
        • Apps
        • Jobs
  • App Publishing Guide
    • 💡Overview
    • 🪛How to create a FLECS app
    • 🚀How to release a FLECS app
    • 🧳App Publishing Packages
    • 📶Network
  • FLECS Core
    • Install FLECS Core Using Docker
  • White Labeling
    • Integrate views
    • On-premise hosting of apps
Powered by GitBook
On this page

Was this helpful?

  1. API Docs
  2. FLECS Console API
  3. API Reference

Products

PreviousUsersNextDevice

Last updated 3 months ago

Was this helpful?

Get all products

get

Get all products

Query parameters
store_idintegerOptional
Responses
200
All products of the store referenced by store_id or default store
application/json
500
Internal Server Error
application/json
get
GET /api/v2/products HTTP/1.1
Host: console.flecs.tech
Accept: */*
{
  "statusCode": 1,
  "statusText": "text",
  "data": {
    "page": 1,
    "totalPages": 1,
    "products": [
      {
        "id": 1,
        "name": "text",
        "status": "text",
        "description": "text",
        "short_description": "text",
        "average_rating": "text",
        "rating_count": 1,
        "categories": [
          {
            "id": 1,
            "name": "text",
            "slug": "text"
          }
        ],
        "attributes": [
          {
            "id": 1,
            "name": "text",
            "options": [
              "text"
            ]
          }
        ],
        "meta_data": [
          {
            "id": 1,
            "name": "text",
            "value": {}
          }
        ],
        "stock_status": "text",
        "store": {
          "id": 1,
          "name": "text",
          "shop_name": "text",
          "url": "text",
          "address": {
            "street_1": "text",
            "street_2": "text",
            "city": "text",
            "zip": "text",
            "country": "text",
            "state": "text"
          }
        },
        "permalink": "text",
        "price": "text",
        "purchasable": true
      }
    ]
  }
}

Get all app products

get

Get all app products

Query parameters
store_idintegerOptional
Responses
200
All apps of the store referenced by store_id or default store
application/json
500
Internal Server Error
application/json
get
GET /api/v2/products/apps HTTP/1.1
Host: console.flecs.tech
Accept: */*
{
  "statusCode": 1,
  "statusText": "text",
  "data": {
    "totalProducts": 1,
    "products": [
      {
        "id": 1,
        "name": "text",
        "status": "text",
        "description": "text",
        "short_description": "text",
        "average_rating": "text",
        "rating_count": 1,
        "categories": [
          {
            "id": 1,
            "name": "text",
            "slug": "text"
          }
        ],
        "attributes": [
          {
            "id": 1,
            "name": "text",
            "options": [
              "text"
            ]
          }
        ],
        "meta_data": [
          {
            "id": 1,
            "name": "text",
            "value": {}
          }
        ],
        "stock_status": "text",
        "store": {
          "id": 1,
          "name": "text",
          "shop_name": "text",
          "url": "text",
          "address": {
            "street_1": "text",
            "street_2": "text",
            "city": "text",
            "zip": "text",
            "country": "text",
            "state": "text"
          }
        },
        "permalink": "text",
        "price": "text",
        "purchasable": true
      }
    ]
  }
}
  • GETGet all products
  • GETGet all app products
  • POSTPost a review for an app

Post a review for an app

post

Post a review for an app

Body
jwtstringOptional
Responses
201
All apps of the store referenced by store_id or default store
application/json
500
Internal Server Error
application/json
post
POST /api/v2/products/apps/reviews HTTP/1.1
Host: console.flecs.tech
Content-Type: application/json
Accept: */*
Content-Length: 107

{
  "data": {
    "product_id": 1,
    "review": "text",
    "reviewer": "text",
    "reviewer_email": "text",
    "rating": 1
  },
  "jwt": "text"
}
{
  "statusCode": 1,
  "statusText": "text",
  "data": {
    "review": {
      "id": 1,
      "date_created": "text",
      "date_created_gmt": "text",
      "product_id": 1,
      "product_name": "text",
      "product_permalink": "text",
      "status": "text",
      "reviewer": "text",
      "reviewer_email": "text",
      "review": "text",
      "rating": 1,
      "verified": true
    }
  }
}