Skip to main content

inventoryCreate

Create a new inventory record in the system.

Establishes a new inventory entry with stock levels, location details, and product associations. The inventory record will be available for stock management and availability calculations immediately.

Possible errors:

  • INVENTORY_CREATE_ERROR: Failed to create the inventory record
  • INVENTORY_ALREADY_EXISTS_ERROR: Inventory record already exists for this product and location
  • INVENTORY_PRODUCT_NOT_FOUND_ERROR: Specified product does not exist
  • INVENTORY_WAREHOUSE_NOT_FOUND_ERROR: Specified warehouse does not exist
  • FORBIDDEN: Insufficient permissions to create inventory records

AUTH: Role=[logistics.OWNER]

inventoryCreate(
input: CreateInventoryInput!
): InventoryResponse!

Arguments

inventoryCreate.input ● CreateInventoryInput! non-null input

Inventory creation data including stock levels and location details.

Contains product associations, stock quantities, location information, and all data needed to create a complete inventory record.

Type

InventoryResponse object

Inventory information response with associated warehouse details.

Contains inventory data linked to a specific warehouse location. Used for inventory management, stock tracking, and warehouse-specific inventory operations.