Unique identifier for this evaluation. Echo it back as a line item property (e.g. __as_offer_id) when a shopper adds a recommended product, so the resulting order attributes back to this specific evaluation in AfterSell reporting. Present on successful evaluations; absent on error responses that short-circuit before evaluation.
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"Aftersell \u0026 Upcart Docs","colors":{"primary":"#C20075","light":"#C20075","dark":"#C20075"},"logo":{"light":"https://mintcdn.com/aftersell/SnQwk0JGiG2BpIZt/images/logos/aftersell-logo-black.svg?fit=max\u0026auto=format\u0026n=SnQwk0JGiG2BpIZt\u0026q=85\u0026s=3a4b16f98056fa407d2af5a4f86b7fd8","dark":"https://mintcdn.com/aftersell/SnQwk0JGiG2BpIZt/images/logos/aftersell-logo-white.svg?fit=max\u0026auto=format\u0026n=SnQwk0JGiG2BpIZt\u0026q=85\u0026s=d21a9be0c73e17a2155dd3eb12722d76","href":"https://docs.aftersell.com"},"favicon":{"light":"https://mintcdn.com/aftersell/SnQwk0JGiG2BpIZt/images/logos/aftersell-favicon.svg?fit=max\u0026auto=format\u0026n=SnQwk0JGiG2BpIZt\u0026q=85\u0026s=af8a1fbfca7c9ced3fdae00424ba2dd0","dark":"https://mintcdn.com/aftersell/SnQwk0JGiG2BpIZt/images/logos/aftersell-favicon.svg?fit=max\u0026auto=format\u0026n=SnQwk0JGiG2BpIZt\u0026q=85\u0026s=af8a1fbfca7c9ced3fdae00424ba2dd0"},"navbar":{"links":[{"icon":"home","href":"https://www.aftersell.com","label":"Aftersell Website"},{"icon":"home","href":"https://www.aftersell.com/cart","label":"Upcart Website"}]},"seo":{"metatags":{"canonical":"https://docs.aftersell.com"}},"fonts":{"heading":{"family":"Archivo","weight":600},"body":{"family":"Archivo","weight":400}},"styling":{"eyebrows":"breadcrumbs","codeblocks":{"theme":{"light":"snazzy-light","dark":"github-dark"}},"latex":true},"contextual":{"options":["assistant","chatgpt","claude","view"],"display":"header"},"navigation":{"languages":[{"language":"en","href":"aftersell/welcome_to_aftersell"},{"language":"fr","href":"fr/aftersell/welcome_to_aftersell"},{"language":"es","href":"es/aftersell/welcome_to_aftersell"},{"language":"zh","href":"zh/aftersell/welcome_to_aftersell"},{"language":"ja","href":"ja/aftersell/welcome_to_aftersell"},{"language":"de","href":"de/aftersell/welcome_to_aftersell"},{"language":"ru","href":"ru/aftersell/welcome_to_aftersell"},{"language":"it","href":"it/aftersell/welcome_to_aftersell"},{"language":"nl","href":"nl/aftersell/welcome_to_aftersell"},{"language":"pt","href":"pt/aftersell/welcome_to_aftersell"},{"language":"pl","href":"pl/aftersell/welcome_to_aftersell"},{"language":"ko","href":"ko/aftersell/welcome_to_aftersell"},{"language":"da","href":"da/aftersell/welcome_to_aftersell"},{"language":"ar","href":"ar/aftersell/welcome_to_aftersell"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"aftersell","hasAudioNarration":false,"actualSubdomain":"aftersell","customDomains":["docs.aftersell.com"],"gitSource":{"type":"github","owner":"rokt","repo":"aftersell-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aebbb3984614e84de1190ea","clientVersion":"0.0.4088","searchFilterCounts":[{"language":"en","tag":"Guides","count":267},{"language":"ar","tag":"الأدلة","count":267},{"language":"da","tag":"Vejledninger","count":267},{"language":"de","tag":"Anleitungen","count":267},{"language":"es","tag":"Guías","count":267},{"language":"fr","tag":"Guides","count":267},{"language":"it","tag":"Guide","count":267},{"language":"ja","tag":"ガイド","count":267},{"language":"ko","tag":"가이드","count":267},{"language":"nl","tag":"Handleidingen","count":267},{"language":"pl","tag":"Przewodniki","count":267},{"language":"pt","tag":"Guias","count":267},{"language":"ru","tag":"Руководства","count":267},{"language":"zh","tag":"指南","count":267},{"language":"en","tag":"Aftersell","count":202},{"language":"ar","tag":"Aftersell","count":202},{"language":"da","tag":"Aftersell","count":202},{"language":"de","tag":"Aftersell","count":202},{"language":"es","tag":"Aftersell","count":202},{"language":"fr","tag":"Aftersell","count":202},{"language":"it","tag":"Aftersell","count":202},{"language":"ja","tag":"Aftersell","count":202},{"language":"ko","tag":"Aftersell","count":202},{"language":"nl","tag":"Aftersell","count":202},{"language":"pl","tag":"Aftersell","count":202},{"language":"pt","tag":"Aftersell","count":202},{"language":"ru","tag":"Aftersell","count":202},{"language":"zh","tag":"Aftersell","count":202},{"language":"en","tag":"Upcart","count":133},{"language":"ar","tag":"Upcart","count":133},{"language":"da","tag":"Upcart","count":133},{"language":"de","tag":"Upcart","count":133},{"language":"es","tag":"Upcart","count":133},{"language":"fr","tag":"Upcart","count":133},{"language":"it","tag":"Upcart","count":133},{"language":"ja","tag":"Upcart","count":133},{"language":"ko","tag":"Upcart","count":133},{"language":"nl","tag":"Upcart","count":133},{"language":"pl","tag":"Upcart","count":133},{"language":"pt","tag":"Upcart","count":133},{"language":"ru","tag":"Upcart","count":133},{"language":"zh","tag":"Upcart","count":133},{"language":"en","tag":"Reference","count":68},{"language":"ar","tag":"المرجع","count":68},{"language":"da","tag":"Reference","count":68},{"language":"de","tag":"Referenz","count":68},{"language":"es","tag":"Referencia","count":68},{"language":"fr","tag":"Référence","count":68},{"language":"it","tag":"Riferimento","count":68},{"language":"ja","tag":"リファレンス","count":68},{"language":"ko","tag":"참조","count":68},{"language":"nl","tag":"Referentie","count":68},{"language":"pl","tag":"Dokumentacja","count":68},{"language":"pt","tag":"Referência","count":68},{"language":"ru","tag":"Справочник","count":68},{"language":"zh","tag":"参考","count":68},{"language":"en","tag":"Aftersell Cart","count":48},{"language":"ar","tag":"سلة Aftersell","count":48},{"language":"da","tag":"Aftersell-kurv","count":48},{"language":"de","tag":"Aftersell-Warenkorb","count":48},{"language":"es","tag":"Carrito de Aftersell","count":48},{"language":"fr","tag":"Panier Aftersell","count":48},{"language":"it","tag":"Carrello Aftersell","count":48},{"language":"ja","tag":"Aftersell カート","count":48},{"language":"ko","tag":"Aftersell 장바구니","count":48},{"language":"nl","tag":"Aftersell-winkelwagen","count":48},{"language":"pl","tag":"Koszyk Aftersell","count":48},{"language":"pt","tag":"Carrinho Aftersell","count":48},{"language":"ru","tag":"Корзина Aftersell","count":48},{"language":"zh","tag":"Aftersell 购物车","count":48},{"language":"en","tag":"Post-Purchase Upsells","count":45},{"language":"ar","tag":"عروض البيع الإضافي بعد الشراء","count":45},{"language":"da","tag":"Mersalg efter køb","count":45},{"language":"de","tag":"Post-Purchase-Upsells","count":45},{"language":"es","tag":"Ventas adicionales poscompra","count":45},{"language":"fr","tag":"Ventes incitatives post-achat","count":45},{"language":"it","tag":"Upsell post-acquisto","count":45},{"language":"ja","tag":"購入後アップセル","count":45},{"language":"ko","tag":"구매 후 업셀","count":45},{"language":"nl","tag":"Post-purchase upsells","count":45},{"language":"pl","tag":"Upselle po zakupie","count":45},{"language":"pt","tag":"Upsells pós-compra","count":45},{"language":"ru","tag":"Апселлы после покупки","count":45},{"language":"zh","tag":"购后追加销售","count":45},{"language":"en","tag":"Troubleshooting","count":33},{"language":"ar","tag":"استكشاف الأخطاء وإصلاحها","count":33},{"language":"da","tag":"Fejlfinding","count":33},{"language":"de","tag":"Fehlerbehebung","count":33},{"language":"es","tag":"Solución de problemas","count":33},{"language":"fr","tag":"Dépannage","count":33},{"language":"it","tag":"Risoluzione dei problemi","count":33},{"language":"ja","tag":"トラブルシューティング","count":33},{"language":"ko","tag":"문제 해결","count":33},{"language":"nl","tag":"Probleemoplossing","count":33},{"language":"pl","tag":"Rozwiązywanie problemów","count":33},{"language":"pt","tag":"Solução de problemas","count":33},{"language":"ru","tag":"Устранение неполадок","count":33},{"language":"zh","tag":"故障排除","count":33},{"language":"en","tag":"Cart Modules","count":22},{"language":"ar","tag":"وحدات السلة","count":22},{"language":"da","tag":"Kurvmoduler","count":22},{"language":"de","tag":"Warenkorb-Module","count":22},{"language":"es","tag":"Módulos del carrito","count":22},{"language":"fr","tag":"Modules de panier","count":22},{"language":"it","tag":"Moduli del carrello","count":22},{"language":"ja","tag":"カートモジュール","count":22},{"language":"ko","tag":"장바구니 모듈","count":22},{"language":"nl","tag":"Winkelwagenmodules","count":22},{"language":"pl","tag":"Moduły koszyka","count":22},{"language":"pt","tag":"Módulos do carrinho","count":22},{"language":"ru","tag":"Модули корзины","count":22},{"language":"zh","tag":"购物车模块","count":22},{"language":"en","tag":"Setup \u0026 Configuration","count":21},{"language":"ar","tag":"الإعداد والتهيئة","count":21},{"language":"da","tag":"Opsætning og konfiguration","count":21},{"language":"de","tag":"Einrichtung \u0026 Konfiguration","count":21},{"language":"es","tag":"Instalación y configuración","count":21},{"language":"fr","tag":"Installation et configuration","count":21},{"language":"it","tag":"Installazione e configurazione","count":21},{"language":"ja","tag":"セットアップと設定","count":21},{"language":"ko","tag":"설정 및 구성","count":21},{"language":"nl","tag":"Installatie en configuratie","count":21},{"language":"pl","tag":"Instalacja i konfiguracja","count":21},{"language":"pt","tag":"Instalação e configuração","count":21},{"language":"ru","tag":"Установка и настройка","count":21},{"language":"zh","tag":"设置与配置","count":21},{"language":"en","tag":"Cart blocks","count":18},{"language":"ar","tag":"كتل السلة","count":18},{"language":"da","tag":"Kurvblokke","count":18},{"language":"de","tag":"Warenkorb-Blöcke","count":18},{"language":"es","tag":"Bloques del carrito","count":18},{"language":"fr","tag":"Blocs de panier","count":18},{"language":"it","tag":"Blocchi del carrello","count":18},{"language":"ja","tag":"カートブロック","count":18},{"language":"ko","tag":"장바구니 블록","count":18},{"language":"nl","tag":"Winkelwagenblokken","count":18},{"language":"pl","tag":"Bloki koszyka","count":18},{"language":"pt","tag":"Blocos do carrinho","count":18},{"language":"ru","tag":"Блоки корзины","count":18},{"language":"zh","tag":"购物车区块","count":18}],"searchSettings":{"maxResults":10,"isFiltersEnabled":true}},"assistantConfig":{"enableStarterQuestions":false,"deflection":{"enabled":true,"email":"support@aftersell.app"}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[],"page":{"pagePath":"pl/aftersell/strategies_api_reference_evaluate_strategy","slug":"/pl/aftersell/strategies_api_reference_evaluate_strategy","pageMetadata":{"title":"Ewaluacja strategii","keywords":["ewaluacja strategii","API strategii","API rekomendacji produktów","endpoint evaluate","referencja API","X-Strategy-Api-Key","targetowanie produktów","silnik rekomendacji"],"openapi":"api/strategies.json POST /api/public/strategy/evaluate","description":"Evaluate a strategy against provided context to return the desired experience.","href":"/pl/aftersell/strategies_api_reference_evaluate_strategy"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Evaluate a strategy against provided context to return the desired experience.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"codeStyling":{"theme":{"light":"snazzy-light","dark":"github-dark"}},"config":{},"pageMetadata":{"title":"Ewaluacja strategii","keywords":["ewaluacja strategii","API strategii","API rekomendacji produktów","endpoint evaluate","referencja API","X-Strategy-Api-Key","targetowanie produktów","silnik rekomendacji"],"openapi":"api/strategies.json POST /api/public/strategy/evaluate","description":"Evaluate a strategy against provided context to return the desired experience.","href":"/pl/aftersell/strategies_api_reference_evaluate_strategy"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"evaluateStrategy","summary":"Evaluate Strategy","description":"Evaluate a strategy against provided context to return the desired experience.","requestBody":"5458009f-6cc3-45b9-b09a-1ec8c58b7278","responses":{"200":"5fef4c10-c06f-43f6-a921-7ccef8670c03","400":"d45f6ff8-e104-4b47-b628-60bbdc700397","401":"7d1c7d05-fc7a-4b1e-a735-3b6b0b99043c","403":"6575e198-4891-4be3-84ad-f7d8b1c39404","500":"79f72ae5-5a6d-4d86-a26a-7a3310280b67"},"method":"post","type":"path","servers":["506d1b41-1bb2-4e9a-bd72-80f5a3848ba8"],"security":["d46a218a-89ed-4008-ab54-b94b5a7b5a91"],"path":"/api/public/strategy/evaluate","baseUrlOptions":["https://start.aftersell.app"],"title":"Evaluate Strategy","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["shopDomain","strategyId","context"],"properties":{"shopDomain":{"type":"string","description":"Your store's permanent domain","isRequired":true,"uniqueKey":"shopDomain","typeLabel":"string"},"strategyId":{"type":"string","description":"The strategy ID to evaluate (a single 24-char hex MongoDB ObjectId)","isRequired":true,"uniqueKey":"strategyId","typeLabel":"string"},"context":{"type":"object","properties":{"products":{"type":"array","items":{"type":"object","required":["productId"],"properties":{"productId":{"type":"string","description":"Shopify GID format: `gid://shopify/Product/{id}`","isRequired":true,"uniqueKey":"context.products.items.[INDEX].productId","typeLabel":"string"},"variantId":{"type":"string","description":"Shopify GID format: `gid://shopify/ProductVariant/{id}`","uniqueKey":"context.products.items.[INDEX].variantId","typeLabel":"string"},"quantity":{"type":"number","description":"Item quantity (non-negative integer)","minimum":0,"uniqueKey":"context.products.items.[INDEX].quantity","typeLabel":"number"},"price":{"type":"number","description":"Unit price in dollars (non-negative)","minimum":0,"uniqueKey":"context.products.items.[INDEX].price","typeLabel":"number"},"handle":{"type":"string","description":"Product handle/slug","uniqueKey":"context.products.items.[INDEX].handle","typeLabel":"string"},"title":{"type":"string","description":"Product title","uniqueKey":"context.products.items.[INDEX].title","typeLabel":"string"},"vendor":{"type":"string","description":"Product vendor name","uniqueKey":"context.products.items.[INDEX].vendor","typeLabel":"string"},"productType":{"type":"string","description":"Product type","uniqueKey":"context.products.items.[INDEX].productType","typeLabel":"string"},"tags":{"type":"array","items":{"type":"string","uniqueKey":"context.products.items.[INDEX].tags.items.[INDEX]","typeLabel":"string"},"description":"Product tags","uniqueKey":"context.products.items.[INDEX].tags","typeLabel":"string[]"},"collections":{"type":"array","items":{"type":"string","uniqueKey":"context.products.items.[INDEX].collections.items.[INDEX]","typeLabel":"string"},"description":"Collection GIDs the product belongs to","uniqueKey":"context.products.items.[INDEX].collections","typeLabel":"string[]"},"sellingPlan":{"type":"string","enum":["subscription","one-time"],"description":"Selling plan type","uniqueKey":"context.products.items.[INDEX].sellingPlan","typeLabel":"enum\u003cstring>"},"metafields":{"type":"array","items":{"type":"object","required":["namespace","key","value"],"properties":{"namespace":{"type":"string","description":"Metafield namespace","isRequired":true,"uniqueKey":"context.products.items.[INDEX].metafields.items.[INDEX].namespace","typeLabel":"string"},"key":{"type":"string","description":"Metafield key","isRequired":true,"uniqueKey":"context.products.items.[INDEX].metafields.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"Metafield value","isRequired":true,"uniqueKey":"context.products.items.[INDEX].metafields.items.[INDEX].value","typeLabel":"string"}},"uniqueKey":"context.products.items.[INDEX].metafields.items.[INDEX]","typeLabel":"object"},"description":"Product metafields for predicate matching. Used for evaluation only — never returned in the response.","uniqueKey":"context.products.items.[INDEX].metafields","typeLabel":"object[]"}},"uniqueKey":"context.products.items.[INDEX]","typeLabel":"object"},"description":"Products to evaluate the strategy against. Optional — omit or pass `[]` to evaluate context-only rules (e.g. cart, customer, session, datetime predicates) such as a curated collection for an empty cart. Product-scoped predicates fall through to `false` when no products are supplied.","uniqueKey":"context.products","typeLabel":"object[]"},"cartToken":{"type":"string","description":"Shopify cart token. Either `cartToken` or `checkoutToken` must be provided.","uniqueKey":"context.cartToken","typeLabel":"string"},"checkoutToken":{"type":"string","description":"Shopify checkout token. Either `cartToken` or `checkoutToken` must be provided.","uniqueKey":"context.checkoutToken","typeLabel":"string"},"sessionId":{"type":"string","description":"Optional session identifier for tracking and tracing","uniqueKey":"context.sessionId","typeLabel":"string"},"cart":{"type":"object","properties":{"subtotal":{"type":"number","description":"Cart subtotal in store-currency major units (e.g. dollars), consistent with product `price`. The value is compared verbatim against `cart_subtotal` rule thresholds — no unit conversion is applied — so send the same units you author your rules in.","minimum":0,"uniqueKey":"context.cart.subtotal","typeLabel":"number"},"itemCount":{"type":"number","description":"Total item quantity across all lines","minimum":0,"uniqueKey":"context.cart.itemCount","typeLabel":"number"},"lineCount":{"type":"number","description":"Number of distinct line items","minimum":0,"uniqueKey":"context.cart.lineCount","typeLabel":"number"},"attributes":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"context.cart.attributes.additionalProperties","typeLabel":"string"},"description":"Cart attributes as a key-value map","uniqueKey":"context.cart.attributes","typeLabel":"object"},"notes":{"type":"string","description":"Cart note","uniqueKey":"context.cart.notes","typeLabel":"string"}},"uniqueKey":"context.cart","typeLabel":"object"},"customer":{"type":"object","properties":{"customerId":{"type":"string","description":"Shopify Customer GID","uniqueKey":"context.customer.customerId","typeLabel":"string"},"tags":{"type":"array","items":{"type":"string","uniqueKey":"context.customer.tags.items.[INDEX]","typeLabel":"string"},"description":"Customer tags","uniqueKey":"context.customer.tags","typeLabel":"string[]"},"countryCode":{"type":"string","description":"Customer billing country code","uniqueKey":"context.customer.countryCode","typeLabel":"string"},"provinceCode":{"type":"string","description":"Customer billing province code","uniqueKey":"context.customer.provinceCode","typeLabel":"string"},"locale":{"type":"string","description":"Customer locale","uniqueKey":"context.customer.locale","typeLabel":"string"},"orderCount":{"type":"number","description":"Number of orders placed","minimum":0,"uniqueKey":"context.customer.orderCount","typeLabel":"number"},"totalSpent":{"type":"number","description":"Lifetime spend in store currency","minimum":0,"uniqueKey":"context.customer.totalSpent","typeLabel":"number"},"acceptsMarketing":{"type":"boolean","description":"Whether the customer accepts marketing","uniqueKey":"context.customer.acceptsMarketing","typeLabel":"boolean"}},"uniqueKey":"context.customer","typeLabel":"object"},"session":{"type":"object","properties":{"landingUrl":{"type":"string","description":"Raw landing URL (e.g. window.location.href). Matched by the `landing_url` predicate via case-insensitive substring/equality - use this to target a specific campaign or channel by matching a parameter embedded in the URL.","uniqueKey":"context.session.landingUrl","typeLabel":"string"},"currencyCode":{"type":"string","description":"Store currency code","uniqueKey":"context.session.currencyCode","typeLabel":"string"},"shippingCountryCode":{"type":"string","description":"Shipping destination country code","uniqueKey":"context.session.shippingCountryCode","typeLabel":"string"},"shippingProvinceCode":{"type":"string","description":"Shipping destination province code","uniqueKey":"context.session.shippingProvinceCode","typeLabel":"string"},"shippingMethod":{"type":"string","description":"Selected shipping method name","uniqueKey":"context.session.shippingMethod","typeLabel":"string"}},"uniqueKey":"context.session","typeLabel":"object"},"visitorId":{"type":"string","maxLength":64,"description":"Optional viewer key used to resolve the shopper's recently-viewed history. This is not a Hermes session id, and it does not satisfy the `cartToken` / `checkoutToken` requirement. Fails open — an invalid value is ignored rather than rejected.","uniqueKey":"context.visitorId","typeLabel":"string"},"localization":{"type":"object","description":"Buyer localization, used to select Shopify-computed contextual prices on multi-currency stores. Every field is optional and fails open: a malformed value is ignored rather than rejected, and pricing falls back to the shop currency.","properties":{"country":{"type":"string","description":"Buyer's country as an ISO 3166-1 alpha-2 code. Validated against Shopify's CountryCode enum and used for Admin API contextual pricing. Case-insensitive.","example":"AU","uniqueKey":"context.localization.country","typeLabel":"string"},"currency":{"type":"string","description":"Buyer's presentment currency as an ISO 4217 three-letter code. Case-insensitive. Used as a targeting input only: it fills `context.session.currencyCode`, the value the `store_currency_code` rule predicate matches against, and only when the caller has not already supplied one. It does not set the `currencyCode` returned on recommended products — that follows Shopify contextual pricing, which is selected by `localization.country`, and otherwise falls back to the shop's own currency. Unlike `country`, this value is only checked for being three letters; an unrecognised code is accepted and simply matches no rule.","example":"AUD","uniqueKey":"context.localization.currency","typeLabel":"string"},"language":{"type":"string","maxLength":35,"description":"Buyer's language tag, e.g. `en` or `en-AU`. Reserved for future translation support.","example":"en-AU","uniqueKey":"context.localization.language","typeLabel":"string"}},"uniqueKey":"context.localization","typeLabel":"object"}},"isRequired":true,"uniqueKey":"context","typeLabel":"object"},"surface":{"type":"string","enum":["checkout","post_purchase","thank_you","custom","cart","pdp"],"description":"Optional surface the evaluation is running on. Recorded for tracing and reporting.","uniqueKey":"surface","typeLabel":"enum\u003cstring>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"shopDomain":"\u003cstring>","strategyId":"\u003cstring>","context":{"products":[{"productId":"\u003cstring>","variantId":"\u003cstring>","quantity":1,"price":1,"handle":"\u003cstring>","title":"\u003cstring>","vendor":"\u003cstring>","productType":"\u003cstring>","tags":["\u003cstring>"],"collections":["\u003cstring>"],"metafields":[{"namespace":"\u003cstring>","key":"\u003cstring>","value":"\u003cstring>"}]}],"cartToken":"\u003cstring>","checkoutToken":"\u003cstring>","sessionId":"\u003cstring>","cart":{"subtotal":1,"itemCount":1,"lineCount":1,"attributes":{},"notes":"\u003cstring>"},"customer":{"customerId":"\u003cstring>","tags":["\u003cstring>"],"countryCode":"\u003cstring>","provinceCode":"\u003cstring>","locale":"\u003cstring>","orderCount":1,"totalSpent":1,"acceptsMarketing":true},"session":{"landingUrl":"\u003cstring>","currencyCode":"\u003cstring>","shippingCountryCode":"\u003cstring>","shippingProvinceCode":"\u003cstring>","shippingMethod":"\u003cstring>"},"visitorId":"\u003cstring>","localization":{"country":"AU","currency":"AUD","language":"en-AU"}}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"5fef4c10-c06f-43f6-a921-7ccef8670c03":{"description":"Evaluation successful","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Whether the evaluation succeeded","uniqueKey":"success","typeLabel":"boolean"},"products":{"type":"array","items":{"type":"object","properties":{"productId":{"type":"string","description":"Shopify Product GID","uniqueKey":"products.items.[INDEX].productId","typeLabel":"string"},"handle":{"type":"string","description":"Product handle/slug","uniqueKey":"products.items.[INDEX].handle","typeLabel":"string"},"title":{"type":"string","description":"Product title","uniqueKey":"products.items.[INDEX].title","typeLabel":"string"},"vendor":{"type":"string","description":"Vendor name","uniqueKey":"products.items.[INDEX].vendor","typeLabel":"string"},"productType":{"type":"string","description":"Product type","uniqueKey":"products.items.[INDEX].productType","typeLabel":"string"},"price":{"type":"string","description":"Lowest variant price as a dollar-amount string","uniqueKey":"products.items.[INDEX].price","typeLabel":"string"},"compareAtPrice":{"oneOf":[{"type":"string","description":"Compare-at price, or null if not set","uniqueKey":"products.items.[INDEX].compareAtPrice.oneOf.0","typeLabel":"string"},{"type":"null","description":"Compare-at price, or null if not set","uniqueKey":"products.items.[INDEX].compareAtPrice.oneOf.1","typeLabel":"null"}],"uniqueKey":"products.items.[INDEX].compareAtPrice","typeLabel":"string | null"},"currencyCode":{"type":"string","description":"ISO 4217 currency of the product-level `price` and `compareAtPrice` rollup: the buyer's market currency when contextual pricing was resolved (see `context.localization`), otherwise the shop currency. May be absent, in which case fall back to your own presentment currency.","uniqueKey":"products.items.[INDEX].currencyCode","typeLabel":"string"},"availableForSale":{"type":"boolean","description":"Whether the product is available for purchase","uniqueKey":"products.items.[INDEX].availableForSale","typeLabel":"boolean"},"description":{"type":"string","description":"Product description","uniqueKey":"products.items.[INDEX].description","typeLabel":"string"},"url":{"type":"string","description":"Relative product URL","uniqueKey":"products.items.[INDEX].url","typeLabel":"string"},"tags":{"type":"array","items":{"type":"string","uniqueKey":"products.items.[INDEX].tags.items.[INDEX]","typeLabel":"string"},"uniqueKey":"products.items.[INDEX].tags","typeLabel":"string[]"},"collectionIds":{"type":"array","items":{"type":"string","uniqueKey":"products.items.[INDEX].collectionIds.items.[INDEX]","typeLabel":"string"},"uniqueKey":"products.items.[INDEX].collectionIds","typeLabel":"string[]"},"images":{"type":"array","items":{"type":"object","properties":{"src":{"type":"string","description":"Image URL","uniqueKey":"products.items.[INDEX].images.items.[INDEX].src","typeLabel":"string"},"altText":{"type":"string","description":"Image alt text (may be absent)","uniqueKey":"products.items.[INDEX].images.items.[INDEX].altText","typeLabel":"string"},"position":{"type":"number","description":"Image sort position","uniqueKey":"products.items.[INDEX].images.items.[INDEX].position","typeLabel":"number"}},"uniqueKey":"products.items.[INDEX].images.items.[INDEX]","typeLabel":"object"},"uniqueKey":"products.items.[INDEX].images","typeLabel":"object[]"},"variants":{"type":"array","items":{"type":"object","properties":{"variantId":{"type":"string","description":"Shopify ProductVariant GID","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].variantId","typeLabel":"string"},"title":{"type":"string","description":"Variant title","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].title","typeLabel":"string"},"price":{"type":"string","description":"Variant price as a dollar-amount string","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].price","typeLabel":"string"},"compareAtPrice":{"oneOf":[{"type":"string","description":"Variant compare-at price, or null","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].compareAtPrice.oneOf.0","typeLabel":"string"},{"type":"null","description":"Variant compare-at price, or null","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].compareAtPrice.oneOf.1","typeLabel":"null"}],"uniqueKey":"products.items.[INDEX].variants.items.[INDEX].compareAtPrice","typeLabel":"string | null"},"currencyCode":{"type":"string","description":"ISO 4217 currency of `price` and `compareAtPrice`: the buyer's market currency when contextual pricing was resolved (see `context.localization`), otherwise the shop currency. May be absent, in which case fall back to your own presentment currency.","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].currencyCode","typeLabel":"string"},"availableForSale":{"type":"boolean","description":"Whether this variant is available","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].availableForSale","typeLabel":"boolean"},"sku":{"type":"string","description":"Variant SKU (may be absent)","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].sku","typeLabel":"string"},"image":{"type":"object","properties":{"src":{"type":"string","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].image.src","typeLabel":"string"}},"description":"Variant-specific image, used to swap the card image on variant select. Absent when the variant has no distinct image — fall back to the product image.","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].image","typeLabel":"object"},"selectedOptions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].selectedOptions.items.[INDEX].name","typeLabel":"string"},"value":{"type":"string","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].selectedOptions.items.[INDEX].value","typeLabel":"string"}},"uniqueKey":"products.items.[INDEX].variants.items.[INDEX].selectedOptions.items.[INDEX]","typeLabel":"object"},"description":"Array of option name/value pairs (may be absent)","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].selectedOptions","typeLabel":"object[]"}},"uniqueKey":"products.items.[INDEX].variants.items.[INDEX]","typeLabel":"object"},"uniqueKey":"products.items.[INDEX].variants","typeLabel":"object[]"}},"uniqueKey":"products.items.[INDEX]","typeLabel":"object"},"description":"Fully enriched recommended products","uniqueKey":"products","typeLabel":"object[]"},"evaluationId":{"type":"string","description":"Unique identifier for this evaluation. Echo it back as a line item property (e.g. `__as_offer_id`) when a shopper adds a recommended product, so the resulting order attributes back to this specific evaluation in AfterSell reporting. Present on successful evaluations; absent on error responses that short-circuit before evaluation.","uniqueKey":"evaluationId","typeLabel":"string"},"resolution":{"type":"object","properties":{"strategyId":{"oneOf":[{"type":"string","description":"The strategy that produced the result. `null` on any error response, and on a successful evaluation where no strategy matched the requested ID for this shop; otherwise echoes the requested `strategyId`.","uniqueKey":"resolution.strategyId.oneOf.0","typeLabel":"string"},{"type":"null","description":"The strategy that produced the result. `null` on any error response, and on a successful evaluation where no strategy matched the requested ID for this shop; otherwise echoes the requested `strategyId`.","uniqueKey":"resolution.strategyId.oneOf.1","typeLabel":"null"}],"uniqueKey":"resolution.strategyId","typeLabel":"string | null"},"matchedRuleIds":{"type":"array","items":{"type":"string","uniqueKey":"resolution.matchedRuleIds.items.[INDEX]","typeLabel":"string"},"description":"IDs of rules that matched","uniqueKey":"resolution.matchedRuleIds","typeLabel":"string[]"},"selectionMethod":{"type":"string","description":"Always `rules_engine`","uniqueKey":"resolution.selectionMethod","typeLabel":"string"},"fallbackUsed":{"type":"boolean","description":"Whether fallback logic was used","uniqueKey":"resolution.fallbackUsed","typeLabel":"boolean"}},"uniqueKey":"resolution","typeLabel":"object"},"meta":{"type":"object","properties":{"servedFromCache":{"type":"boolean","description":"Whether product data was served from cache","uniqueKey":"meta.servedFromCache","typeLabel":"boolean"},"processingTimeMs":{"type":"number","description":"Server-side processing time in milliseconds","uniqueKey":"meta.processingTimeMs","typeLabel":"number"},"data":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"meta.data.additionalProperties","typeLabel":"string"},"description":"Key-value pairs emitted by matched rules with `key_value` outputs. Values are always strings. Always present; may be an empty object. Keys from the first matching rule win.","uniqueKey":"meta.data","typeLabel":"object"},"explanation":{"type":"string","description":"Optional debug explanation (may be absent)","uniqueKey":"meta.explanation","typeLabel":"string"}},"uniqueKey":"meta","typeLabel":"object"},"errors":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Error code","uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error description","uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"description":"Present only when errors occur","uniqueKey":"errors","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":true,"products":[{"productId":"\u003cstring>","handle":"\u003cstring>","title":"\u003cstring>","vendor":"\u003cstring>","productType":"\u003cstring>","price":"\u003cstring>","compareAtPrice":"\u003cstring>","currencyCode":"\u003cstring>","availableForSale":true,"description":"\u003cstring>","url":"\u003cstring>","tags":["\u003cstring>"],"collectionIds":["\u003cstring>"],"images":[{"src":"\u003cstring>","altText":"\u003cstring>","position":123}],"variants":[{"variantId":"\u003cstring>","title":"\u003cstring>","price":"\u003cstring>","compareAtPrice":"\u003cstring>","currencyCode":"\u003cstring>","availableForSale":true,"sku":"\u003cstring>","image":{"src":"\u003cstring>"},"selectedOptions":[{"name":"\u003cstring>","value":"\u003cstring>"}]}]}],"evaluationId":"\u003cstring>","resolution":{"strategyId":"\u003cstring>","matchedRuleIds":["\u003cstring>"],"selectionMethod":"\u003cstring>","fallbackUsed":true},"meta":{"servedFromCache":true,"processingTimeMs":123,"data":{},"explanation":"\u003cstring>"},"errors":[{"code":"\u003cstring>","message":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"d45f6ff8-e104-4b47-b628-60bbdc700397":{"description":"Validation error — missing required fields, invalid ObjectId format, or neither `cartToken` nor `checkoutToken` provided","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Whether the evaluation succeeded","uniqueKey":"success","typeLabel":"boolean"},"products":{"type":"array","items":{"type":"object","properties":{"productId":{"type":"string","description":"Shopify Product GID","uniqueKey":"products.items.[INDEX].productId","typeLabel":"string"},"handle":{"type":"string","description":"Product handle/slug","uniqueKey":"products.items.[INDEX].handle","typeLabel":"string"},"title":{"type":"string","description":"Product title","uniqueKey":"products.items.[INDEX].title","typeLabel":"string"},"vendor":{"type":"string","description":"Vendor name","uniqueKey":"products.items.[INDEX].vendor","typeLabel":"string"},"productType":{"type":"string","description":"Product type","uniqueKey":"products.items.[INDEX].productType","typeLabel":"string"},"price":{"type":"string","description":"Lowest variant price as a dollar-amount string","uniqueKey":"products.items.[INDEX].price","typeLabel":"string"},"compareAtPrice":{"oneOf":[{"type":"string","description":"Compare-at price, or null if not set","uniqueKey":"products.items.[INDEX].compareAtPrice.oneOf.0","typeLabel":"string"},{"type":"null","description":"Compare-at price, or null if not set","uniqueKey":"products.items.[INDEX].compareAtPrice.oneOf.1","typeLabel":"null"}],"uniqueKey":"products.items.[INDEX].compareAtPrice","typeLabel":"string | null"},"currencyCode":{"type":"string","description":"ISO 4217 currency of the product-level `price` and `compareAtPrice` rollup: the buyer's market currency when contextual pricing was resolved (see `context.localization`), otherwise the shop currency. May be absent, in which case fall back to your own presentment currency.","uniqueKey":"products.items.[INDEX].currencyCode","typeLabel":"string"},"availableForSale":{"type":"boolean","description":"Whether the product is available for purchase","uniqueKey":"products.items.[INDEX].availableForSale","typeLabel":"boolean"},"description":{"type":"string","description":"Product description","uniqueKey":"products.items.[INDEX].description","typeLabel":"string"},"url":{"type":"string","description":"Relative product URL","uniqueKey":"products.items.[INDEX].url","typeLabel":"string"},"tags":{"type":"array","items":{"type":"string","uniqueKey":"products.items.[INDEX].tags.items.[INDEX]","typeLabel":"string"},"uniqueKey":"products.items.[INDEX].tags","typeLabel":"string[]"},"collectionIds":{"type":"array","items":{"type":"string","uniqueKey":"products.items.[INDEX].collectionIds.items.[INDEX]","typeLabel":"string"},"uniqueKey":"products.items.[INDEX].collectionIds","typeLabel":"string[]"},"images":{"type":"array","items":{"type":"object","properties":{"src":{"type":"string","description":"Image URL","uniqueKey":"products.items.[INDEX].images.items.[INDEX].src","typeLabel":"string"},"altText":{"type":"string","description":"Image alt text (may be absent)","uniqueKey":"products.items.[INDEX].images.items.[INDEX].altText","typeLabel":"string"},"position":{"type":"number","description":"Image sort position","uniqueKey":"products.items.[INDEX].images.items.[INDEX].position","typeLabel":"number"}},"uniqueKey":"products.items.[INDEX].images.items.[INDEX]","typeLabel":"object"},"uniqueKey":"products.items.[INDEX].images","typeLabel":"object[]"},"variants":{"type":"array","items":{"type":"object","properties":{"variantId":{"type":"string","description":"Shopify ProductVariant GID","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].variantId","typeLabel":"string"},"title":{"type":"string","description":"Variant title","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].title","typeLabel":"string"},"price":{"type":"string","description":"Variant price as a dollar-amount string","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].price","typeLabel":"string"},"compareAtPrice":{"oneOf":[{"type":"string","description":"Variant compare-at price, or null","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].compareAtPrice.oneOf.0","typeLabel":"string"},{"type":"null","description":"Variant compare-at price, or null","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].compareAtPrice.oneOf.1","typeLabel":"null"}],"uniqueKey":"products.items.[INDEX].variants.items.[INDEX].compareAtPrice","typeLabel":"string | null"},"currencyCode":{"type":"string","description":"ISO 4217 currency of `price` and `compareAtPrice`: the buyer's market currency when contextual pricing was resolved (see `context.localization`), otherwise the shop currency. May be absent, in which case fall back to your own presentment currency.","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].currencyCode","typeLabel":"string"},"availableForSale":{"type":"boolean","description":"Whether this variant is available","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].availableForSale","typeLabel":"boolean"},"sku":{"type":"string","description":"Variant SKU (may be absent)","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].sku","typeLabel":"string"},"image":{"type":"object","properties":{"src":{"type":"string","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].image.src","typeLabel":"string"}},"description":"Variant-specific image, used to swap the card image on variant select. Absent when the variant has no distinct image — fall back to the product image.","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].image","typeLabel":"object"},"selectedOptions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].selectedOptions.items.[INDEX].name","typeLabel":"string"},"value":{"type":"string","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].selectedOptions.items.[INDEX].value","typeLabel":"string"}},"uniqueKey":"products.items.[INDEX].variants.items.[INDEX].selectedOptions.items.[INDEX]","typeLabel":"object"},"description":"Array of option name/value pairs (may be absent)","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].selectedOptions","typeLabel":"object[]"}},"uniqueKey":"products.items.[INDEX].variants.items.[INDEX]","typeLabel":"object"},"uniqueKey":"products.items.[INDEX].variants","typeLabel":"object[]"}},"uniqueKey":"products.items.[INDEX]","typeLabel":"object"},"description":"Fully enriched recommended products","uniqueKey":"products","typeLabel":"object[]"},"evaluationId":{"type":"string","description":"Unique identifier for this evaluation. Echo it back as a line item property (e.g. `__as_offer_id`) when a shopper adds a recommended product, so the resulting order attributes back to this specific evaluation in AfterSell reporting. Present on successful evaluations; absent on error responses that short-circuit before evaluation.","uniqueKey":"evaluationId","typeLabel":"string"},"resolution":{"type":"object","properties":{"strategyId":{"oneOf":[{"type":"string","description":"The strategy that produced the result. `null` on any error response, and on a successful evaluation where no strategy matched the requested ID for this shop; otherwise echoes the requested `strategyId`.","uniqueKey":"resolution.strategyId.oneOf.0","typeLabel":"string"},{"type":"null","description":"The strategy that produced the result. `null` on any error response, and on a successful evaluation where no strategy matched the requested ID for this shop; otherwise echoes the requested `strategyId`.","uniqueKey":"resolution.strategyId.oneOf.1","typeLabel":"null"}],"uniqueKey":"resolution.strategyId","typeLabel":"string | null"},"matchedRuleIds":{"type":"array","items":{"type":"string","uniqueKey":"resolution.matchedRuleIds.items.[INDEX]","typeLabel":"string"},"description":"IDs of rules that matched","uniqueKey":"resolution.matchedRuleIds","typeLabel":"string[]"},"selectionMethod":{"type":"string","description":"Always `rules_engine`","uniqueKey":"resolution.selectionMethod","typeLabel":"string"},"fallbackUsed":{"type":"boolean","description":"Whether fallback logic was used","uniqueKey":"resolution.fallbackUsed","typeLabel":"boolean"}},"uniqueKey":"resolution","typeLabel":"object"},"meta":{"type":"object","properties":{"servedFromCache":{"type":"boolean","description":"Whether product data was served from cache","uniqueKey":"meta.servedFromCache","typeLabel":"boolean"},"processingTimeMs":{"type":"number","description":"Server-side processing time in milliseconds","uniqueKey":"meta.processingTimeMs","typeLabel":"number"},"data":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"meta.data.additionalProperties","typeLabel":"string"},"description":"Key-value pairs emitted by matched rules with `key_value` outputs. Values are always strings. Always present; may be an empty object. Keys from the first matching rule win.","uniqueKey":"meta.data","typeLabel":"object"},"explanation":{"type":"string","description":"Optional debug explanation (may be absent)","uniqueKey":"meta.explanation","typeLabel":"string"}},"uniqueKey":"meta","typeLabel":"object"},"errors":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Error code","uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error description","uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"description":"Present only when errors occur","uniqueKey":"errors","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"VALIDATION_ERROR":{"title":"VALIDATION_ERROR","value":{"success":false,"products":[],"resolution":{"strategyId":null,"matchedRuleIds":[],"selectionMethod":"rules_engine","fallbackUsed":false},"meta":{"servedFromCache":false,"processingTimeMs":0,"data":{}},"errors":[{"code":"VALIDATION_ERROR","message":"Validation failed"}]}}},"exampleType":"examples"}},"exampleType":"examples"},"7d1c7d05-fc7a-4b1e-a735-3b6b0b99043c":{"description":"Authentication error — missing or invalid API key, key not configured for shop, or unrecognized shop domain. No further detail is returned in the response body.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Whether the evaluation succeeded","uniqueKey":"success","typeLabel":"boolean"},"products":{"type":"array","items":{"type":"object","properties":{"productId":{"type":"string","description":"Shopify Product GID","uniqueKey":"products.items.[INDEX].productId","typeLabel":"string"},"handle":{"type":"string","description":"Product handle/slug","uniqueKey":"products.items.[INDEX].handle","typeLabel":"string"},"title":{"type":"string","description":"Product title","uniqueKey":"products.items.[INDEX].title","typeLabel":"string"},"vendor":{"type":"string","description":"Vendor name","uniqueKey":"products.items.[INDEX].vendor","typeLabel":"string"},"productType":{"type":"string","description":"Product type","uniqueKey":"products.items.[INDEX].productType","typeLabel":"string"},"price":{"type":"string","description":"Lowest variant price as a dollar-amount string","uniqueKey":"products.items.[INDEX].price","typeLabel":"string"},"compareAtPrice":{"oneOf":[{"type":"string","description":"Compare-at price, or null if not set","uniqueKey":"products.items.[INDEX].compareAtPrice.oneOf.0","typeLabel":"string"},{"type":"null","description":"Compare-at price, or null if not set","uniqueKey":"products.items.[INDEX].compareAtPrice.oneOf.1","typeLabel":"null"}],"uniqueKey":"products.items.[INDEX].compareAtPrice","typeLabel":"string | null"},"currencyCode":{"type":"string","description":"ISO 4217 currency of the product-level `price` and `compareAtPrice` rollup: the buyer's market currency when contextual pricing was resolved (see `context.localization`), otherwise the shop currency. May be absent, in which case fall back to your own presentment currency.","uniqueKey":"products.items.[INDEX].currencyCode","typeLabel":"string"},"availableForSale":{"type":"boolean","description":"Whether the product is available for purchase","uniqueKey":"products.items.[INDEX].availableForSale","typeLabel":"boolean"},"description":{"type":"string","description":"Product description","uniqueKey":"products.items.[INDEX].description","typeLabel":"string"},"url":{"type":"string","description":"Relative product URL","uniqueKey":"products.items.[INDEX].url","typeLabel":"string"},"tags":{"type":"array","items":{"type":"string","uniqueKey":"products.items.[INDEX].tags.items.[INDEX]","typeLabel":"string"},"uniqueKey":"products.items.[INDEX].tags","typeLabel":"string[]"},"collectionIds":{"type":"array","items":{"type":"string","uniqueKey":"products.items.[INDEX].collectionIds.items.[INDEX]","typeLabel":"string"},"uniqueKey":"products.items.[INDEX].collectionIds","typeLabel":"string[]"},"images":{"type":"array","items":{"type":"object","properties":{"src":{"type":"string","description":"Image URL","uniqueKey":"products.items.[INDEX].images.items.[INDEX].src","typeLabel":"string"},"altText":{"type":"string","description":"Image alt text (may be absent)","uniqueKey":"products.items.[INDEX].images.items.[INDEX].altText","typeLabel":"string"},"position":{"type":"number","description":"Image sort position","uniqueKey":"products.items.[INDEX].images.items.[INDEX].position","typeLabel":"number"}},"uniqueKey":"products.items.[INDEX].images.items.[INDEX]","typeLabel":"object"},"uniqueKey":"products.items.[INDEX].images","typeLabel":"object[]"},"variants":{"type":"array","items":{"type":"object","properties":{"variantId":{"type":"string","description":"Shopify ProductVariant GID","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].variantId","typeLabel":"string"},"title":{"type":"string","description":"Variant title","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].title","typeLabel":"string"},"price":{"type":"string","description":"Variant price as a dollar-amount string","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].price","typeLabel":"string"},"compareAtPrice":{"oneOf":[{"type":"string","description":"Variant compare-at price, or null","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].compareAtPrice.oneOf.0","typeLabel":"string"},{"type":"null","description":"Variant compare-at price, or null","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].compareAtPrice.oneOf.1","typeLabel":"null"}],"uniqueKey":"products.items.[INDEX].variants.items.[INDEX].compareAtPrice","typeLabel":"string | null"},"currencyCode":{"type":"string","description":"ISO 4217 currency of `price` and `compareAtPrice`: the buyer's market currency when contextual pricing was resolved (see `context.localization`), otherwise the shop currency. May be absent, in which case fall back to your own presentment currency.","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].currencyCode","typeLabel":"string"},"availableForSale":{"type":"boolean","description":"Whether this variant is available","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].availableForSale","typeLabel":"boolean"},"sku":{"type":"string","description":"Variant SKU (may be absent)","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].sku","typeLabel":"string"},"image":{"type":"object","properties":{"src":{"type":"string","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].image.src","typeLabel":"string"}},"description":"Variant-specific image, used to swap the card image on variant select. Absent when the variant has no distinct image — fall back to the product image.","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].image","typeLabel":"object"},"selectedOptions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].selectedOptions.items.[INDEX].name","typeLabel":"string"},"value":{"type":"string","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].selectedOptions.items.[INDEX].value","typeLabel":"string"}},"uniqueKey":"products.items.[INDEX].variants.items.[INDEX].selectedOptions.items.[INDEX]","typeLabel":"object"},"description":"Array of option name/value pairs (may be absent)","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].selectedOptions","typeLabel":"object[]"}},"uniqueKey":"products.items.[INDEX].variants.items.[INDEX]","typeLabel":"object"},"uniqueKey":"products.items.[INDEX].variants","typeLabel":"object[]"}},"uniqueKey":"products.items.[INDEX]","typeLabel":"object"},"description":"Fully enriched recommended products","uniqueKey":"products","typeLabel":"object[]"},"evaluationId":{"type":"string","description":"Unique identifier for this evaluation. Echo it back as a line item property (e.g. `__as_offer_id`) when a shopper adds a recommended product, so the resulting order attributes back to this specific evaluation in AfterSell reporting. Present on successful evaluations; absent on error responses that short-circuit before evaluation.","uniqueKey":"evaluationId","typeLabel":"string"},"resolution":{"type":"object","properties":{"strategyId":{"oneOf":[{"type":"string","description":"The strategy that produced the result. `null` on any error response, and on a successful evaluation where no strategy matched the requested ID for this shop; otherwise echoes the requested `strategyId`.","uniqueKey":"resolution.strategyId.oneOf.0","typeLabel":"string"},{"type":"null","description":"The strategy that produced the result. `null` on any error response, and on a successful evaluation where no strategy matched the requested ID for this shop; otherwise echoes the requested `strategyId`.","uniqueKey":"resolution.strategyId.oneOf.1","typeLabel":"null"}],"uniqueKey":"resolution.strategyId","typeLabel":"string | null"},"matchedRuleIds":{"type":"array","items":{"type":"string","uniqueKey":"resolution.matchedRuleIds.items.[INDEX]","typeLabel":"string"},"description":"IDs of rules that matched","uniqueKey":"resolution.matchedRuleIds","typeLabel":"string[]"},"selectionMethod":{"type":"string","description":"Always `rules_engine`","uniqueKey":"resolution.selectionMethod","typeLabel":"string"},"fallbackUsed":{"type":"boolean","description":"Whether fallback logic was used","uniqueKey":"resolution.fallbackUsed","typeLabel":"boolean"}},"uniqueKey":"resolution","typeLabel":"object"},"meta":{"type":"object","properties":{"servedFromCache":{"type":"boolean","description":"Whether product data was served from cache","uniqueKey":"meta.servedFromCache","typeLabel":"boolean"},"processingTimeMs":{"type":"number","description":"Server-side processing time in milliseconds","uniqueKey":"meta.processingTimeMs","typeLabel":"number"},"data":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"meta.data.additionalProperties","typeLabel":"string"},"description":"Key-value pairs emitted by matched rules with `key_value` outputs. Values are always strings. Always present; may be an empty object. Keys from the first matching rule win.","uniqueKey":"meta.data","typeLabel":"object"},"explanation":{"type":"string","description":"Optional debug explanation (may be absent)","uniqueKey":"meta.explanation","typeLabel":"string"}},"uniqueKey":"meta","typeLabel":"object"},"errors":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Error code","uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error description","uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"description":"Present only when errors occur","uniqueKey":"errors","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"AUTH_ERROR":{"title":"AUTH_ERROR","value":{"success":false,"products":[],"resolution":{"strategyId":null,"matchedRuleIds":[],"selectionMethod":"rules_engine","fallbackUsed":false},"meta":{"servedFromCache":false,"processingTimeMs":0,"data":{}},"errors":[{"code":"AUTH_ERROR","message":"Unauthorized"}]}}},"exampleType":"examples"}},"exampleType":"examples"},"6575e198-4891-4be3-84ad-f7d8b1c39404":{"description":"Authorization error — Strategy is not enabled for this shop.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Whether the evaluation succeeded","uniqueKey":"success","typeLabel":"boolean"},"products":{"type":"array","items":{"type":"object","properties":{"productId":{"type":"string","description":"Shopify Product GID","uniqueKey":"products.items.[INDEX].productId","typeLabel":"string"},"handle":{"type":"string","description":"Product handle/slug","uniqueKey":"products.items.[INDEX].handle","typeLabel":"string"},"title":{"type":"string","description":"Product title","uniqueKey":"products.items.[INDEX].title","typeLabel":"string"},"vendor":{"type":"string","description":"Vendor name","uniqueKey":"products.items.[INDEX].vendor","typeLabel":"string"},"productType":{"type":"string","description":"Product type","uniqueKey":"products.items.[INDEX].productType","typeLabel":"string"},"price":{"type":"string","description":"Lowest variant price as a dollar-amount string","uniqueKey":"products.items.[INDEX].price","typeLabel":"string"},"compareAtPrice":{"oneOf":[{"type":"string","description":"Compare-at price, or null if not set","uniqueKey":"products.items.[INDEX].compareAtPrice.oneOf.0","typeLabel":"string"},{"type":"null","description":"Compare-at price, or null if not set","uniqueKey":"products.items.[INDEX].compareAtPrice.oneOf.1","typeLabel":"null"}],"uniqueKey":"products.items.[INDEX].compareAtPrice","typeLabel":"string | null"},"currencyCode":{"type":"string","description":"ISO 4217 currency of the product-level `price` and `compareAtPrice` rollup: the buyer's market currency when contextual pricing was resolved (see `context.localization`), otherwise the shop currency. May be absent, in which case fall back to your own presentment currency.","uniqueKey":"products.items.[INDEX].currencyCode","typeLabel":"string"},"availableForSale":{"type":"boolean","description":"Whether the product is available for purchase","uniqueKey":"products.items.[INDEX].availableForSale","typeLabel":"boolean"},"description":{"type":"string","description":"Product description","uniqueKey":"products.items.[INDEX].description","typeLabel":"string"},"url":{"type":"string","description":"Relative product URL","uniqueKey":"products.items.[INDEX].url","typeLabel":"string"},"tags":{"type":"array","items":{"type":"string","uniqueKey":"products.items.[INDEX].tags.items.[INDEX]","typeLabel":"string"},"uniqueKey":"products.items.[INDEX].tags","typeLabel":"string[]"},"collectionIds":{"type":"array","items":{"type":"string","uniqueKey":"products.items.[INDEX].collectionIds.items.[INDEX]","typeLabel":"string"},"uniqueKey":"products.items.[INDEX].collectionIds","typeLabel":"string[]"},"images":{"type":"array","items":{"type":"object","properties":{"src":{"type":"string","description":"Image URL","uniqueKey":"products.items.[INDEX].images.items.[INDEX].src","typeLabel":"string"},"altText":{"type":"string","description":"Image alt text (may be absent)","uniqueKey":"products.items.[INDEX].images.items.[INDEX].altText","typeLabel":"string"},"position":{"type":"number","description":"Image sort position","uniqueKey":"products.items.[INDEX].images.items.[INDEX].position","typeLabel":"number"}},"uniqueKey":"products.items.[INDEX].images.items.[INDEX]","typeLabel":"object"},"uniqueKey":"products.items.[INDEX].images","typeLabel":"object[]"},"variants":{"type":"array","items":{"type":"object","properties":{"variantId":{"type":"string","description":"Shopify ProductVariant GID","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].variantId","typeLabel":"string"},"title":{"type":"string","description":"Variant title","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].title","typeLabel":"string"},"price":{"type":"string","description":"Variant price as a dollar-amount string","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].price","typeLabel":"string"},"compareAtPrice":{"oneOf":[{"type":"string","description":"Variant compare-at price, or null","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].compareAtPrice.oneOf.0","typeLabel":"string"},{"type":"null","description":"Variant compare-at price, or null","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].compareAtPrice.oneOf.1","typeLabel":"null"}],"uniqueKey":"products.items.[INDEX].variants.items.[INDEX].compareAtPrice","typeLabel":"string | null"},"currencyCode":{"type":"string","description":"ISO 4217 currency of `price` and `compareAtPrice`: the buyer's market currency when contextual pricing was resolved (see `context.localization`), otherwise the shop currency. May be absent, in which case fall back to your own presentment currency.","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].currencyCode","typeLabel":"string"},"availableForSale":{"type":"boolean","description":"Whether this variant is available","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].availableForSale","typeLabel":"boolean"},"sku":{"type":"string","description":"Variant SKU (may be absent)","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].sku","typeLabel":"string"},"image":{"type":"object","properties":{"src":{"type":"string","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].image.src","typeLabel":"string"}},"description":"Variant-specific image, used to swap the card image on variant select. Absent when the variant has no distinct image — fall back to the product image.","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].image","typeLabel":"object"},"selectedOptions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].selectedOptions.items.[INDEX].name","typeLabel":"string"},"value":{"type":"string","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].selectedOptions.items.[INDEX].value","typeLabel":"string"}},"uniqueKey":"products.items.[INDEX].variants.items.[INDEX].selectedOptions.items.[INDEX]","typeLabel":"object"},"description":"Array of option name/value pairs (may be absent)","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].selectedOptions","typeLabel":"object[]"}},"uniqueKey":"products.items.[INDEX].variants.items.[INDEX]","typeLabel":"object"},"uniqueKey":"products.items.[INDEX].variants","typeLabel":"object[]"}},"uniqueKey":"products.items.[INDEX]","typeLabel":"object"},"description":"Fully enriched recommended products","uniqueKey":"products","typeLabel":"object[]"},"evaluationId":{"type":"string","description":"Unique identifier for this evaluation. Echo it back as a line item property (e.g. `__as_offer_id`) when a shopper adds a recommended product, so the resulting order attributes back to this specific evaluation in AfterSell reporting. Present on successful evaluations; absent on error responses that short-circuit before evaluation.","uniqueKey":"evaluationId","typeLabel":"string"},"resolution":{"type":"object","properties":{"strategyId":{"oneOf":[{"type":"string","description":"The strategy that produced the result. `null` on any error response, and on a successful evaluation where no strategy matched the requested ID for this shop; otherwise echoes the requested `strategyId`.","uniqueKey":"resolution.strategyId.oneOf.0","typeLabel":"string"},{"type":"null","description":"The strategy that produced the result. `null` on any error response, and on a successful evaluation where no strategy matched the requested ID for this shop; otherwise echoes the requested `strategyId`.","uniqueKey":"resolution.strategyId.oneOf.1","typeLabel":"null"}],"uniqueKey":"resolution.strategyId","typeLabel":"string | null"},"matchedRuleIds":{"type":"array","items":{"type":"string","uniqueKey":"resolution.matchedRuleIds.items.[INDEX]","typeLabel":"string"},"description":"IDs of rules that matched","uniqueKey":"resolution.matchedRuleIds","typeLabel":"string[]"},"selectionMethod":{"type":"string","description":"Always `rules_engine`","uniqueKey":"resolution.selectionMethod","typeLabel":"string"},"fallbackUsed":{"type":"boolean","description":"Whether fallback logic was used","uniqueKey":"resolution.fallbackUsed","typeLabel":"boolean"}},"uniqueKey":"resolution","typeLabel":"object"},"meta":{"type":"object","properties":{"servedFromCache":{"type":"boolean","description":"Whether product data was served from cache","uniqueKey":"meta.servedFromCache","typeLabel":"boolean"},"processingTimeMs":{"type":"number","description":"Server-side processing time in milliseconds","uniqueKey":"meta.processingTimeMs","typeLabel":"number"},"data":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"meta.data.additionalProperties","typeLabel":"string"},"description":"Key-value pairs emitted by matched rules with `key_value` outputs. Values are always strings. Always present; may be an empty object. Keys from the first matching rule win.","uniqueKey":"meta.data","typeLabel":"object"},"explanation":{"type":"string","description":"Optional debug explanation (may be absent)","uniqueKey":"meta.explanation","typeLabel":"string"}},"uniqueKey":"meta","typeLabel":"object"},"errors":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Error code","uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error description","uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"description":"Present only when errors occur","uniqueKey":"errors","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"FORBIDDEN":{"title":"FORBIDDEN","value":{"success":false,"products":[],"resolution":{"strategyId":null,"matchedRuleIds":[],"selectionMethod":"rules_engine","fallbackUsed":false},"meta":{"servedFromCache":false,"processingTimeMs":0,"data":{}},"errors":[{"code":"FORBIDDEN","message":"Strategy is not enabled for this shop"}]}}},"exampleType":"examples"}},"exampleType":"examples"},"79f72ae5-5a6d-4d86-a26a-7a3310280b67":{"description":"Server error — shop configuration issue or unexpected internal error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Whether the evaluation succeeded","uniqueKey":"success","typeLabel":"boolean"},"products":{"type":"array","items":{"type":"object","properties":{"productId":{"type":"string","description":"Shopify Product GID","uniqueKey":"products.items.[INDEX].productId","typeLabel":"string"},"handle":{"type":"string","description":"Product handle/slug","uniqueKey":"products.items.[INDEX].handle","typeLabel":"string"},"title":{"type":"string","description":"Product title","uniqueKey":"products.items.[INDEX].title","typeLabel":"string"},"vendor":{"type":"string","description":"Vendor name","uniqueKey":"products.items.[INDEX].vendor","typeLabel":"string"},"productType":{"type":"string","description":"Product type","uniqueKey":"products.items.[INDEX].productType","typeLabel":"string"},"price":{"type":"string","description":"Lowest variant price as a dollar-amount string","uniqueKey":"products.items.[INDEX].price","typeLabel":"string"},"compareAtPrice":{"oneOf":[{"type":"string","description":"Compare-at price, or null if not set","uniqueKey":"products.items.[INDEX].compareAtPrice.oneOf.0","typeLabel":"string"},{"type":"null","description":"Compare-at price, or null if not set","uniqueKey":"products.items.[INDEX].compareAtPrice.oneOf.1","typeLabel":"null"}],"uniqueKey":"products.items.[INDEX].compareAtPrice","typeLabel":"string | null"},"currencyCode":{"type":"string","description":"ISO 4217 currency of the product-level `price` and `compareAtPrice` rollup: the buyer's market currency when contextual pricing was resolved (see `context.localization`), otherwise the shop currency. May be absent, in which case fall back to your own presentment currency.","uniqueKey":"products.items.[INDEX].currencyCode","typeLabel":"string"},"availableForSale":{"type":"boolean","description":"Whether the product is available for purchase","uniqueKey":"products.items.[INDEX].availableForSale","typeLabel":"boolean"},"description":{"type":"string","description":"Product description","uniqueKey":"products.items.[INDEX].description","typeLabel":"string"},"url":{"type":"string","description":"Relative product URL","uniqueKey":"products.items.[INDEX].url","typeLabel":"string"},"tags":{"type":"array","items":{"type":"string","uniqueKey":"products.items.[INDEX].tags.items.[INDEX]","typeLabel":"string"},"uniqueKey":"products.items.[INDEX].tags","typeLabel":"string[]"},"collectionIds":{"type":"array","items":{"type":"string","uniqueKey":"products.items.[INDEX].collectionIds.items.[INDEX]","typeLabel":"string"},"uniqueKey":"products.items.[INDEX].collectionIds","typeLabel":"string[]"},"images":{"type":"array","items":{"type":"object","properties":{"src":{"type":"string","description":"Image URL","uniqueKey":"products.items.[INDEX].images.items.[INDEX].src","typeLabel":"string"},"altText":{"type":"string","description":"Image alt text (may be absent)","uniqueKey":"products.items.[INDEX].images.items.[INDEX].altText","typeLabel":"string"},"position":{"type":"number","description":"Image sort position","uniqueKey":"products.items.[INDEX].images.items.[INDEX].position","typeLabel":"number"}},"uniqueKey":"products.items.[INDEX].images.items.[INDEX]","typeLabel":"object"},"uniqueKey":"products.items.[INDEX].images","typeLabel":"object[]"},"variants":{"type":"array","items":{"type":"object","properties":{"variantId":{"type":"string","description":"Shopify ProductVariant GID","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].variantId","typeLabel":"string"},"title":{"type":"string","description":"Variant title","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].title","typeLabel":"string"},"price":{"type":"string","description":"Variant price as a dollar-amount string","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].price","typeLabel":"string"},"compareAtPrice":{"oneOf":[{"type":"string","description":"Variant compare-at price, or null","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].compareAtPrice.oneOf.0","typeLabel":"string"},{"type":"null","description":"Variant compare-at price, or null","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].compareAtPrice.oneOf.1","typeLabel":"null"}],"uniqueKey":"products.items.[INDEX].variants.items.[INDEX].compareAtPrice","typeLabel":"string | null"},"currencyCode":{"type":"string","description":"ISO 4217 currency of `price` and `compareAtPrice`: the buyer's market currency when contextual pricing was resolved (see `context.localization`), otherwise the shop currency. May be absent, in which case fall back to your own presentment currency.","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].currencyCode","typeLabel":"string"},"availableForSale":{"type":"boolean","description":"Whether this variant is available","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].availableForSale","typeLabel":"boolean"},"sku":{"type":"string","description":"Variant SKU (may be absent)","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].sku","typeLabel":"string"},"image":{"type":"object","properties":{"src":{"type":"string","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].image.src","typeLabel":"string"}},"description":"Variant-specific image, used to swap the card image on variant select. Absent when the variant has no distinct image — fall back to the product image.","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].image","typeLabel":"object"},"selectedOptions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].selectedOptions.items.[INDEX].name","typeLabel":"string"},"value":{"type":"string","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].selectedOptions.items.[INDEX].value","typeLabel":"string"}},"uniqueKey":"products.items.[INDEX].variants.items.[INDEX].selectedOptions.items.[INDEX]","typeLabel":"object"},"description":"Array of option name/value pairs (may be absent)","uniqueKey":"products.items.[INDEX].variants.items.[INDEX].selectedOptions","typeLabel":"object[]"}},"uniqueKey":"products.items.[INDEX].variants.items.[INDEX]","typeLabel":"object"},"uniqueKey":"products.items.[INDEX].variants","typeLabel":"object[]"}},"uniqueKey":"products.items.[INDEX]","typeLabel":"object"},"description":"Fully enriched recommended products","uniqueKey":"products","typeLabel":"object[]"},"evaluationId":{"type":"string","description":"Unique identifier for this evaluation. Echo it back as a line item property (e.g. `__as_offer_id`) when a shopper adds a recommended product, so the resulting order attributes back to this specific evaluation in AfterSell reporting. Present on successful evaluations; absent on error responses that short-circuit before evaluation.","uniqueKey":"evaluationId","typeLabel":"string"},"resolution":{"type":"object","properties":{"strategyId":{"oneOf":[{"type":"string","description":"The strategy that produced the result. `null` on any error response, and on a successful evaluation where no strategy matched the requested ID for this shop; otherwise echoes the requested `strategyId`.","uniqueKey":"resolution.strategyId.oneOf.0","typeLabel":"string"},{"type":"null","description":"The strategy that produced the result. `null` on any error response, and on a successful evaluation where no strategy matched the requested ID for this shop; otherwise echoes the requested `strategyId`.","uniqueKey":"resolution.strategyId.oneOf.1","typeLabel":"null"}],"uniqueKey":"resolution.strategyId","typeLabel":"string | null"},"matchedRuleIds":{"type":"array","items":{"type":"string","uniqueKey":"resolution.matchedRuleIds.items.[INDEX]","typeLabel":"string"},"description":"IDs of rules that matched","uniqueKey":"resolution.matchedRuleIds","typeLabel":"string[]"},"selectionMethod":{"type":"string","description":"Always `rules_engine`","uniqueKey":"resolution.selectionMethod","typeLabel":"string"},"fallbackUsed":{"type":"boolean","description":"Whether fallback logic was used","uniqueKey":"resolution.fallbackUsed","typeLabel":"boolean"}},"uniqueKey":"resolution","typeLabel":"object"},"meta":{"type":"object","properties":{"servedFromCache":{"type":"boolean","description":"Whether product data was served from cache","uniqueKey":"meta.servedFromCache","typeLabel":"boolean"},"processingTimeMs":{"type":"number","description":"Server-side processing time in milliseconds","uniqueKey":"meta.processingTimeMs","typeLabel":"number"},"data":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"meta.data.additionalProperties","typeLabel":"string"},"description":"Key-value pairs emitted by matched rules with `key_value` outputs. Values are always strings. Always present; may be an empty object. Keys from the first matching rule win.","uniqueKey":"meta.data","typeLabel":"object"},"explanation":{"type":"string","description":"Optional debug explanation (may be absent)","uniqueKey":"meta.explanation","typeLabel":"string"}},"uniqueKey":"meta","typeLabel":"object"},"errors":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Error code","uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error description","uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"description":"Present only when errors occur","uniqueKey":"errors","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"CONFIG_ERROR":{"title":"CONFIG_ERROR","value":{"success":false,"products":[],"resolution":{"strategyId":null,"matchedRuleIds":[],"selectionMethod":"rules_engine","fallbackUsed":false},"meta":{"servedFromCache":false,"processingTimeMs":0,"data":{}},"errors":[{"code":"CONFIG_ERROR","message":"Shop configuration error"}]}},"INTERNAL_ERROR":{"title":"INTERNAL_ERROR","value":{"success":false,"products":[],"resolution":{"strategyId":null,"matchedRuleIds":[],"selectionMethod":"rules_engine","fallbackUsed":false},"meta":{"servedFromCache":false,"processingTimeMs":0,"data":{}},"errors":[{"code":"INTERNAL_ERROR","message":"Failed to evaluate strategy rules"}]}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"d46a218a-89ed-4008-ab54-b94b5a7b5a91":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-Strategy-Api-Key","scopes":[]}}},"servers":{"506d1b41-1bb2-4e9a-bd72-80f5a3848ba8":{"url":"https://start.aftersell.app"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-Strategy-Api-Key","scopes":[]},"schema":{"title":"X-Strategy-Api-Key","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"X-Strategy-Api-Key"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"api/strategies.json"},"subdomain":"aftersell","siteName":"Aftersell \u0026 Upcart Docs","title":"Ewaluacja strategii - Aftersell \u0026 Upcart Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/aftersell/strategies_api_reference_evaluate_strategy","matchLevel":1},"fr":{"href":"/fr/aftersell/strategies_api_reference_evaluate_strategy","matchLevel":1},"es":{"href":"/es/aftersell/strategies_api_reference_evaluate_strategy","matchLevel":1},"zh":{"href":"/zh/aftersell/strategies_api_reference_evaluate_strategy","matchLevel":1},"ja":{"href":"/ja/aftersell/strategies_api_reference_evaluate_strategy","matchLevel":1},"de":{"href":"/de/aftersell/strategies_api_reference_evaluate_strategy","matchLevel":1},"ru":{"href":"/ru/aftersell/strategies_api_reference_evaluate_strategy","matchLevel":1},"it":{"href":"/it/aftersell/strategies_api_reference_evaluate_strategy","matchLevel":1},"nl":{"href":"/nl/aftersell/strategies_api_reference_evaluate_strategy","matchLevel":1},"pt":{"href":"/pt/aftersell/strategies_api_reference_evaluate_strategy","matchLevel":1},"pl":{"href":"/pl/aftersell/strategies_api_reference_evaluate_strategy","matchLevel":0},"ko":{"href":"/ko/aftersell/strategies_api_reference_evaluate_strategy","matchLevel":1},"da":{"href":"/da/aftersell/strategies_api_reference_evaluate_strategy","matchLevel":1},"ar":{"href":"/ar/aftersell/strategies_api_reference_evaluate_strategy","matchLevel":1}}},"lastModified":"2026-09-09T00:55:25.723Z","originalFileLocation":"pl/aftersell/strategies_api_reference_evaluate_strategy.mdx","locale":"pl"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Evaluate a strategy against provided context to return the desired experience.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Aftersell \u0026amp; Upcart Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/aftersell/rvHYnLcZxWDiuuKI/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/aftersell/rvHYnLcZxWDiuuKI/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/aftersell/rvHYnLcZxWDiuuKI/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/aftersell/rvHYnLcZxWDiuuKI/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/aftersell/rvHYnLcZxWDiuuKI/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/aftersell/rvHYnLcZxWDiuuKI/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/aftersell/rvHYnLcZxWDiuuKI/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/aftersell/rvHYnLcZxWDiuuKI/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/aftersell/rvHYnLcZxWDiuuKI/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Ewaluacja strategii - Aftersell \u0026amp; Upcart Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Evaluate a strategy against provided context to return the desired experience.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Aftersell \u0026amp; Upcart Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.aftersell.com/pl/aftersell/strategies_api_reference_evaluate_strategy\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://aftersell.mintlify.site/_mintlify/api/og/v2?division=Strategie\u0026amp;title=Ewaluacja+strategii\u0026amp;description=Evaluate+a+strategy+against+provided+context+to+return+the+desired+experience.\u0026amp;theme=4eda7b6db4afb63ff7f9239d\u0026amp;signature=92b1aeab8ce45f7ccc32d6eddda5b1957af752b54fbbaa444213f79f9d047c96\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Ewaluacja strategii - Aftersell \u0026amp; Upcart Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Evaluate a strategy against provided context to return the desired experience.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://aftersell.mintlify.site/_mintlify/api/og/v2?division=Strategie\u0026amp;title=Ewaluacja+strategii\u0026amp;description=Evaluate+a+strategy+against+provided+context+to+return+the+desired+experience.\u0026amp;theme=4eda7b6db4afb63ff7f9239d\u0026amp;signature=92b1aeab8ce45f7ccc32d6eddda5b1957af752b54fbbaa444213f79f9d047c96\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/aftersell/rvHYnLcZxWDiuuKI/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Aftersell \u0026amp; Upcart Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#C20075\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.aftersell.com/pl/aftersell/strategies_api_reference_evaluate_strategy\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/pl/aftersell/strategies_api_reference_evaluate_strategy.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pl\" href=\"https://docs.aftersell.com/pl/aftersell/strategies_api_reference_evaluate_strategy\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.aftersell.com/aftersell/strategies_api_reference_evaluate_strategy\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"fr\" href=\"https://docs.aftersell.com/fr/aftersell/strategies_api_reference_evaluate_strategy\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://docs.aftersell.com/es/aftersell/strategies_api_reference_evaluate_strategy\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.aftersell.com/zh/aftersell/strategies_api_reference_evaluate_strategy\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://docs.aftersell.com/ja/aftersell/strategies_api_reference_evaluate_strategy\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"de\" href=\"https://docs.aftersell.com/de/aftersell/strategies_api_reference_evaluate_strategy\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ru\" href=\"https://docs.aftersell.com/ru/aftersell/strategies_api_reference_evaluate_strategy\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"it\" href=\"https://docs.aftersell.com/it/aftersell/strategies_api_reference_evaluate_strategy\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"nl\" href=\"https://docs.aftersell.com/nl/aftersell/strategies_api_reference_evaluate_strategy\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt\" href=\"https://docs.aftersell.com/pt/aftersell/strategies_api_reference_evaluate_strategy\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ko\" href=\"https://docs.aftersell.com/ko/aftersell/strategies_api_reference_evaluate_strategy\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"da\" href=\"https://docs.aftersell.com/da/aftersell/strategies_api_reference_evaluate_strategy\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ar\" href=\"https://docs.aftersell.com/ar/aftersell/strategies_api_reference_evaluate_strategy\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.aftersell.com/aftersell/strategies_api_reference_evaluate_strategy\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.aftersell.com/#organization\",\"name\":\"Aftersell \u0026 Upcart Docs\",\"url\":\"https://docs.aftersell.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/aftersell/SnQwk0JGiG2BpIZt/images/logos/aftersell-logo-black.svg?fit=max\u0026auto=format\u0026n=SnQwk0JGiG2BpIZt\u0026q=85\u0026s=3a4b16f98056fa407d2af5a4f86b7fd8\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.aftersell.com#website\",\"name\":\"Aftersell \u0026 Upcart Docs\",\"url\":\"https://docs.aftersell.com\",\"publisher\":{\"@id\":\"https://docs.aftersell.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.aftersell.com/pl/aftersell/strategies_api_reference_evaluate_strategy#webpage\",\"url\":\"https://docs.aftersell.com/pl/aftersell/strategies_api_reference_evaluate_strategy\",\"name\":\"Ewaluacja strategii\",\"description\":\"Evaluate a strategy against provided context to return the desired experience.\",\"dateModified\":\"2026-09-09T00:55:25.723Z\",\"isPartOf\":{\"@id\":\"https://docs.aftersell.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.aftersell.com/pl/aftersell/strategies_api_reference_evaluate_strategy#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.aftersell.com/pl/aftersell/strategies_api_reference_evaluate_strategy#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Strategie\",\"item\":\"https://docs.aftersell.com/pl/aftersell/strategies_rules_reference\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ewaluacja strategii\",\"item\":\"https://docs.aftersell.com/pl/aftersell/strategies_api_reference_evaluate_strategy\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.aftersell.com/pl/aftersell/strategies_api_reference_evaluate_strategy#apireference\",\"headline\":\"Ewaluacja strategii\",\"name\":\"Ewaluacja strategii\",\"description\":\"Evaluate a strategy against provided context to return the desired experience.\",\"url\":\"https://docs.aftersell.com/pl/aftersell/strategies_api_reference_evaluate_strategy\",\"mainEntityOfPage\":{\"@id\":\"https://docs.aftersell.com/pl/aftersell/strategies_api_reference_evaluate_strategy#webpage\"},\"dateModified\":\"2026-09-09T00:55:25.723Z\",\"keywords\":\"ewaluacja strategii, API strategii, API rekomendacji produktów, endpoint evaluate, referencja API, X-Strategy-Api-Key, targetowanie produktów, silnik rekomendacji\",\"publisher\":{\"@id\":\"https://docs.aftersell.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.aftersell.com#website\"}}]}\u003c/script>","siteName":"Aftersell \u0026 Upcart Docs","nav":{"global":null,"languages":[{"language":"en","pages":[{"title":"en","href":"/aftersell/strategies_api_reference_evaluate_strategy"}]},{"language":"fr","pages":[{"title":"fr","href":"/fr/aftersell/strategies_api_reference_evaluate_strategy"}]},{"language":"es","pages":[{"title":"es","href":"/es/aftersell/strategies_api_reference_evaluate_strategy"}]},{"language":"zh","pages":[{"title":"zh","href":"/zh/aftersell/strategies_api_reference_evaluate_strategy"}]},{"language":"ja","pages":[{"title":"ja","href":"/ja/aftersell/strategies_api_reference_evaluate_strategy"}]},{"language":"de","pages":[{"title":"de","href":"/de/aftersell/strategies_api_reference_evaluate_strategy"}]},{"language":"ru","pages":[{"title":"ru","href":"/ru/aftersell/strategies_api_reference_evaluate_strategy"}]},{"language":"it","pages":[{"title":"it","href":"/it/aftersell/strategies_api_reference_evaluate_strategy"}]},{"language":"nl","pages":[{"title":"nl","href":"/nl/aftersell/strategies_api_reference_evaluate_strategy"}]},{"language":"pt","pages":[{"title":"pt","href":"/pt/aftersell/strategies_api_reference_evaluate_strategy"}]},{"language":"pl","products":[{"product":"Aftersell","icon":"bolt","dropdowns":[{"dropdown":"Przewodniki","icon":"book","groups":[{"group":"Pierwsze kroki","expanded":false,"pages":[{"title":"Witamy w Aftersell","href":"/pl/aftersell/welcome_to_aftersell"},{"title":"Instalowanie Aftersell","href":"/pl/aftersell/installing_aftersell"},{"title":"Szybki start z Aftersell","href":"/pl/aftersell/quickstart_guide_to_aftersell"},{"title":"Upselle po zakupie vs. upselle na stronie podziękowania","sidebarTitle":"Po zakupie vs. strona podziękowania","href":"/pl/aftersell/one_click_upsells_vs_thank_you_page_upsells"},{"title":"Czym jest Upcart?","href":"/pl/aftersell/what_is_upcart"}]},{"group":"Strona główna","expanded":false,"pages":[{"title":"Przegląd strony głównej","href":"/pl/aftersell/home/overview"},{"title":"Pasek analityki","href":"/pl/aftersell/home/analytics-bar"},{"title":"Przewodnik konfiguracji","href":"/pl/aftersell/home/setup-guide"},{"title":"Szybkie akcje","href":"/pl/aftersell/home/quick-actions"},{"title":"Porównania z innymi sklepami (PPU)","href":"/pl/aftersell/home/peer-benchmarks"},{"title":"Status bloków aplikacji","href":"/pl/aftersell/home/app-block-status"},{"title":"Wymaga uwagi","href":"/pl/aftersell/home/needs-attention"},{"title":"Pomoc i ogłoszenia","href":"/pl/aftersell/home/help-and-announcements"}]},{"group":"Najlepsze praktyki","expanded":false,"pages":[{"title":"Najlepsze praktyki post-purchase","href":"/pl/aftersell/best_practices"},{"title":"Strategie post-purchase według branży","href":"/pl/aftersell/post_purchase_strategies_by_industry"},{"title":"Najlepsze praktyki checkoutu","href":"/pl/aftersell/checkout_best_practices"}]},{"group":"Upselle po zakupie","expanded":false,"pages":[{"group":"Przegląd","expanded":false,"pages":[{"title":"Przegląd post-purchase","href":"/pl/aftersell/post_purchase_overview"},{"title":"Typy ofert post-purchase","sidebarTitle":"Typy ofert","href":"/pl/aftersell/post-purchase-offer-types"},{"title":"Smart Funnel","href":"/pl/aftersell/smart_funnel"}]},{"group":"Instalacja i konfiguracja","expanded":false,"pages":[{"title":"Jak skonfigurować wyzwalacze post-purchase","href":"/pl/aftersell/how_to_configure_post_purchase_triggers"},{"title":"Konfigurowanie ustawień ofert post-purchase","href":"/pl/aftersell/configuring_post_purchase_offer_settings"},{"title":"Jak utworzyć wielokrokowy upsell po zakupie","href":"/pl/aftersell/how_to_create_a_multi_step_post_purchase_upsell"},{"title":"Upselle zastępujące","href":"/pl/aftersell/replacement_upsells"},{"group":"Ulepszenia subskrypcji","expanded":false,"pages":[{"title":"Ulepszenia subskrypcji","sidebarTitle":"Przegląd","href":"/pl/aftersell/subscription-upgrades"},{"title":"Konfigurowanie ulepszeń subskrypcji","sidebarTitle":"Konfiguracja i ustawienia","href":"/pl/aftersell/subscription-upgrades-setup"},{"title":"Dodawanie pozycji do istniejącej subskrypcji","sidebarTitle":"Dodaj pozycję do subskrypcji","href":"/pl/aftersell/subscription-upgrades-add-item"},{"title":"Testowanie ulepszeń subskrypcji","sidebarTitle":"Testowanie","href":"/pl/aftersell/subscription-upgrades-testing"}]},{"title":"Subskrypcje w ofertach post-purchase","href":"/pl/aftersell/subscriptions_in_post_purchase_offers"},{"title":"Upselle subskrypcyjne w zamówieniach, które już zawierają subskrypcję","sidebarTitle":"Upselling obecnych subskrybentów","href":"/pl/aftersell/subscription-upsell-existing-subscribers"},{"title":"Jak korzystać z linków UTM prowadzących bezpośrednio do checkoutu","href":"/pl/aftersell/how_to_use_direct_to_checkout_utm_links"},{"title":"Tłumaczenie lejków post-purchase","href":"/pl/aftersell/translating_post_purchase_funnels"},{"title":"Zrozumienie niedostępnych wariantów","href":"/pl/aftersell/understanding_out_of_stock_variants"},{"title":"Quantity upsells","href":"/pl/aftersell/quantity-upsells"},{"title":"Build a Box","href":"/pl/aftersell/build-a-box"}]},{"group":"Branding i wygląd","expanded":false,"pages":[{"title":"Ustawienia brandingu post-purchase","href":"/pl/aftersell/post_purchase_branding_settings"},{"title":"Zmiana kolorów przycisku post-purchase (CTA)","href":"/pl/aftersell/changing_post_purchase_button_colours_cta"},{"title":"Paski postępu i odznaki produktów","href":"/pl/aftersell/progress_bars_product_badges"},{"title":"Dostosowywanie wyświetlania rabatów w Aftersell","href":"/pl/aftersell/customizing_discount_displays"}]},{"group":"Testowanie i optymalizacja","expanded":false,"pages":[{"title":"Testowanie / podgląd oferty post-purchase","href":"/pl/aftersell/testing_post_purchase_offers"},{"title":"Testy A/B post-purchase","href":"/pl/aftersell/post_purchase_a_b_testing"},{"title":"Testy wielowymiarowe po zakupie","href":"/pl/aftersell/multivariate_testing"}]},{"group":"Płatności i realizacja zamówień","expanded":false,"pages":[{"title":"Metody płatności","href":"/pl/aftersell/payment_methods"},{"title":"Ręczne przechwytywanie płatności","href":"/pl/aftersell/manual-payment-capture"},{"title":"Przechwytywanie płatności z wykrywaniem oszustw","href":"/pl/aftersell/fraud-detection-payment-capture"},{"title":"Płatności automatyczne PayPal","href":"/pl/aftersell/paypal_automatic_payments"},{"title":"Częściowo opłacone zamówienia","href":"/pl/aftersell/partially_paid_orders"},{"title":"Podatki","href":"/pl/aftersell/taxes"},{"title":"Realizacja zamówień","href":"/pl/aftersell/fulfillment"},{"title":"Jak skonfigurować lokalizacje realizacji dla upselli po zakupie","href":"/pl/aftersell/how_to_configure_fulfillment_locations_for_1_click_upsells"},{"title":"Możliwe obejścia problemów z przepływem realizacji zamówień","href":"/pl/aftersell/potential_workarounds_for_fulfillment_flow_issues"},{"title":"Dlaczego produkty post-purchase są wysyłane osobno?","href":"/pl/aftersell/why_are_post_purchase_items_being_shipped_separately"},{"title":"Jak upselle po zakupie wpływają na realizację zamówień?","href":"/pl/aftersell/how_do_post_purchase_upsells_affect_my_fulfillment"}]}]},{"group":"Koszyk Aftersell","pages":[{"title":"Aftersell Cart — przegląd","href":"/pl/aftersell/cart/overview"},{"group":"Zarządzanie koszykami","pages":[{"title":"Jak działają koszyki?","href":"/pl/aftersell/cart/how-carts-work"},{"title":"Koszyki to pliki","href":"/pl/aftersell/cart/carts-as-files"},{"title":"Tworzenie koszyków","href":"/pl/aftersell/cart/creating-carts"},{"title":"Podgląd koszyków","href":"/pl/aftersell/cart/previewing-carts"},{"title":"Zarządzanie wieloma koszykami","href":"/pl/aftersell/cart/having-multiple-carts"},{"title":"Importowanie i eksportowanie koszyków","href":"/pl/aftersell/cart/import-export"}]},{"group":"Dostosowywanie koszyka","pages":[{"title":"Ustawienia designu","href":"/pl/aftersell/cart/design-settings"},{"title":"Ustawienia koszyka","href":"/pl/aftersell/cart/cart-settings"},{"title":"Niestandardowy CSS","href":"/pl/aftersell/cart/custom-css"},{"title":"Niestandardowe skrypty","href":"/pl/aftersell/cart/custom-scripts"}]},{"group":"Bloki koszyka","pages":[{"title":"Jak działają bloki?","href":"/pl/aftersell/cart/blocks-overview"},{"title":"Blok Header","href":"/pl/aftersell/cart/header-block"},{"title":"Blok banera","href":"/pl/aftersell/cart/banner-block"},{"title":"Blok Image","href":"/pl/aftersell/cart/image-block"},{"title":"Blok Cart items","href":"/pl/aftersell/cart/cart-items-block"},{"title":"Blok Subscription upgrade","href":"/pl/aftersell/cart/subscription-upgrade-block"},{"title":"Blok Product add-on","href":"/pl/aftersell/cart/product-add-on-block"},{"title":"Blok Upsells","href":"/pl/aftersell/cart/upsells-block"},{"title":"Blok Rewards","href":"/pl/aftersell/cart/rewards-block"},{"title":"Blok kodu rabatowego","href":"/pl/aftersell/cart/discount-code-block"},{"title":"Blok Notes","href":"/pl/aftersell/cart/notes-block"},{"title":"Blok Shipping protection","href":"/pl/aftersell/cart/shipping-protection-block"},{"title":"Blok płatności ekspresowych","href":"/pl/aftersell/cart/express-payments-block"},{"title":"Blok Summary","href":"/pl/aftersell/cart/summary-block"},{"title":"Blok przycisku checkoutu","href":"/pl/aftersell/cart/checkout-button-block"},{"title":"Blok pustego koszyka","href":"/pl/aftersell/cart/empty-cart-block"},{"title":"Szablony niestandardowe","href":"/pl/aftersell/cart/custom-templates"},{"title":"Bloki Custom code","href":"/pl/aftersell/cart/custom-code-blocks"}]},{"group":"Testy koszyka","pages":[{"title":"Jak działają testy?","href":"/pl/aftersell/cart/tests-overview"},{"title":"Analityka testów","href":"/pl/aftersell/cart/test-analytics"},{"title":"Test A/B Aftersell Cart z inną aplikacją koszyka","href":"/pl/aftersell/cart/ab-test-against-another-cart"}]},{"group":"Analityka","pages":[{"title":"Analityka koszyka","href":"/pl/aftersell/cart/analytics"}]},{"group":"SDK koszyka","pages":[{"title":"Przegląd","href":"/pl/aftersell/cart/sdk-overview"},{"title":"Przechwytywanie add-to-cart","href":"/pl/aftersell/cart/add-to-cart-interception"},{"title":"Konfiguracja","href":"/pl/aftersell/cart/sdk-configure"},{"title":"Zdarzenia","href":"/pl/aftersell/cart/sdk-events"},{"title":"Akcje","href":"/pl/aftersell/cart/sdk-actions"},{"title":"Hooki","href":"/pl/aftersell/cart/sdk-hooks"},{"title":"Obiekt koszyka","href":"/pl/aftersell/cart/sdk-cart-object"},{"group":"Przypadki użycia","pages":[{"title":"Częste przypadki użycia","href":"/pl/aftersell/cart/sdk-use-cases"},{"title":"Śledź dodania do koszyka w narzędziu zewnętrznym","href":"/pl/aftersell/cart/sdk-use-case-analytics"},{"title":"Automatycznie dodawaj darmowy prezent przy progu","href":"/pl/aftersell/cart/sdk-use-case-free-gift"},{"title":"Ukrywaj pozycje koszyka i zmieniaj ich etykiety","href":"/pl/aftersell/cart/sdk-use-case-hide-lines"},{"title":"Pokazuj dane metafields na pozycjach koszyka","href":"/pl/aftersell/cart/sdk-use-case-metafields"},{"title":"Otwieraj szufladę z page buildera","href":"/pl/aftersell/cart/sdk-use-case-page-builder"},{"title":"Wymagaj akceptacji regulaminu przed checkoutem","href":"/pl/aftersell/cart/sdk-use-case-terms-checkbox"},{"title":"Grupuj pozycje bundle z innej aplikacji","href":"/pl/aftersell/cart/sdk-use-case-bundles"}]}]}]},{"group":"Upselle przy realizacji zakupu (Shopify Plus)","expanded":false,"pages":[{"group":"Przegląd","expanded":false,"pages":[{"title":"Przegląd panelu Checkout","href":"/pl/aftersell/checkout-dashboard-overview"},{"title":"Strony vs samodzielne widżety","href":"/pl/aftersell/pages-vs-standalone-widgets"}]},{"group":"Konfiguracja i widżety","expanded":false,"pages":[{"title":"Dodawanie widżetu checkoutu do Twojego checkoutu Shopify","href":"/pl/aftersell/adding_a_checkout_widget_to_your_shopify_checkout"},{"title":"Tworzenie pierwszego widżetu checkout","href":"/pl/aftersell/creating_your_first_checkout_widget"},{"title":"Jak skonfigurować widżety checkout","href":"/pl/aftersell/how_to_configure_checkout_widgets"},{"title":"Upselle progu wydatków","href":"/pl/aftersell/spend_threshold_upsells"},{"title":"Wyświetlanie widżetów checkoutu w Shop Pay","href":"/pl/aftersell/show_checkout_widgets_in_shop_pay"},{"title":"Zarządzanie rabatami w checkoucie","href":"/pl/aftersell/managing_checkout_discounts"}]},{"group":"Branding i wyzwalacze","expanded":false,"pages":[{"title":"Dostosowania checkoutu","href":"/pl/aftersell/checkout_customizations"},{"title":"Tłumaczenia checkoutu","href":"/pl/aftersell/checkout_translations"}]},{"group":"Testowanie","expanded":false,"pages":[{"title":"Testy A/B w checkoucie","href":"/pl/aftersell/checkout_a_b_testing"}]}]},{"group":"Strona z podziękowaniem","expanded":false,"pages":[{"title":"Jak skonfigurować widżety strony podziękowania","href":"/pl/aftersell/how_can_i_set_up_and_customize_thank_you_page_upsells_in_aftersell"},{"title":"Widżet FAQ (strona podziękowania)","sidebarTitle":"Widżet FAQ","href":"/pl/aftersell/faq-widget-thank-you-page"},{"title":"Widżet obrazu (strona podziękowania)","sidebarTitle":"Widżet obrazu","href":"/pl/aftersell/image-widget-thank-you-page"},{"title":"Widżet rekomendacji produktów","sidebarTitle":"Rekomendacja produktów","href":"/pl/aftersell/product-recommendation-widget-thank-you-page"},{"title":"Widżet opinii","sidebarTitle":"Widżet opinii","href":"/pl/aftersell/testimonials-widget-thank-you-page"},{"title":"Widżet tekstowy (strona podziękowania)","sidebarTitle":"Widżet tekstowy","href":"/pl/aftersell/text-widget-thank-you-page"}]},{"group":"Upselle na stronie produktu","expanded":false,"pages":[{"title":"Upselle na stronie produktu","href":"/pl/aftersell/product_page_upsells"}]},{"group":"Rokt Thanks","expanded":false,"pages":[{"group":"Przegląd","expanded":false,"pages":[{"title":"Czym jest Rokt Thanks?","href":"/pl/aftersell/what_is_rokt_thanks"},{"title":"Program Earn \u0026 Save","href":"/pl/aftersell/earn-save"}]},{"group":"Instalacja i konfiguracja","expanded":false,"pages":[{"title":"Aktywacja i konfiguracja Rokt Thanks","href":"/pl/aftersell/activating_and_configuring_rokt_thanks"},{"title":"Ustawienia Rokt Thanks","href":"/pl/aftersell/rokt_thanks_settings"},{"title":"Wypłaty Rokt Thanks","href":"/pl/aftersell/rokt_thanks_payouts"},{"title":"Loyalty loop w Rokt Thanks","href":"/pl/aftersell/rokt_thanks_loyalty_loop"},{"title":"Niestandardowa integracja web SDK dla Rokt Thanks","href":"/pl/aftersell/custom_web_sdk_integration_for_rokt_thanks"},{"title":"Jak zainstalować Rokt Thanks na Tapcart","href":"/pl/aftersell/how_to_install_rokt_thanks_on_tapcart"}]},{"group":"Wydajność i FAQ","expanded":false,"pages":[{"title":"Śledzenie wyników Rokt Thanks","href":"/pl/aftersell/tracking_rokt_thanks_performance"},{"title":"Czy mogę reklamować się z Rokt Thanks i promować swoją firmę na innych stronach?","href":"/pl/aftersell/can_i_advertise_with_rokt_thanks_and_promote_my_business_on_other_sites"},{"title":"Dlaczego Rokt Thanks nie wyświetla się na mojej stronie potwierdzenia?","href":"/pl/aftersell/why_is_rokt_thanks_not_showing_on_my_confirmation_page"}]}]},{"group":"Strategie","expanded":false,"pages":[{"title":"Przegląd strategii","sidebarTitle":"Przegląd","href":"/pl/aftersell/strategies_overview"},{"title":"Budowanie strategii","href":"/pl/aftersell/strategies_building_in_app"},{"group":"Wdrażanie strategii","expanded":false,"pages":[{"title":"Upselle post-purchase","href":"/pl/aftersell/implementing_strategies_post_purchase_upsells"},{"title":"Upselle na stronie z podziękowaniem","href":"/pl/aftersell/implementing_strategies_thank_you_page_upsells"},{"title":"Upselle w checkoucie","href":"/pl/aftersell/implementing_strategies_checkout_upsells"},{"title":"Upselle Upcart","href":"/pl/aftersell/implementing_strategies_upcart_upsells"}]}]},{"group":"Analityka i śledzenie","expanded":false,"pages":[{"title":"Analityka post-purchase","href":"/pl/aftersell/analytics_in_aftersell"},{"title":"Statystyki post-purchase","href":"/pl/aftersell/ppu_insights"},{"title":"Analityka checkoutu","href":"/pl/aftersell/checkout_analytics"},{"title":"Śledzenie konwersji (web pixele)","href":"/pl/aftersell/conversion_tracking_web_pixels"},{"title":"Konfigurowanie web pixeli Shopify","href":"/pl/aftersell/configuring_shopify_web_pixels"},{"title":"Przewodnik onboardingu DTC ads | aktywacja web pixela","href":"/pl/aftersell/dtc_ads_onboarding_guide_web_pixel_activation"},{"group":"Raporty","expanded":false,"pages":[{"title":"Przegląd raportów","sidebarTitle":"Przegląd","href":"/pl/aftersell/reports_overview"},{"title":"Zarządzanie raportami","sidebarTitle":"Pulpity","href":"/pl/aftersell/reports_dashboards"},{"title":"Zarządzanie widżetami","sidebarTitle":"Widżety","href":"/pl/aftersell/reports_widgets"},{"title":"Explorer","href":"/pl/aftersell/reports_explorer"}]}]},{"group":"Integracje","expanded":false,"pages":[{"group":"Rekomendacje produktów","pages":[{"title":"Integracja Aftersell i Constructor","sidebarTitle":"Constructor","href":"/pl/aftersell/aftersell_constructor_integration"},{"title":"Integracja Aftersell i Nosto","sidebarTitle":"Nosto","href":"/pl/aftersell/aftersell_nosto_integration"}]},{"group":"Subskrypcje","pages":[{"title":"Integracja Aftersell i Skio","sidebarTitle":"Skio","href":"/pl/aftersell/aftersell_skio_integration"},{"title":"Integracja Aftersell i Stay AI","sidebarTitle":"Stay AI","href":"/pl/aftersell/aftersell_stayai_integration"}]},{"group":"Recenzje","pages":[{"title":"Integracja recenzji Aftersell i Judge.me","sidebarTitle":"Recenzje Judge.me","href":"/pl/aftersell/judgeme_reviews_integration"},{"title":"Integracja recenzji Aftersell i Klaviyo","sidebarTitle":"Recenzje Klaviyo","href":"/pl/aftersell/klaviyo_reviews_integration"},{"title":"Integracja recenzji Aftersell i Okendo","sidebarTitle":"Recenzje Okendo","href":"/pl/aftersell/okendo_reviews_integration"},{"title":"Integracja Aftersell i Yotpo Reviews","sidebarTitle":"Yotpo Reviews","href":"/pl/aftersell/aftersell_yotpo_reviews_integration"}]},{"group":"Lojalność i nagrody","pages":[{"title":"Integracja Aftersell i Inveterate","sidebarTitle":"Inveterate","href":"/pl/aftersell/aftersell_inveterate_integration"},{"title":"Integracja Aftersell i Rivo","sidebarTitle":"Rivo Loyalty \u0026 Rewards","href":"/pl/aftersell/aftersell_rivo_integration"}]}]},{"group":"Aftersell MCP","pages":[{"title":"Podłącz swojego klienta AI za pomocą Aftersell MCP","sidebarTitle":"Podłączanie klienta AI","href":"/pl/aftersell/mcp-connect-self"}]},{"group":"Rozliczenia i konto","expanded":false,"pages":[{"title":"Rozliczenia i cennik Aftersell","href":"/pl/aftersell/aftersell_billing_pricing"},{"title":"Jak anulować subskrypcję Aftersell?","href":"/pl/aftersell/how_do_i_cancel_my_aftersell_subscription"},{"title":"Dane i prywatność","href":"/pl/aftersell/customer_data_and_privacy"},{"title":"Program afiliacyjny","href":"/pl/aftersell/affiliate_program"},{"title":"Czy Aftersell ma API dla deweloperów?","href":"/pl/aftersell/does_aftersell_have_a_developer_api"}]},{"group":"Rozwiązywanie problemów","expanded":false,"pages":[{"group":"Po zakupie","expanded":false,"pages":[{"title":"Dlaczego moja oferta post-purchase się nie wyświetla?","href":"/pl/aftersell/why_isnt_my_1_click_offer_displaying"},{"title":"Automatyczne upselle nie działają","href":"/pl/aftersell/automatic_upsells_not_working"},{"title":"Czy checkout wielowalutowy wpływa na Aftersell?","href":"/pl/aftersell/does_multi_currency_checkout_impact_aftersell"}]},{"group":"Realizacja zakupu","expanded":false,"pages":[{"title":"Dlaczego nie widzę zakładki Checkout?","href":"/pl/aftersell/why_cant_i_see_the_checkout_tab"},{"title":"Dlaczego mój upsell w checkout się nie wyświetla?","href":"/pl/aftersell/why_isnt_my_checkout_upsell_displaying"},{"title":"Cena porównawcza nie wyświetla się dla upselli w checkoucie (Shopify Plus)","href":"/pl/aftersell/compare_at_price_not_reflecting_for_checkout_upsells_shopify_plus"}]},{"group":"Strona z podziękowaniem","expanded":false,"pages":[{"title":"Rozwiązywanie problemów ze stroną Thank You","href":"/pl/aftersell/widget_not_displaying_on_the_thank_you_page"}]},{"group":"Ogólne","expanded":false,"pages":[{"title":"Przegląd Order Browser","href":"/pl/aftersell/order_browser_overview"},{"title":"Rozwiązywanie problemów z Order Browser","href":"/pl/aftersell/order-browser-troubleshooting"},{"title":"Tworzenie nieopublikowanej kolekcji automatycznej","href":"/pl/aftersell/creating_an_unpublished_automated_collection"}]}]},{"group":"Aftersell Staging","icon":"plane-landing-gear","hidden":true,"pages":[{"title":"Strona główna stagingu","href":"/pl/aftersell/staging-home"},{"title":"Własna oferta Rokt Thanks (first-party)","href":"/pl/aftersell/rokt-thanks-first-party-offer"},{"title":"Ustawienia powiadomień e-mail","href":"/pl/aftersell/email-notification-settings"},{"title":"Upselle na stronie produktu V2","href":"/pl/aftersell/pdp-upsells-v2"},{"group":"Aftersell MCP","pages":[{"title":"Zarządzanie dostępem współpracowników","href":"/pl/aftersell/mcp-collaborator-access"}]},{"title":"Loterie post-purchase","href":"/pl/aftersell/post_purchase_sweepstakes"}]}]},{"dropdown":"Dokumentacja","icon":"code","groups":[{"group":"Strategie","pages":[{"title":"Dokumentacja reguł strategii","sidebarTitle":"Dokumentacja reguł","href":"/pl/aftersell/strategies_rules_reference"},{"title":"Integracja niestandardowa","description":"Wywołuj bezpośrednio Strategies API, aby zasilać niestandardowe doświadczenia w witrynie sklepu — karuzele na stronach produktów, niestandardowe upselle w koszyku i wszędzie tam, gdzie natywne powierzchnie Aftersell nie sięgają.","href":"/pl/aftersell/implementing_strategies_custom_integration"},{"title":"Ewaluacja strategii","openapi":"api/strategies.json POST /api/public/strategy/evaluate","href":"/pl/aftersell/strategies_api_reference_evaluate_strategy"},{"title":"Tokeny bezpieczeństwa API targetowania produktów","description":"Generuj tokeny bezpieczeństwa i zarządzaj nimi, aby uwierzytelniać żądania API dla strategii targetowania produktów","href":"/pl/aftersell/strategies_api_tokens"}]},{"group":"Upselle po zakupie","pages":[{"title":"Ograniczenia API post-purchase Shopify","href":"/pl/aftersell/shopify_post_purchase_api_limitations"},{"title":"Triggery post-purchase","href":"/pl/aftersell/post_purchase_triggers"},{"title":"Zrozumienie logiki warunkowej wyzwalaczy post-purchase","href":"/pl/aftersell/understanding_conditional_logic_for_post_purchase_triggers"},{"title":"Widżety post-purchase","href":"/pl/aftersell/post_purchase_widgets"},{"title":"Dokumentacja ustawień ofert post-purchase","href":"/pl/aftersell/post_purchase_offer_settings_reference"},{"title":"Dokumentacja upselli subskrypcyjnych","href":"/pl/aftersell/subscriptions_in_post_purchase_offers_reference"},{"title":"Dokumentacja Smart Funnel","href":"/pl/aftersell/smart_funnel_reference"},{"title":"Dokumentacja upselli zastępujących","tag":"BETA","href":"/pl/aftersell/replacement_upsells_reference"},{"title":"Ustawienia realizacji i płatności","href":"/pl/aftersell/fulfillments-and-payments-setting"}]},{"group":"Ulepszenia subskrypcji","pages":[{"title":"Dokumentacja konfiguracji ulepszeń subskrypcji","sidebarTitle":"Dokumentacja konfiguracji","href":"/pl/aftersell/subscription-upgrades-configuration-reference"},{"title":"Ograniczenia i ważne uwagi dotyczące upgrade'ów subskrypcji","sidebarTitle":"Ograniczenia i ważne uwagi","href":"/pl/aftersell/subscription-upgrades-limitations"},{"title":"Realizacja upgrade'ów subskrypcji i mapowanie 3PL","sidebarTitle":"Realizacja i mapowanie 3PL","href":"/pl/aftersell/subscription-upgrades-fulfillment"},{"title":"Integracje upgrade'ów subskrypcji","sidebarTitle":"Czym są integracje?","href":"/pl/aftersell/subscription-upgrades-integrations"},{"title":"Ulepszenia subskrypcji z Recharge","sidebarTitle":"Recharge","href":"/pl/aftersell/subscription-upgrades-recharge"},{"title":"Ulepszenia subskrypcji ze Skio","sidebarTitle":"Skio","href":"/pl/aftersell/subscription-upgrades-skio"},{"title":"Ulepszenia subskrypcji z Loop","sidebarTitle":"Loop","href":"/pl/aftersell/subscription-upgrades-loop"},{"title":"Ulepszenia subskrypcji ze Stay AI","sidebarTitle":"Stay AI","href":"/pl/aftersell/subscription-upgrades-stay"},{"title":"Rozwiązywanie problemów z ulepszeniami subskrypcji","sidebarTitle":"Rozwiązywanie problemów","href":"/pl/aftersell/subscription-upgrades-troubleshooting"}]},{"group":"Upselle przy realizacji zakupu","pages":[{"title":"Typy widżetów checkoutu","href":"/pl/aftersell/checkout_widget_types"},{"title":"Wyzwalacze checkoutu","href":"/pl/aftersell/checkout_triggers"},{"title":"Ustawienia brandingu checkoutu","href":"/pl/aftersell/checkout_branding_settings"},{"title":"Ograniczenia dostosowywania checkoutu","href":"/pl/aftersell/checkout_customization_limitations"}]},{"group":"Strona z podziękowaniem","pages":[{"title":"Przegląd","href":"/pl/aftersell/thank_you_page_extensions_overview"}]},{"group":"Analityka","pages":[{"title":"Dokumentacja metryk analityki post-purchase","href":"/pl/aftersell/analytics_metrics_reference"},{"title":"Dokumentacja AftersellQL (AQL)","href":"/pl/aftersell/aql_reference"},{"title":"Dokumentacja metryk analityki checkoutu","href":"/pl/aftersell/checkout_analytics_metrics_reference"},{"title":"Dokumentacja Order Browser","href":"/pl/aftersell/order_browser_reference"}]}]}]},{"product":"Upcart","icon":"shopping-cart","pages":[{"title":"Upcart","href":"/pl/upcart/welcome_to_upcart"}]}]},{"language":"ko","pages":[{"title":"ko","href":"/ko/aftersell/strategies_api_reference_evaluate_strategy"}]},{"language":"da","pages":[{"title":"da","href":"/da/aftersell/strategies_api_reference_evaluate_strategy"}]},{"language":"ar","pages":[{"title":"ar","href":"/ar/aftersell/strategies_api_reference_evaluate_strategy"}]}]},"basePath":"","title":"Ewaluacja strategii - Aftersell \u0026 Upcart Docs","buildId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","deploymentId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","dynamics":["c2aa737661","b0f84f53ff","2b790eda92","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-5FCzAcfS.js","utils-SLtAG4EZ.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-2DZi8ZMu.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D7J3nkzE.js","snippetPresets-D0Alv0AH.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","Page-D9ithiIZ.js","ApiExamples-BI4qNJ2c.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BD3uyr8j.js","shallow-D8iEBr5z.js","getApiPlaygroundDisplay-CgNP4lzR.js","CodeSnippet-CX-QHuMs.js","CodeSnippets-VlXE-ZUf.js","getPastedJson-DYNQkZ1M.js","icon-CzacdwOi.js","MethodPill-2JVqoYKi.js","DuplicateIcon-_xVXs-U8.js","createIcon-BRHrweLo.js","DynamicMarkdown-mQG_iQiE.js","SectionHeading-DMpJzv8f.js","axios-vUo_bRtp.js","Markdown-5FGIym-8.js","clsx-D-TRO5q5.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CdrJecqK.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-CHlcWBLM.js"]}