Some of the main rules of writing an invoice are:  Date and Invoice number.   Name of Customer.   Billing Address and Shipping Address of customer.  GSTIN of Taxpayer and Customer (if registered)