# Setup: Configuration

Before generating e-invoices and e-way bills, set up each GSTIN once in the module's **Configuration** page, under
**Setup** in the E-Invoicing & E-Waybills module's sidebar. It has company settings, GSTIN settings and, if you keep
branches, branch settings. Changing them needs full access to the company or GSTIN; others see them read-only.

## Step 1: Create API Users on the E-Invoice Portal

Octa reaches the E-Invoice Portal through a GSP (GST Suvidha Provider), with an API user you create for each GSTIN:

1. Log in to the [E-Invoice Portal](https://einvoice1.gst.gov.in). The portal sends an OTP to the mobile number
   registered on the GST Portal.
2. Go to **API Registration → User Credentials → Create API User**, and enter the OTP.
3. Choose **Through GSP**, and the GSP **Blowbits Solutions LLP**.
4. Choose an API username and password, and click **Submit**.
5. Repeat for the GSP **Alankit Limited**.

With API users for both GSPs, Octa can switch to the other GSP if one is down.

> **Warning:** Keep the API credentials safe. They are linked to your GSTIN, and their misuse could affect your compliance.

## Step 2: GSTIN Settings

For each GSTIN, the **GSTIN Settings** have four parts. A GSTIN can generate e-invoices only once its **E-Invoice
Details** and **IRP Accounts** are set.

### E-Invoice Details

The supplier details printed on the GSTIN's e-invoices and sent to the portal: legal name, trade name, address, city,
PIN code, phone and email. For B2C invoices with a payment QR code, also the **UPI ID** and **UPI Payee Name**.

**Reset** puts the details back to those of the GSTIN's registration.

### IRP Accounts

The API users you created in step 1. Click **Add**, choose the **GSP** (Blowbits or Alankit) and enter the API
**Username** and **Password**. Add one account for each GSP.

If you registered directly with the E-Invoice Portal instead of through a GSP, choose **NIC Direct** and also enter
your **Client ID** and **Client Secret**.

### Sales Print Settings and Purchase Print Settings

How Octa prints the GSTIN's e-invoices (sales) and its reverse charge self-invoices (purchase): the logo, theme colour,
formats, business information, bank details, terms and digital signature. See the sales
[print settings](/octa/docs/app/sales/setup/configuration#gstin-settings) for the full list.

## Company Settings

The **Document Signing Certificate**: the certificate Octa uses to sign the e-invoice PDFs digitally. Add it from its
PFX file with its password. To sign, also turn on the digital signature in the GSTIN's print settings, and give the user
the signing permission (see [Managing Team](/octa/docs/app/getting-started/admin/managing-team)).

## Branch Settings

If you keep branches, each branch can have its own **E-Invoice Details**: the dispatch address and contact printed on
its e-invoices. A branch without its own details uses the GSTIN's. **Reset** puts them back to the GSTIN's.