Skip to main content
POST
Evaluate Strategy

Authorizations

X-Strategy-Api-Key
string
header
required

Body

application/json
shopDomain
string
required

Your store's permanent domain

strategyId
string
required

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

context
object
required

Response

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