Skip to main content

Update Master of Stock for a Source

PATCH 

/api/magento2/integration-instances/:magento2IntegrationInstance/inventory-sources/:sourceCode/master-of-stock

Update the Master of Stock direction for a single Magento MSI source.

Per the sales-channel standard §7.10, Master of Stock lives per-location (per MSI source for Magento 2), not as a single global value on the integration instance.

Authentication: Requires Bearer token.

Request body:

  • master_of_stock (string, required) — one of sku.io, magento2, disabled.
    • sku.io — SKU.io pushes on-hand to this Magento source on a schedule.
    • magento2 — RESERVED. Magento→SKU.io direction is not implemented yet; the UI exposes it as a disabled "(contact support)" option.
    • disabled — no automatic sync for this source.

Responses:

  • 200 OK — returns { data: { source_code, master_of_stock } }.
  • 404 Not Found — the MSI source is not cached for this instance. Refresh sources on Settings → Locations first.
  • 422 Unprocessable Entitymaster_of_stock missing or not one of the allowed values.

Request

Responses

OK

Response Headers
    Content-Type