Skip to main content

SalesOrderItemAllocation

The part of a sales order line that is filled from one warehouse. The quantities of a line's allocations add up to the line.

type SalesOrderItemAllocation {
baseQuantity: Float!
batchNumber: String
createdAt: DateTime!
id: ID!
quantity: Float!
remainingQuantity: Float
reservationId: ID
reservationStatus: AllocationReservationStatus!
salesOrderItemId: ID!
serialNumber: String
source: AllocationSource!
warehouse: AllocationWarehouseRef
warehouseId: ID!
}

Fields​

SalesOrderItemAllocation.baseQuantity ● Float! non-null scalar​

The quantity in base units: the quantity times the unit conversion factor.

SalesOrderItemAllocation.batchNumber ● String scalar​

The batch the reservation is pinned to.

SalesOrderItemAllocation.createdAt ● DateTime! non-null scalar​

When the record was created.

SalesOrderItemAllocation.id ● ID! non-null scalar​

The unique ID of this record.

SalesOrderItemAllocation.quantity ● Float! non-null scalar​

The quantity, in the order line's unit of measure.

SalesOrderItemAllocation.remainingQuantity ● Float scalar​

How much of the allocation can still be shipped, in the order line's unit of measure.

SalesOrderItemAllocation.reservationId ● ID scalar​

The ID of the stock reservation behind the allocation, if any.

SalesOrderItemAllocation.reservationStatus ● AllocationReservationStatus! non-null enum​

Where the reservation stands.

SalesOrderItemAllocation.salesOrderItemId ● ID! non-null scalar​

The ID of the order line.

SalesOrderItemAllocation.serialNumber ● String scalar​

The serial number the reservation is pinned to.

SalesOrderItemAllocation.source ● AllocationSource! non-null enum​

How the allocation was made.

SalesOrderItemAllocation.warehouse ● AllocationWarehouseRef object​

The warehouse the stock comes from.

SalesOrderItemAllocation.warehouseId ● ID! non-null scalar​

The ID of the warehouse.

Returned By​

reallocateSalesOrder mutation ● salesOrderAllocations query ● setSalesOrderItemAllocations mutation