Specification
All exports using Universal Accounting consist of the following fields / data. Please reference the individual formats to get an example of a specific export structure.
General
Section titled “General”konteraIdRequiredtype: string
Id of a business transaction. It is possible, to link back to kontera via this ID, just use https://app.kontera.ch/invoices/:konteraId
- Type:
string
Invoice
Section titled “Invoice”Information about the receipt / invoice are summed up in the invoice object. This is an optional field and might be null.
invoiceOptionaltype: object
invoiceOptionaltype: object
numberOptionaltype: string
- CSV-Header:
invoice-number
dateOptionaltype: string
- CSV-Header:
invoice-date - Date in ISO-format
YYYY-MM-DD
payableUntilOptionaltype: string
- CSV-Header:
invoice-payableUntil - Date in ISO-format
YYYY-MM-DD
billingPeriodOptionaltype: object
billingPeriodOptionaltype: object
fromRequiredtype: string
- CSV-Header:
invoice-billingPeriod_from - Date in ISO-format
YYYY-MM-DD
toRequiredtype: string
- CSV-Header:
invoice-billingPeriod_to - Date in ISO-format
YYYY-MM-DD
qrReferenceNumberOptionaltype: string
- CSV-Header:
invoice-qrReferenceNumber - 🇨🇭-only
- accounts-receivables only
ownerOptionaltype: string
- CSV-Header:
invoice-owner
sourceOptionaltype: string
- CSV-Header:
invoice-source
sourceIdOptionaltype: string
- CSV-Header:
invoice-sourceId
postingTypeRequiredtype: enum
The type of posting for this invoice.
- CSV-Header:
invoice-postingType - Allowed values:
accounts-payable(supplier invoice)accounts-receivable(customer invoice)direct-posting(direct booking)
Contact
Section titled “Contact”contactsRequiredtype: array
contactsRequiredtype: array
contactIdRequiredtype: string
Unique ID within kontera. You must provide this value together with an externalId generated by your system if you have added contacts into your system and are re-importing those contacts, to avoid duplication.
- UUID
- CSV-Header:
contact-contactId
externalIdOptionaltype: string
Internal ID of your project in your accounting system. kontera uses this ID to uniquely identify your project, and will reference it in the export.
- Min: 1 character
- Max: 36 characters
- CSV-Header:
contact-externalIdd
legalTypeRequiredtype: enum
Describes the type of legal entity the contacts represents.
- Allowed values:
companyperson
- CSV-Header:
contact-legalType
supplierTypeOptionaltype: enum
Describes what kind of contact it is. Used by certain accounting systems with split contact pools.
- Allowed values:
accounts-payableaccounts-receivable
- CSV-Header:
contact-supplierType
companyNameOptionaltype: string
Required if legalType = company
- Min: 1 character
- Max: 255 characters
- CSV-Header:
contact-companyName
companyUidOptionaltype: string
Company UID.
- Min: 1 character
- Max: 255 characters
- CSV-Header:
contact-companyUid
companyTaxNumberOptionaltype: string | null
VAT Number of your company. null if empty.
- Min: 1 character
- Max: 255 characters
- CSV-Header:
contact-companyTaxNumber
firstNameOptionaltype: string
Required if legalType = person
- Min: 1 character
- Max: 255 characters
- CSV-Header:
contact-firstName
lastNameOptionaltype: string
Required if legalType = person
- Min: 1 character
- Max: 255 characters
- CSV-Header:
contact-lastName
addressOptionaltype: object
addressOptionaltype: object
streetOptionaltype: string
Name of street.
- Min: 1 character
- Max: 255 characters
- CSV-Header:
contact-address
streetOptionaltype: string
Name of street.
- Min: 1 character
- Max: 255 characters
- CSV-Header:
contact-address-street
houseNumberOptionaltype: string
House number.
- Min: 1 character
- Max: 255 characters
- CSV-Header:
contact-address-houseNumber
postalCodeOptionaltype: string
Postal code / ZIP code.
- Min: 1 character
- Max: 255 characters
- CSV-Header:
contact-address-postalCode
cityOptionaltype: string
Name of city.
- Min: 1 character
- Max: 255 characters
- CSV-Header:
contact-address-city
countryOptionaltype: string
Country.
- 2-letter ISO3166 code
- CSV-Header:
contact-address-country
Employee
Section titled “Employee”Information about the employee who paid the receipt out of pocket. This object is only present when the receipt was paid by an employee (payment type expenses-employee), otherwise it is null. JSON export only.
employeeOptionaltype: object
employeeOptionaltype: object
employeeIdRequiredtype: string
Unique ID of the employee within kontera.
- UUID
firstNameRequiredtype: string
- Example:
Fernando
lastNameRequiredtype: string
- Example:
Alonso
emailRequiredtype: string
- Example:
fernando@example.com
mobileOptionaltype: string | null
Mobile phone number of the employee. null if empty.
- Example:
+41761234567
Payment Advises
Section titled “Payment Advises”paymentAdvisesRequiredtype: array
paymentAdvisesRequiredtype: array
accountRequiredtype: object
accountRequiredtype: object
numberRequiredtype: string
- Example:
2000/1020
externalIdOptionaltype: string
currencyOptionaltype: string
3-character ISO currency code.
- ISO 4217 currency code
- Example:
EUR
executionDateRequiredtype: string
- Date in ISO-format
YYYY-MM-DD
amountRequiredtype: string
- Example:
25.50
currencyRequiredtype: string
3-character ISO currency code.
- ISO 4217 currency code
- Example:
EUR
typeRequiredtype: enum
What kind of payment it is.
- Allowed values:
qr, swiss qr billiban, iban payment
ibanRequiredtype: string
IBAN of the recipient.
referenceOptionaltype: string
Reference number of the payment (SCOR).
feeOptionaltype: enum
Who pays the fee. May be null, in case of domestic payments.
- Allowed values:
receiver-payssender-payssplitted
messageOptionaltype: string
recipientRequiredtype: object
recipientRequiredtype: object
nameRequiredtype: string
- Example:
bexio ag
streetOptionaltype: string
- Example:
Debit-Credit-Street
houseNumberOptionaltype: string
- Example:
12
houseNumberOptionaltype: string
- Example:
12
postalCodeOptionaltype: string
- Example:
8000
cityOptionaltype: string
- Example:
Zurich
countryOptionaltype: string
Country.
- 2-letter ISO3166 code
Entries
Section titled “Entries”Journal entries are collected in the entries array.
entriesRequiredtype: array
entriesRequiredtype: array
entryIdRequiredtype: string
Unique identifier of a journal entry.
- CSV-Header:
entry-entryId - Example:
K-XYZ-1
entryNumberRequiredtype: number
Number of a journal entry within the transaction.
- CSV-Header:
entry-entryNumber - Example: 1
typeRequiredtype: enum
- CSV-Header:
entry-type - Allowed values
profit-loss-to-payment(direct)profit-loss-to-collective-account(to collective account)collective-account-to-payment(from collective account)fee-to-payment(fee)
dateRequiredtype: string
- CSV-Header:
entry-date - Date in ISO-format
YYYY-MM-DD
linesRequiredtype: array
linesRequiredtype: array
lineIdRequiredtype: string
The unique identifier of the journal entry line.
- CSV-Header:
entry-lineId - Example:
K-XYZ-C-1
lineNumberRequiredtype: number
The number of the journal entry line.
- CSV-Header:
entry-lineNumber - Example: 1
creditDebitOptionaltype: string
- Note: Not applicable for CSV. It is split in
debitAccount+creditAccount(seeaccountfor reference) - Allowed Values:
creditdebit
amountRequiredtype: string
- CSV-Header:
entry-amount - Example:
25.50
currencyRequiredtype: string
Matches the lead currency of your accounting system. 3-character ISO currency code.
- CSV-Header:
entry-currency - ISO 4217 currency code
- Example:
CHF
amountInAccountCurrencyOptionaltype: string
Depending on your accounting system, certain accounts might be in other currencies than your lead currency. If this is the case, and the currency used in the journal entry line (which matches the lead currency of your accounting system) does not match the account, this amount represents the value of the transaction in the currency of the chosen account.
- Note: Not applicable for CSV
- Example:
30.25
accountRequiredtype: object
accountRequiredtype: object
numberRequiredtype: string
- CSV-Header:
debitAccount-number / creditAccount-number - Example:
2000/1020
externalIdOptionaltype: string
- CSV-Header:
debitAccount-externalId / creditAccount-externalId
currencyOptionaltype: string
3-character ISO currency code.
- CSV-Header:
debitAccount-currency / creditAccount-currency - ISO 4217 currency code
- Example:
EUR
taxOptionaltype: object
taxOptionaltype: object
codeOptionaltype: string
- CSV-Header:
entry-tax-code - Example:
VB77
externalIdOptionaltype: string
- CSV-Header:
entry-tax-externalId - Example:
1 - Corresponds to
externalIdthat was given during import.
valueOptionaltype: string
Value of tax, given in % (0-100).
- CSV-Header:
entry-tax-value - Example:
7.7
typeOptionaltype: enum
- CSV-Header:
entry-tax-type - Allowed values:
unknownpre-taxpre-tax-original-productionreverse-charge-pre-taxsales-tax
originalAmountOptionaltype: string
The amount that was specified on the original invoice / receipt.
- CSV-Header:
entry-originalAmount - Example:
30.25
originalCurrencyOptionaltype: string
The currency that was specified on the original invoice / receipt. 3-character ISO currency code.
- CSV-Header:
entry-originalCurrency - ISO 4217 currency code
- Example:
EUR
textRequiredtype: string
- CSV-Header:
entry-text - Content can be configured via Settings -> Accounting system
dimensionsRequiredtype: array
dimensionsRequiredtype: array
nameRequiredtype: string
Name der Dimension.
- CSV-Header:
entry-dimensions-{number}-name
externalIdOptionaltype: string
-
Corresponds to
externalIdthat was given during import. -
CSV-Header:
entry-dimensions-{number}-externalId
typeRequiredtype: enum
- CSV-Header:
entry-dimensions-{number}-type - See Universal Accounting | Export | Entries | Dimensions for more information
filesOptionaltype: array
filesOptionaltype: array
konteraIdRequiredtype: string
nameRequiredtype: string
Name of the uploaded file.
- Example:
Swisscom.pdf
contentTypeRequiredtype: string
- Example:
application/pdf
contentAsBase64Optionaltype: string
Content of the file as base64 encoded string. This field is only present if file export is enabled in the configuration. If not present, use the konteraId to download the file via the public API endpoint GET /api/public/v1/documents/files/:konteraId/download.