Magento Open Source 2.2.x

Adding Reference IDs to Header

The Order ID and customer IP address can be included in the header of sales documents that accompany an order. By default, both the Order ID and customer IP address appear in the header of invoices, shipment packing slips, and credit memos.