commercetools · Schema

InventoryImport

A single inventory entry resource for import.

CommerceComposable CommerceE-CommerceGraphQLRESTSDK

Properties

Name Type Description
key string User-defined key for matching against existing inventory entries.
sku string SKU of the product variant.
quantityOnStock integer Quantity on stock to set.
supplyChannel object Reference to the supply channel by key.
restockableInDays integer Expected restocking time in days.
View JSON Schema on GitHub

JSON Schema

commercetools-inventoryimport-schema.json Raw ↑
{
  "$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."
    }
  }
}