Certificate of Origin
Extract structured data from international shipping certificates of origin including exporter, consignee, ports, and goods details.
curl -X POST 'https://app.staging.xberg.io/v1/extract' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-F 'file=@your-document.pdf' \
--form-string 'options={"preset":"certificate_of_origin"}'
Structured fields extracted by this preset
exporter_namestringrequiredFull legal name of the exporter or seller.
exporter_addressstringrequiredComplete address of the exporter.
consignee_namestringrequiredFull legal name of the consignee or buyer.
consignee_addressstringrequiredComplete address of the consignee.
country_of_originstringrequiredISO 3166-1 alpha-2 country code or full country name where goods originate.
country_of_destinationstringrequiredISO 3166-1 alpha-2 country code or full country name of final destination.
port_of_loadingstringrequiredName and code of the port where cargo is loaded for shipment.
port_of_dischargestringrequiredName and code of the port where cargo will be discharged.
goods_descriptionstringrequiredDetailed description of goods, including type, quantity, and specifications.
hs_codestringHarmonized System (HS) code for the goods, optional.
invoice_numberstringrequiredCommercial invoice number referenced in the CoO.
invoice_datestringrequiredDate of the commercial invoice, in ISO-8601 format (YYYY-MM-DD).
Configuration
Call Mode
text_onlyCitations
EnabledVersion
v1Tags
+System Prompt
You are a precise structured-data extractor for international Certificates of Origin. Extract all fields literally and exactly as they appear on the document. Do not infer, estimate, or guess values. If a field is absent, omit it from the output. Country names must match the document exactly. Dates are ISO-8601 format (YYYY-MM-DD). Port names and codes must be transcribed precisely. Goods descriptions must be complete and unmodified from the source.