Stock recalculation¶
Warehouse recalculation checks and recalculates stock levels and prices for the selected accounting period. It can be triggered via REST API in the same way as in the application. Source: podpora.flexibee.eu.
Calling the service¶
The service is available via PUT and POST at:
/c/{company}/sklad/prepocet
Supported output formats are XML and JSON.
Parameters¶
Parameter |
Description |
|---|---|
|
Required. Identifies the period for which you want to
recalculate the warehouse. Specified as an identifier in the form
|
|
Optional. Used to determine whether the recalculation has been
completed. If so, returns HTTP status |
Result¶
To determine whether the service was executed successfully, check either
the HTTP status of the response or the success property in the returned
document.
On success, HTTP status 200 is returned with a standard response
document:
{"winstrom": {"@version": "1.0", "success": "true"}}
On failure, status 4xx or 5xx is returned along with a message
explaining the reason.
Sample calls¶
PUT /c/{company}/sklad/prepocet.xml?ucetniObdobi=code:2024
PUT /c/{company}/sklad/prepocet.json?ucetniObdobi=code:2024
PUT /c/{company}/sklad/prepocet?ucetniObdobi=code:2024
For the last call without an extension, the format is determined by the
Accept: application/xml or Accept: application/json header.