{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/InventoryImport",
  "title": "InventoryImport",
  "type": "object",
  "description": "A single inventory entry resource for import.",
  "required": [
    "key",
    "sku",
    "quantityOnStock"
  ],
  "properties": {
    "key": {
      "type": "string",
      "description": "User-defined key for matching against existing inventory entries."
    },
    "sku": {
      "type": "string",
      "description": "SKU of the product variant."
    },
    "quantityOnStock": {
      "type": "integer",
      "description": "Quantity on stock to set."
    },
    "supplyChannel": {
      "type": "object",
      "description": "Reference to the supply channel by key."
    },
    "restockableInDays": {
      "type": "integer",
      "description": "Expected restocking time in days."
    }
  }
}