Products
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
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
}
]
}
}
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
}
}
}
Last updated
Was this helpful?