Get Recommended Variants
1 min
GET
https://api.upstartcommerce.com/v1/catalog/live/recommendation/variant/{skuId}
skuIdstring<p>Unique identifier for the SKU (variant) item.</p>
recommendationTypestring<p>Represents the type to get recommendation against. Optional; <code>similar</code> is applied when the parameter is omitted or blank.</p>
top_kstring<p>Maximum number of recommended variants to return (positive integer). Defaults to 20.</p>
customer_idstring<p>Optional customer identifier. When supplied, SKUs the customer has already purchased are excluded from the results. Omitted from the downstream call when absent.</p>
acceptstringGenerated from available response content types
x-upstart-tenantstringTenant identifier associated with the site this call is for.
x-upstart-sitestringUnique identifier for the site.
200<p>Success - <code>recommendations</code> holds the recommended variants and may be empty.</p>
400The request contained information that the server was unable to process. Appropriate errors are provided in the response body.
401The provided credentials were not valid for this endpoint. It may be that they are expired or that the user's roles are insufficient.
404The requested resource was not found in the NoChannel system.
502<p>An upstream service this endpoint depends on was unavailable, timed out, or returned an unusable response.</p>
curl --request GET \
--url https://api.upstartcommerce.com/v1/catalog/live/recommendation/variant/{skuId} \
--header 'accept: application/json' \
--header 'x-upstart-tenant: string' \
--header 'x-upstart-site: string'