Item Tracking Lines Realtime-enabled
GETPOSTPATCHDELETETable: Reservation Entry
eOne/core/v1.0/itemTrackingLines
Assign serial / lot / package tracking to an OPEN document line. Exposed as the itemTrackingLines collection nested under sales & purchase order and return-order lines, and transfer order lines.
POST under a line, e.g. salesOrderLines({id})/itemTrackingLines, the parent stamps the source line for you. Provide one of serialNumber / lotNumber / packageNumber plus a quantity (a serial always tracks exactly one unit). You can also deep-insert tracking when you POST the order.
Tracking is written through Business Central's reservation engine as surplus entries, not a direct table write, so it is validated against the line's outstanding quantity as you assign it. The item must have an Item Tracking Code, and that code must track the kind of number you send for this kind of document line. A code that tracks lots but not serial numbers on a sale refuses a
serialNumber on a sales order line, so you see the problem on the call that caused it instead of at posting.serialNumber / lotNumber / packageNumber are create-time identity: only quantity can be PATCHed, change tracking by DELETE + re-POST. DELETE is refused for a row reserved against a specific supply. Directed put-away & pick (WMS) locations track on warehouse documents, not here.