Reference Guide - Data validation

From SRP API Docs

<protect>

Data validation

When inserting or updating items API validates request for:

  • Invalid format parameters
  • Out of range parameters
  • Parameter business rules
  • Parameter set business rules

If any invalid parameters are detected response will contain additional errors element:

  <status code="4">Invalid data</status>
  <errors>
    <error property="PropertyName" code="ErrorCode">ErrorMessage</error>
  </errors>

TODO: because request XML file will have nested properties it will not be that straight forward to specify property in error. Solution will have to be found </protect>