Get Recommended Products
curl --request GET \
--url 'https://api.example.com/{{micro_service_base_url}}/inventory/store/{{store_id}}/item/{{store_item_id}}/recommended-products'import requests
url = "https://api.example.com/{{micro_service_base_url}}/inventory/store/{{store_id}}/item/{{store_item_id}}/recommended-products"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/{{micro_service_base_url}}/inventory/store/{{store_id}}/item/{{store_item_id}}/recommended-products', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/{{micro_service_base_url}}/inventory/store/{{store_id}}/item/{{store_item_id}}/recommended-products",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/{{micro_service_base_url}}/inventory/store/{{store_id}}/item/{{store_item_id}}/recommended-products"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/{{micro_service_base_url}}/inventory/store/{{store_id}}/item/{{store_item_id}}/recommended-products")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/{{micro_service_base_url}}/inventory/store/{{store_id}}/item/{{store_item_id}}/recommended-products")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"recommendations": [
{
"id": "<string>",
"item_id": "<string>",
"store_id": "<string>",
"images": [
{}
],
"name": "<string>",
"description": "<string>",
"size": "<string>",
"price": "<string>",
"unit_count": "<string>",
"sell_independently": true,
"active": true,
"quantity": 123,
"completed": true
}
]
}Catalog
Get Recommended Products
This endpoint retrieves a list of recommended products for a specific item in your store. These recommendations can be used to suggest complementary or related products to customers.
GET
{micro_service_base_url}
/
inventory
/
store
/
{store_id}
/
item
/
{store_item_id}
/
recommended-products
Get Recommended Products
curl --request GET \
--url 'https://api.example.com/{{micro_service_base_url}}/inventory/store/{{store_id}}/item/{{store_item_id}}/recommended-products'import requests
url = "https://api.example.com/{{micro_service_base_url}}/inventory/store/{{store_id}}/item/{{store_item_id}}/recommended-products"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/{{micro_service_base_url}}/inventory/store/{{store_id}}/item/{{store_item_id}}/recommended-products', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/{{micro_service_base_url}}/inventory/store/{{store_id}}/item/{{store_item_id}}/recommended-products",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/{{micro_service_base_url}}/inventory/store/{{store_id}}/item/{{store_item_id}}/recommended-products"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/{{micro_service_base_url}}/inventory/store/{{store_id}}/item/{{store_item_id}}/recommended-products")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/{{micro_service_base_url}}/inventory/store/{{store_id}}/item/{{store_item_id}}/recommended-products")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"recommendations": [
{
"id": "<string>",
"item_id": "<string>",
"store_id": "<string>",
"images": [
{}
],
"name": "<string>",
"description": "<string>",
"size": "<string>",
"price": "<string>",
"unit_count": "<string>",
"sell_independently": true,
"active": true,
"quantity": 123,
"completed": true
}
]
}This endpoint returns product recommendations based on the specified store item. The recommendations are typically generated based on purchasing patterns, product categories, and other relevant factors.
Recommended products are automatically generated by the system based on various factors including customer behavior and product relationships.
Path Parameters
The unique identifier of the store
The unique identifier of the item for which to get recommendations
Response
Array of recommended product objects
Show Recommended Product Object
Show Recommended Product Object
Unique product identifier
Internal item identifier
Store identifier
Array of product image URLs
Product name
Product description
Product size
Product price
Unit count information
Whether the product can be sold independently
Whether the product is currently active
Available quantity
Whether the product setup is completed
Response Example
[
{
"id": "4e634630-cf39-4a68-b74a-f4c631eaeb11",
"item_id": "bf9480e2-7ae1-4085-b72b-0141695a4fcb",
"store_id": "449235c1-3d04-4519-998b-40d2a621e5e0",
"images": [
"https://lula-inventory-service-staging.s3.amazonaws.com/images/449235c1-3d04-4519-998b-40d2a621e5e0/Snacks/4e634630-cf39-4a68-b74a-f4c631eaeb11_1730116849516.webp"
],
"name": "Keebler Big Snack Pack Club Cheddar Sandwich Crackers",
"description": "1.8 oz",
"size": "1.8 oz",
"price": "0.99",
"unit_count": "",
"sell_independently": true,
"active": true,
"quantity": 1,
"completed": true
},
{
"id": "7bff1fcd-ee1f-4e38-a80c-b90d68d56502",
"item_id": "1a1cf0c9-4036-45e2-bfb3-ccd032d634d6",
"store_id": "449235c1-3d04-4519-998b-40d2a621e5e0",
"images": [
"https://lula-inventory-service-staging.s3.amazonaws.com/images/449235c1-3d04-4519-998b-40d2a621e5e0/Snacks/7bff1fcd-ee1f-4e38-a80c-b90d68d56502_1730116813067.webp"
],
"name": "Slim Jim Monster Size Smoked Snack Stick Tabasco",
"description": "1.94 oz",
"size": "1.94 oz",
"price": "3.49",
"unit_count": "",
"sell_independently": true,
"active": true,
"quantity": 1,
"completed": true
}
]
Use recommended products to create cross-selling opportunities and improve customer experience by suggesting relevant items.
The recommendation algorithm considers factors like product categories, customer purchase history, and seasonal trends to provide relevant suggestions.
⌘I

