Products
Last updated
Was this helpful?
Last updated
Was this helpful?
Get all products
/api/v2/products
curl -L \
--url 'https://console.flecs.tech/api/v2/products'
{
"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
}
]
}
}
All products of the store referenced by store_id or default store
Get all app products
/api/v2/products/apps
curl -L \
--url 'https://console.flecs.tech/api/v2/products/apps'
{
"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
}
]
}
}
All apps of the store referenced by store_id or default store
Post a review for an app
/api/v2/products/apps/reviews
curl -L \
--request POST \
--url 'https://console.flecs.tech/api/v2/products/apps/reviews' \
--header 'Content-Type: application/json' \
--data '{
"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
}
}
}
All apps of the store referenced by store_id or default store