Skip to main content
Extract a shipping bill PDF. One call returns the summary fields, the full parsed document and a verification report. POST /shipping-bills/platform/extract

Request

file
required
The shipping bill PDF. Maximum 10 MB, one file per request. Must be the PDF downloaded from ICEGATE. A scan or photo has no text layer and is rejected.

Headers

string
required
Your eBRC API key (dev_ or prod_). Extraction has no separate credential. See Authentication.

Example request

Response

fields

The summary most integrations want. Everything here comes from the bill’s page header and PART I, which is why it resolves even when a bill’s later parts are only partly understood.
string
The SB number from the page header.
string
ISO YYYY-MM-DD. A date that could not be parsed is "", never a guess.
string
ICEGATE port code, e.g. INCCU1.
string
The first invoice in the PART I summary.
string
That invoice’s currency.
number
FOB value from the PART I value summary.
string
Always "", not printed on the bill. Present so the key is never silently absent.
string
As above.
number
Commission deducted. The bill prints this column as COM.
number
Discount deducted.
number
Insurance deducted.
number
Freight deducted.
number
Other deductions.
number
The “declared for information only” counterparts DGFT distinguishes from amounts actually deducted. PART I carries only the deducted figures, so these are always 0, emitted rather than omitted so every key is present.
Deductions are top level on fields, not nested under a deductions object. fields.commission, not fields.deductions.commission.

sections

The complete parsed document: PART I to PART IV in the shape ICEGATE prints them, with the original block and column names. Use it when you need more than the summary; ignore it otherwise. Keys appear only for parts actually found in the file. A standard bill yields section_1 through section_4.

document

string
SHA-256 of the uploaded bytes, so a specific upload can be identified later.
number
Pages in the PDF.
string
The filename you sent.

verification

Whether the bill agreed with its own arithmetic. See Verification for every check and what a failure means.

Errors

Every rejection names the fix rather than failing generically.