To avoid that the quite heavy requests to the insertCashPointClosing endpoint run into a timeout, the fields validation is done in a separate process.
Because of this the retrieveCashPointClosing endpoint should be called to check if the cash point closing could be processed correctly after some time.
In case of an incorrect body schema, the response to an insertCashPointClosing request will return the HTTP status code 200
OK
first.
However, after validating the schema, the status of the cash closure will change to ERROR
instead of COMPLETED
. This status can be retrieved via the retrieveCashPointClosing endpoint.
The "error"
object in the response should contain a more detailed error description.