Skip to main content

Compare Existing Products Content

POST 

/api/integration-instances/:integrationInstance/content-sync/compare-existing

Bring the products already imported from this integration instance in line with the channel, as a background job. Runs whether or not ongoing content sync is on, so the catalog can be brought up to date before sync is turned on.

Required scope: integrations:write

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

Body parameters:

  • mode (string, required) — compare runs a full comparison: every difference on every governed field in scope is handled according to that field's ownership and auto-apply settings (applied, raised for review, recorded, or a conflict). fill_empty only fills empty catalog fields with the channel's value, without review; nothing else is recorded.
  • fields (array of string, optional, min 1, distinct) — limit the run to these governed fields: barcode, mpn, name, brand, product_type, attributes, images, weight, dimensions, unit_cost, pricing, supplier_pricing. Omit or send null for every field.

The run's outcome is recorded under comparisons in the content sync overview (GET /api/integration-instances/{integrationInstance}/content-sync-overview), keyed by mode and fields. Returns the background job id and its name (Content Sync Full Comparison or Content Sync Fill Empty Fields); poll the jobs API to track progress.

Requires integrations.manage_content_sync. Authentication: Requires Bearer token. Scope: integrations:write.

Request​

Responses​

OK

Response Headers
    Content-Type