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.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 yieldssection_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.