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
- 200
- 401
- 403
- 404
- 422
- 429
OK
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Unprocessable Content
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.