Skip to main content

Validate Draft

POST 

/api/v2/listing-drafts/:draft/validate

Re-resolve the draft's values against current product data + mappings and re-run validation. Mapped overrides ({source_type, source_value}) are re-evaluated against the product on every call. State transitions to ready when validation passes, back to draft when errors appear. A draft without a category records a missing_category validation error.

Required scope: products:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Authentication: Requires Bearer token.

variant_context — describes whether this draft targets a single VARIANT of a matrix family rather than the family itself. When is_variant_child is true, parent_sku / parent_name identify the family and sibling_count is how many variants it has. Publishing a single child is permitted, but it creates a standalone channel item with no variant group — publish the parent to list the whole family as one grouped listing. null when the draft has no product.

Each field's schema reports the channel's constraints. cardinality is the MAXIMUM number of values the field accepts (0 = unbounded) and min_cardinality is the MINIMUM (0 = none). A channel can require several entries on one field - Walmart's Cloth Baby Diapers category asks for at least 4 Key Features and 4 additional images - and rejects the item after accepting the submission, so supply at least min_cardinality values before publishing.

Request​

Responses​

OK