Skip to main content

Preview Draft Against Product

POST 

/api/v2/listing-drafts/:draft/preview-against-product

Resolve this draft's mappings (its template + field overrides) against a DIFFERENT product, returning the value each channel field would receive for that product — with no persistence. Useful for a "preview against another product" control: mapped fields (product_field / product_attribute / expression) re-evaluate against the given product, while typed literal values stay as-is.

Request body:

  • product_id (integer, required) — the product to resolve against; must exist.

Response: data.product echoes the previewed product, and data.values is keyed by channel field name, each with the resolved value and its provenance (override / template / channel_mapping / integration_mapping / channel_default / blank).

Authentication: Requires Bearer token. Feature flag: requires listing-publishing to be enabled.

Request

Responses

OK