Skip to main content

Required Import Fields

Required Attributes in REST API

Written by Lenka Haringerová

When exporting XML from the system, many fields are exported. However, many of them are read-only (e.g., the current average stock price) and therefore cannot be modified. At the same time, it is not necessary to specify many values, as they are either set to their defaults or are derived from the document type.

When creating XML, follow these rules:

  • as a general rule, you only need to fill in the fields that you would be required to enter in the application when manually creating a record.

  • however, some fields do need to be specified, because the application will suggest a default value, but in imports they must be explicitly provided.

  • the document type ( <typDokl/> ) is almost always a required field. It determines what type the given document is (e.g., invoice, advance payment, etc.).

  • you only need to provide the value within the tag (without attributes). The attributes ref and showAs are ignored and are included in the export only for easier visualization for the user.

  • when integrating with another system, you need to provide identifiers. These can be of various types (code:, ext:, ean:, …)

  • depending on the document type, you may find that a particular attribute is required in some cases but not in others.

Did this answer your question?