It is generated on the acknowledge page when a visa is successfully submitted. You can also contact the authorized visa agent to which you submitted the application to retrieve the visa application reference number.