How to get shipping lines to your WMS / ERP system
Packrooster Shipping writes shipping lines to two different locations, order data and order metafields.
In order data the information lies in "shipping_lines.code" that is generated like this "carrier|shipping-method|pickup-point-id|#PID". The data always has Packrooster's internal shipping rate ID #PID as the last data entry.
If you split the code by "|", you should receive three or four data strings. Three means that there is no pickup point, four means that there is a pickup point. The internal #PID always has the hashtag, so you can use that to recognize if the third entry has that, there is no pickup point selected.
Example of order datas "shipping_lines":
In order metafields the information is in JSON format and is in namespace "packrooster" key "shipping-service". The metafield will change automatically if pickup point is changed inside Packrooster. Unlike the "shipping_lines.code" the metafield will have additional information like pickup points address (street, postalcode, city and country). If your WMS / ERP system needs these kind of additional information please use order metafield to get the corresponding data.
Example of order metafield created by Packrooster: