Intermediate Return example
Below is a Frends API Process where the API operation POST /api/invoice/v1/finvoice_to_html receives a Finvoice XML from the API client. The API Process first validates the Finvoice XML and executes Intermediate Return as soon as the received Finvoice XML has found to be valid. The Intermediate Return is marked with light yellow color. After intermediate return, Frends will continue processing the received Finvoice XML.
Intermediate Return is very useful in this kind of use cases, where the API or HTTP request and data received can be quickly validated before later time consuming processing. When we use the Intermediate Return, the caller does not need to wait the whole processing to finish.
The same processing result can be achieved without using the Intermediate Return. Use of Intermediate return just shortens the time the caller needs to wait for the response.
The next article is Example on Intermediate Return Settings