Extract Customs Declaration with OCR API Integration — Complete Developer Guide

Learn how to extract Customs Declaration data programmatically using OCR API Integration — Complete Developer Guide. Extract HS codes, values, duties, incoterms from DUA customs documents. Includes code, field mapping, and API integration.

Extracting Customs Declaration Data

Documento Unico Administrativo contains 54 fields in dense multi-page format.

Extracted Fields

declaration_number, customs_office, exporter, importer, hs_code, goods_description, gross_weight, invoice_value, incoterm, country_of_origin, duties, total_duties.

Integration with OCR API Integration — Complete Developer Guide

Cargoffer OCR is a REST API with Bearer token authentication. The extraction workflow has two steps: upload a document via POST /api/upload, then analyze it via POST /api/analyze/job_name. The result is a structured JSON object with all extracted fields plus a verified boolean indicating 2-pass confirmation.

Pricing

From 0.002 EUR per Customs Declaration page. [See pricing](/tutorials/comparisons/volume-pricing).

Get Started

[Get your free API key →](/app)

Ready to try it?

Start Free →