Skip to content

ItemWiseInventory ​

Type: schema

TypeScript Definition ​

typescript
ItemWiseInventory: {{
            product_id: string;
            product_name: string;
            variant_id: string | null;
            variant_name: string | null;
            sku: string | null;
            track_quantity: boolean;
            allow_backorder: boolean;
            track_lot_batch: boolean;
            /** Format: decimal */
            low_stock_threshold: number;
            /** Format: decimal */
            received_quantity: number;
            /** Format: decimal */
            reserved_quantity: number;
            /** Format: decimal */
            sold_quantity: number;
            /** Format: decimal */
            adjusted_quantity: number;
            /** Format: decimal */
            stock_quantity: number;
            /** @description Whether sellable stock is available after reservations and backorder rules. */
            stock_available: $Read<boolean>;
            images: components["schemas"]["AdminProductImage"][];
            /** @description Included when view=warehouse. */
            warehouse_id?: string | null;
            /** @description Included when view=warehouse. */
            warehouse_name?: string | null;
        };
        /** JuspayCardPaymentMethod */
}

Component References ​

ReferenceResolves To
components["schemas"]["AdminProductImage"]AdminProductImage

OpenAPI Schema ​

json
{
  "type": "object",
  "properties": {
    "product_id": {
      "type": "string"
    },
    "product_name": {
      "type": "string"
    },
    "variant_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "variant_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "sku": {
      "type": [
        "string",
        "null"
      ]
    },
    "track_quantity": {
      "type": "boolean"
    },
    "allow_backorder": {
      "type": "boolean"
    },
    "track_lot_batch": {
      "type": "boolean"
    },
    "low_stock_threshold": {
      "type": "number",
      "format": "decimal"
    },
    "received_quantity": {
      "type": "number",
      "format": "decimal"
    },
    "reserved_quantity": {
      "type": "number",
      "format": "decimal"
    },
    "sold_quantity": {
      "type": "number",
      "format": "decimal"
    },
    "adjusted_quantity": {
      "type": "number",
      "format": "decimal"
    },
    "stock_quantity": {
      "type": "number",
      "format": "decimal"
    },
    "stock_available": {
      "description": "Whether sellable stock is available after reservations and backorder rules.",
      "type": "boolean",
      "readOnly": true
    },
    "images": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/AdminProductImage"
      }
    },
    "warehouse_id": {
      "description": "Included when view=warehouse.",
      "type": [
        "string",
        "null"
      ]
    },
    "warehouse_name": {
      "description": "Included when view=warehouse.",
      "type": [
        "string",
        "null"
      ]
    }
  },
  "externalDocs": {
    "url": "https://llm-docs.commercengine.io/admin-pos/schemas/ItemWiseInventory"
  },
  "required": [
    "product_id",
    "product_name",
    "variant_id",
    "variant_name",
    "sku",
    "track_quantity",
    "allow_backorder",
    "track_lot_batch",
    "low_stock_threshold",
    "received_quantity",
    "reserved_quantity",
    "sold_quantity",
    "adjusted_quantity",
    "stock_quantity",
    "stock_available",
    "images"
  ],
  "title": "ItemWiseInventory"
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: