You can print the customer's GST number in the order documents by placing a code in the address templates from the admin panel. Go to Stores > Configuration > Customers >Customer Configuration > Address Templates and place the following code in both HTML & PDF:
depend buyer_gst_numberBuyer's GSTIN: var buyer_gst_number/depend