Customs Declaration
Get Customs Declaration Fields
This endpoint returns an object representing the extracted customs-declaration model fields from a document.
GET
Authorizations
Our API offers authentication via API keys. You can obtain an API key from https://developer.abbyy.com
Path Parameters
The id of the document
Response
200
application/json
Extracted Customs Declaration Data Response
Represents a document that has been submitted for processing.
Examples:
{
"id": "wh23anb5xjf0ntw5taase5qz",
"name": "document.jpg",
"createdAt": "2025-02-07T17:44:06.949Z",
"model": "image-to-text",
"status": "Processed",
"pageCount": 10,
"errors": [{ "message": "Total is required" }]
}
Fields extracted from a customs declaration
Examples:
{
"movementReferenceNumber": "22GB12345678901234",
"movementReferenceNumberBarcode": "22GB12345678901234",
"issuingDate": "2024-03-15",
"customsOffice": "GB123456",
"declarationType": { "part1": "EX", "part2": "A", "part3": "" },
"forms": [{ "part1": 1, "part2": 3 }],
"securityDeclaration": "S",
"items": 5,
"totalPackages": 10,
"referenceNumber": [
{ "referenceNumber": "REF-2024-001" },
{ "referenceNumber": "REF-2024-002" }
],
"transportChargesMethodOfPaymentCode": "PP",
"consignor": {
"name": "UK Exports Ltd",
"address": "123 Business Park, London, UK EC2A 4PB",
"eoriNumber": "GB123456789012"
},
"consignee": {
"name": "US Imports Inc",
"address": "456 Trade Street, New York, NY 10001",
"eoriNumber": "US987654321098"
},
"declarant": [
{
"name": "John Smith",
"address": "789 Customs House, London, UK EC3A 1AA",
"eoriNumber": "GB123456789013"
}
],
"exportCountryCode": "GB",
"destinationCountryCode": "US",
"countriesOfRoutingCodes": "GB, US",
"identityOfMeansOfTransportAtDeparture": "TRUCK123",
"nationalityOfMeansOfTransportAtDeparture": "GB",
"container": "1",
"identityOfMeansOfTransportAtBorder": "TRUCK123",
"nationalityOfMeansOfTransportAtBorder": "GB",
"currency": "EUR",
"total": 15000,
"exchangeRate": 1.085,
"modeOfTransportAtBorder": "road",
"internalModeOfTransport": "road",
"customsOfficeOfExit": "GB123456",
"locationOfGoods": "London Port Terminal",
"grossWeightInKg": 500,
"sealNumber": "SEAL123456",
"controlByOfficeOfDispatch": {
"result": "Cleared",
"sealsAffixed": true,
"sealsIdentity": "SEAL123456",
"timeLimit": "2 hours"
}
}
An array of validation errors that occurred while processing the document. These typically do not prevent field extraction, but rather indicate issues extracting key fields.