CreateStockMovementInput
A new stock movement.
input CreateStockMovementInput {
batchNumber: String
fromWarehouseId: ID
metadata: JSON
notes: String
productId: ID!
quantity: Float!
reason: String
referenceId: String
referenceType: String
serialNumber: String
toWarehouseId: ID
type: MovementType!
uomId: ID
variantId: ID!
}
Fields
CreateStockMovementInput.batchNumber ● String scalar
The batch number of the stock.
CreateStockMovementInput.fromWarehouseId ● ID scalar
The ID of the warehouse the stock leaves.
CreateStockMovementInput.metadata ● JSON scalar
Additional data attached to the record, as JSON.
CreateStockMovementInput.notes ● String scalar
Notes about the movement.
CreateStockMovementInput.productId ● ID! non-null scalar
The ID of the product.
CreateStockMovementInput.quantity ● Float! non-null scalar
The quantity to move.
CreateStockMovementInput.reason ● String scalar
Why the movement is made.
CreateStockMovementInput.referenceId ● String scalar
The ID of that document.
CreateStockMovementInput.referenceType ● String scalar
The kind of document that causes the movement.
CreateStockMovementInput.serialNumber ● String scalar
The serial number of the stock.
CreateStockMovementInput.toWarehouseId ● ID scalar
The ID of the warehouse the stock goes to.
CreateStockMovementInput.type ● MovementType! non-null enum
The kind of movement.
CreateStockMovementInput.uomId ● ID scalar
The ID of the unit of measure.
CreateStockMovementInput.variantId ● ID! non-null scalar
The ID of the product variant.
Member Of
createStockMovement mutation