palbaseDocs

Palbase Commerce & Promotions · API

GET/commerce/catalog/products/{product_id_or_handle}/recommendations

Get product recommendations for a given product

Return similar, frequently bought together, or custom strategy recommendations for a product by UUID or handle.

Called by your app, with the publishable key; or a signed-in user of your app, with their token and the publishable key; or your server, with the project's secret key.

Path

product_id_or_handlestring · requiredProduct UUID or handle.

Query

strategystring · optionalRecommendation strategy (default similar).
max_resultsinteger · optionalMaximum recommendations to return (1..50, default 8).
channelstring · optionalOptional sales channel key.
regionstring · optionalOptional region key.
currencystring · optionalOptional ISO 4217 currency code.
in_stockboolean · optionalFilter recommendations to in-stock products only.
curl
curl -X GET "https://<your-ref>.palbase.studio/commerce/catalog/products/<product_id_or_handle>/recommendations" \
  -H "apikey: $PALBASE_SECRET_KEY"

Responses

200Product recommendations

defaultStandard Palbase JSON error envelope (`error` and `error_description`).

Operation StorefrontProductRecommendations of commerce's contract.