Skip to main content

Import Product Substitutions

POST 

/api/product-substitutions/import

Execute the import. Files up to 500 rows run inline and return the summary directly; larger files run as a background job (202 response with a job ID to track).

Required scope: products:write

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

Authentication: Requires Bearer token.

The import is idempotent on the (product_sku, substitute_sku) pair, so re-uploading a corrected file is safe. Set evaluate_open_orders to immediately re-evaluate open orders against the imported rules and release any that a swap resolves.

The optional substitution_type column (direct | replacement, plus the synonyms listed on Validate) is only applied when supplied — a blank value defaults a NEW rule to direct and leaves an existing rule's classification untouched.

Request

Responses

OK

Response Headers
    Content-Type