/add-cart
Returns products for cart carousel
GET
https://xyz.search.frenzy.ai/add-cart
Get top N matching products for a given product-id.
Query Parameters
full_description
boolean
To get all products with their attributes set it to true
. (Default false
)
num_matching
integer
Required number of matching products
user_id
string
User Id associated with the request (only required for personalization)
config_id
string
Config ID for A/B text
sku*
string
product-id of the product added to cart
cart-skus*
string
product-ids for all the products in the cart. Add extra parameters for respective products.
shop
string
name of the Shopify Store. (required for shopify stores)
Headers
X-Frenzy-Authorization*
string
API key provided at the time of account creation.
{ // list of matching products
"matching_products": [
"PSS-001-00001",
"PSS-002-00002",
....
...
...
"PSS-010-00015"
]
}
NOTE: For Shopify Customers
num_matching = is set in the portal
Response Object
Example Request
By default, the request will return only the list of matching product-ids.
curl --location --request GET 'https://xyz.search.frenzy.ai/add-cart?cart_skus=6633664512071_45157690442014&sku=7104647135405_41289316270253&num_matching=15' \
--header 'X-Frenzy-Authorization: API_KEY'
Example Request (full_description = true
)
true
)To get all product attributes along with product-ids, set the full_description parameter to true
curl --location --request GET 'https://xyz.search.frenzy.ai/add-cart?cart_skus=6633664512071_45157690442014&sku=7104647135405_41289316270253&num_matching=15&full_description=true' \
--header 'X-Frenzy-Authorization: API_KEY'
Last updated
Was this helpful?