Skip to content

InventoryActivity ​

Type: schema

TypeScript Definition ​

typescript
InventoryActivity: {{
            product_id: string;
            product_name: string;
            variant_id: string | null;
            variant_name: string | null;
            sku: string | null;
            warehouse_id: string | null;
            warehouse: components["schemas"]["WarehouseBasicDetail"] | null;
            /** @enum {string} */
            activity_type: "add" | "reserve" | "reduce" | "release" | "restore" | "reset";
            quantity: number;
            reason: string;
            lot_batch: string | null;
            /** Format: date */
            mfg_date: string | null;
            /** Format: date */
            exp_date: string | null;
            manufacturer: string | null;
            /** Format: date-time */
            created_at: string;
            /** Format: date-time */
            modified_at: string;
        };
        /** InventoryDetail */
}

Component References ​

ReferenceResolves To
components["schemas"]["WarehouseBasicDetail"]WarehouseBasicDetail

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"
      ]
    },
    "warehouse_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "warehouse": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/WarehouseBasicDetail"
        },
        {
          "type": "null"
        }
      ]
    },
    "activity_type": {
      "type": "string",
      "enum": [
        "add",
        "reserve",
        "reduce",
        "release",
        "restore",
        "reset"
      ]
    },
    "quantity": {
      "type": "integer"
    },
    "reason": {
      "type": "string",
      "maxLength": 512
    },
    "lot_batch": {
      "type": [
        "string",
        "null"
      ]
    },
    "mfg_date": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "exp_date": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "manufacturer": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "modified_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "externalDocs": {
    "url": "https://llm-docs.commercengine.io/admin-pos/schemas/InventoryActivity"
  },
  "required": [
    "product_id",
    "product_name",
    "variant_id",
    "variant_name",
    "sku",
    "warehouse_id",
    "warehouse",
    "activity_type",
    "quantity",
    "reason",
    "lot_batch",
    "mfg_date",
    "exp_date",
    "manufacturer",
    "created_at",
    "modified_at"
  ],
  "title": "InventoryActivity",
  "x-tags": [
    "Catalog"
  ]
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: