Error
A valid request URL is required to generate request examples{
"surface_id": "<string>",
"context": "product",
"market_id": "<string>",
"available_markets": [
"<string>"
],
"generated_at": "<string>",
"shuffle_seed": 123,
"slots": [
{
"position": 123,
"product_id": "<string>",
"handle": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}API Reference
Compose a recommendation surface
Composes a surface by id (or an unsaved draft of it) from the merchant’s current candidate pools, as the storefront would, and returns the product id per slot with the shuffle seed used. Pass anchor for a product or category surface and recent_views to exercise history-seeded steps. Use it to test what shoppers would see; for the editor’s saved-surface preview by name, see the surface preview routes. Read-only: nothing is written or recomputed.
POST
/
recommendations
/
compose
Error
A valid request URL is required to generate request examples{
"surface_id": "<string>",
"context": "product",
"market_id": "<string>",
"available_markets": [
"<string>"
],
"generated_at": "<string>",
"shuffle_seed": 123,
"slots": [
{
"position": 123,
"product_id": "<string>",
"handle": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Authorizations
Body
application/json
Was this page helpful?

