Add country-specific identifiers to extended object of invoice & receipt extract endpoints

When you call the invoice or receipt extraction endpoints with ?extended=true, the response’s extended object will now also include additional country-specific identifiers found in the document. In addition to dates, emails and currencies, you’ll see:

Which country each identifier belongs to (via corporateIdentityNumbersByCountry and vatNumbersByCountry),

All extracted VAT numbers and corporate Identity Numbers organised by ISO country code,

And a single countryOfOrigin property indicating where the document most likely comes from.

Example JSON

"extended": {
"vatNumbersByCountry": {
"SE": [
"SE556600778601",
"SE559108741501"
],
"NL": [
"NL001234567B01"
]
},
"corporateIdentityNumbersByCountry": {
"SE": [
"5566007786",
"5020765649"
],
"NL": [
"12345678"
]
},
"countryOfOrigin": "SE",
…
}

Affected resources:

GET .../companies/{companyID}/files/{fileID}/supplierInvoices

GET ...{api}/{version}/companies/{companyID}/files/{fileID}/receipts