magento · Schema

SourceItem

A source item representing the quantity of a product at a specific inventory source.

Properties

Name Type Description
sku string SKU of the product.
source_code string Code of the inventory source holding this quantity.
quantity number Available quantity of the product at this source.
status integer In-stock status. 1 = in stock, 0 = out of stock.
View JSON Schema on GitHub

JSON Schema

magento-sourceitem-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/SourceItem",
  "title": "SourceItem",
  "type": "object",
  "description": "A source item representing the quantity of a product at a specific inventory source.",
  "properties": {
    "sku": {
      "type": "string",
      "description": "SKU of the product."
    },
    "source_code": {
      "type": "string",
      "description": "Code of the inventory source holding this quantity."
    },
    "quantity": {
      "type": "number",
      "description": "Available quantity of the product at this source."
    },
    "status": {
      "type": "integer",
      "description": "In-stock status. 1 = in stock, 0 = out of stock.",
      "enum": [
        0,
        1
      ]
    }
  }
}