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
Response containing inventory data with operation metadata.
Extends the base inventory entity with additional response information including error messages and operation totals. Used for API responses that need to provide both inventory data and operation feedback.