v1

latestOpenAPI 3.1.02026-07-2611112.1 KB

Evaluate Strategy

Evaluate a strategy against provided context to return the desired experience.

post/api/public/strategy/evaluate

Request body

shopDomainstring required

Your store's permanent domain

strategyIdstring required

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

Response

Evaluation successful

successboolean

Whether the evaluation succeeded

evaluationIdstring

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.

All 1 operations