TransferLine type
One product moved by a transfer.
Fields
id
The line's MAX id.
lineNo
Int!
The line's number within the transfer.
productVariantId
The MAX id of the product variant.
productVariant
The product variant the line moves. Requires the item.read permission. Without it, null with
a FORBIDDEN_ROLE error at its path (extensions.permission). The rest is returned.
product
The variant's parent product. Requires the item.read permission. Without it, null with a
FORBIDDEN_ROLE error at its path (extensions.permission). The rest is returned.
quantity
The quantity in unit, as entered.
unit
String!
The code of the unit that quantity is in.
baseQuantity
The quantity in baseUnit.
baseUnit
String!
The code of the product's base unit (Product).
unitCost
The cost per base unit that the goods moved at, without VAT, as a positive number. Null while costing is pending, on a line of a set sold as its components, and on the lines of a cancelled transfer.
value
What the line's goods were worth, without VAT, as a positive number. Null while costing is pending.
- Inside one valuation area, the line moves no value. Between two areas, it moves this much value from the source warehouse's area to the target warehouse's.
- A line of an
OPENtransfer that is not yet applied hasvaluenull andcostingPendingfalse, and is not counted intotalValue.
costingPending
Boolean!
true while any of the line's stock movements waits to be costed. false for a line of an
OPEN transfer that is not yet applied.
lot
The batch or serial number moved, when the product tracks one.
sourceLocationCode
String
The code of the location the goods were taken from. Null when the source warehouse tracks no
locations, or when it is outside your API key's warehouse scope. In the second case, with the
warehouse.read permission, sourceWarehouse returns FORBIDDEN_SCOPE.
targetLocationCode
String
The code of the location the goods were put to. Null when the target warehouse tracks no
locations, or when it is outside your API key's warehouse scope. In the second case, with the
warehouse.read permission, targetWarehouse returns FORBIDDEN_SCOPE.
transferAdviceLineId
The MAX id of the transfer advice line that this line carries out. Null on a line entered
directly. Requires the transferAdvice.read permission. Without it, null with a
FORBIDDEN_ROLE error at its path (extensions.permission).
transferAdviceLine
The whole transfer advice line that this line carries out. Null on a line entered directly.
The same permission applies as for transferAdviceLineId.