Data validation is performed when saving data. Errors can be of three types:
error: the record cannot be saved due to this error and the operation was canceled
warning: an issue occurred while saving, but the record was saved.
information: additional information for the user. The record was saved.
Example of an error during saving
<?xml version="1.0"?><winstrom version="1.0"> <success>true</success> <result> <id>105</id> <warnings> <warning for="radekDph">Záznam nemá vyplněn řádek DPH a proto nebude doklad zaúčtován.</warning> </warnings> <infos> <info> Došlo k automatickému výběru výrobního čísla.</info> </infos> </result> <result> <id>103</id> </result></winstrom>
If the application encounters an error, processing is stopped immediately. For warnings and information, the entire import is completed and all error states are then returned. If you want data not to be saved even in the case of a warning, add the parameter: “?fail-on-warning=true” to the URL.
ℹ️ If you want to validate a record without saving it (a so-called dry-run), add the parameter ?dry-run=true to the URL.
