Skip to main content
POST
Bulk upload via Excel
Upload an Excel file (.xlsx or .xls, max 5 MB) to generate eBRCs in bulk. Column headers are matched to the required fields by name and the rows are submitted to DGFT in a single request. Validation errors come back per row, so you know exactly which line to fix. Limited to 5 calls per minute. Download the starting file from Download Bulk Upload Template, or pre-filled with real IRM data. Extracting rows from shipping bill PDFs first? See Shipping Bill extraction.

Request example

Query parameters:

Response

Alongside the DGFT acknowledgement, the response echoes back every IRM that was parsed and submitted:
  • parsedRowCount: how many rows were read from the file
  • irmNumbers: flat list of the submitted IRM numbers, in file order
  • irms: the same rows with serialNo, irmDt, irmAdCode, irmIfscCode, and sbCumInvoiceNumber
Use irms rather than irmNumbers when reconciling, since an IRM number is not unique on its own: the same number can recur under a different AD code or date.

Row-level validation errors

If the file fails validation, the API returns 400 with one entry per failing cell:

Valid codes

Next steps

Authorizations

x-api-key
string
header
required

Query Parameters

platformCustomerId
string
required

Platform customer UUID

uploadType
enum<string>
required

DGFT upload type

Available options:
1,
2,
3,
4
decalarationFlag
enum<string>
required

Declaration flag

Available options:
Y,
N

Body

multipart/form-data
file
file
required

Excel file (.xlsx or .xls), max 5 MB

Response

DGFT acknowledgement with parsed row count

dgftAckId
string
requestId
string
ackStatus
enum<string>
Available options:
Validated,
Failed
recordResCount
number
errorDetails
object[]
parsedRowCount
number

Number of rows successfully parsed from the Excel file

irmNumbers
string[]

Flat list of the IRM numbers submitted, in file order

irms
object[]

The parsed rows echoed back, one entry per submitted IRM. Use these to reconcile the submission; an IRM number alone is not unique across AD codes and dates.