Skip to main content

Apply Shopify Vendor Suppliers

POST 

/api/shopify/:integration_instance_id/vendor-suppliers/apply

Apply the vendor decisions as the background job Map Shopify Vendors to Suppliers: create the missing suppliers, save the decisions, turn on the store's Content Sync vendor → default supplier mapping and set the default supplier on linked products. Products that already have a default supplier keep it unless replace is true. The store's vendor target is updated too: an undecided store becomes supplier, and a store set to brand becomes both.

Required scope: integrations:write

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

Body parameters:

  • rows (array, required, min 1) — one decision per vendor.
  • rows.*.vendor (string, required, max 255) — the Shopify vendor.
  • rows.*.action (string, required) — create (a new supplier named after the vendor), map (an existing supplier) or skip (leave its products alone).
  • rows.*.supplier_id (integer, required when action is map) — an existing supplier.
  • replace (boolean, optional, default false) — also replace the default supplier on products that already have one.

Returns the background job id; poll the jobs API to track progress. A non-Shopify instance answers 422.

Requires integrations.update. Scope: integrations:write.

Request​

Responses​

OK

Response Headers
    Content-Type