Skip to main content
POST
Evaluate Strategy

Autorisierungen

X-Strategy-Api-Key
string
header
erforderlich

Body

application/json
shopDomain
string
erforderlich

Your store's permanent domain

strategyId
string
erforderlich

The strategy ID to evaluate (a single 24-char hex MongoDB ObjectId)

context
object
erforderlich
surface
enum<string>

Optional surface the evaluation is running on. Recorded for tracing and reporting.

Verfügbare Optionen:
checkout,
post_purchase,
thank_you,
custom,
cart,
pdp

Antwort

Evaluation successful

success
boolean

Whether the evaluation succeeded

products
object[]

Fully enriched recommended products

evaluationId
string

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.

resolution
object
meta
object
errors
object[]

Present only when errors occur