You can get an Importer Exporter Code (IEC) by applying online through the DGFT portal (https://dgft.gov.in), filling out the application form, uploading the required documents, and paying the registration fee. The IEC is typically issued within 1-2 working days.