If the generation of issue requests is enabled in the company settings, you can use the REST API to call the Update Inventory Issue Requests service.
Not sure what an issue request is? Check out the article Updating Issue Requests.
Calling method
The service is available via methods PUT and POST at /c/{firma}/sklad/aktualizace-pozadavku, where {firma} is the database company identifier. The supported output formats are XML and JSON.
Parameters
The service has no required parameters. Optionally, you can use the dry-run parameter to check whether the recalculation has finished. If it has, the HTTP status 200 is returned. If not, the HTTP status 409 is returned, along with information about when and by whom the recalculation was started.
Result
To determine whether the service was executed successfully, you can check the HTTP status of the response or the success property in the returned document.
Successful call
If the service is executed successfully, the HTTP status 200 is returned, along with a document in the requested format:
<?xml version="1.0"?>
<winstrom version="1.0">
<success>true</success>
</winstrom>
{
"winstrom": {
"@version": "1.0",
"success": "true"
}
}
Unsuccessful call
The HTTP status of the response is 4xx or 5xx. For example, if the company does not have the generation of issue requests enabled, you will receive this document:
<?xml version="1.0"?>
<winstrom version="1.0">
<success>false</success>
<message>Není povoleno generování požadavků na výdej.</message>
</winstrom>
{
"winstrom": {
"@version": "1.0",
"success": "false",
"message": "Není povoleno generování požadavků na výdej."
}
}
Call examples
PUT https://demo.flexibee.eu/c/demo/sklad/aktualizace-pozadavku.xml
PUT https://demo.flexibee.eu/c/demo/sklad/aktualizace-pozadavku.json
POST https://demo.flexibee.eu/c/demo/sklad/aktualizace-pozadavku.xml
POST https://demo.flexibee.eu/c/demo/sklad/aktualizace-pozadavku.json
You can also call it without a file extension — PUT https://demo.flexibee.eu/c/demo/sklad/aktualizace-pozadavku — in which case the format is determined by the Accept: application/xml header, or possibly Accept: application/json.
