Parameters
JSON body
Request body
application/jsonproductCodestringRequiredProduct code to preview for.
my-productvariantCodestring | nullOptionalVariant code, or null for product-level preview.
atstringOptionalISO datetime at which to evaluate the rules. Defaults to now.
2026-06-20T15:30:00Zrulesany[]RequiredIn-flight rule set to evaluate — typically the current admin form state. Letting the caller send the rules makes the preview work before the rules are saved.