Skip to main content
Example on Intermediate Return

An example of an Intermediate Return Element in use

Ossi Galkin avatar
Written by Ossi Galkin
Updated over 8 months ago

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.

Did this answer your question?