CreateInventoryInput
Input for creating a new inventory record.
Contains all necessary information to establish a new inventory entry including product association, stock quantities, location details, supplier information, and cost data. Used for initial inventory setup and stock replenishment.
input CreateInventoryInput {
type: InventoryType!
productId: Int!
quantity: Int!
location: String
warehouseId: Int
notes: String
nextDeliveryDate: String
costPrice: Float
supplier: String
}
Fields
CreateInventoryInput.type
● InventoryType!
non-null enum
Classification of inventory storage and management type.
Determines how the inventory is managed, whether it's held locally in company warehouses or managed by external suppliers for drop-shipping.
CreateInventoryInput.productId
● Int!
non-null scalar
Product identifier linked to this inventory.
References the specific product in the catalog that this inventory record tracks, enabling product-inventory relationships.
CreateInventoryInput.quantity
● Int!
non-null scalar
Current stock level available for this inventory record.
The number of units physically available at this location, used for availability calculations and stock level monitoring.
CreateInventoryInput.location
● String
scalar
Specific storage location within the warehouse.
Detailed location information such as aisle, shelf, or bin number for precise inventory placement and efficient picking operations. Maximum 35 characters.
CreateInventoryInput.warehouseId
● Int
scalar
Warehouse facility identifier.
References the specific warehouse or storage facility where this inventory is physically located for fulfillment operations.
CreateInventoryInput.notes
● String
scalar
Additional information and handling instructions.
Free-form text for storing special handling requirements, quality notes, or other relevant information about this inventory batch. Maximum 255 characters.
CreateInventoryInput.nextDeliveryDate
● String
scalar
Expected replenishment delivery date.
Estimated date when the next shipment of this product will arrive, used for stock planning and customer availability communication. Must be in ISO8601 format.
CreateInventoryInput.costPrice
● Float
scalar
Unit cost for this inventory batch.
The cost incurred to acquire each unit in this inventory record, used for margin calculations, inventory valuation, and profitability analysis.
CreateInventoryInput.supplier
● String
scalar
Supplier name for this inventory batch.
The company or organization that supplied the products. Defaults:
- 'INTERN' for locally managed inventory
- Product supplier name for supplier-managed inventory
Member Of
inventoryCreate
mutation