ShExecuteProcedure
Purpose | Perform the Store House procedure from the list of allowed ones |
---|---|
Request type | Asynchronous/synchronous |
Supported agent version | v2 |
PluggetSystemType | StoreHouse |
ReplGoodsCategories ReplGGroups ReplGGroupsGuid ReplGoods ReplGoodsGuid ReplCmpGroups ReplCmpGroupsGuid ReplCmp ReplCmpBaseGuid ReplCorrs RplDivisions ReplSUnits ReplSUnitsGuid ReplODocs ReplODocsPrepare EActs EAct ModEAct UpdEDoc InsEReply EGoodsByEMark EGoodsByEMarkList CntrSpecsByExtCode EGoodsPrices EGoods GRemns RptSale ODocs ODoc ModODoc DelODoc GDoc13 InsGDoc13 DelGDoc13 GDoc12 GDoc12Exp GDoc12ExpEx InsGDoc12 DelGDoc12 GDoc8 GDoc8Diffs InsGDoc8 DelGDoc8 GDoc1 InsGDoc1 DelGDoc1 GDoc5 InsGDoc5 DelGDoc5 GDoc10 InsGDoc10 DelGDoc10 GDoc11 InsGDoc11 DelGDoc11 GDoc4 InsGDoc4 DelGDoc4 GDoc0 InsGDoc0 DelGDoc0 GDocs ActivateGDoc Countries ModCountries Regions ModRegions CDecls ModCDecls Taxes1 ModTaxes1 Taxes2 ModTaxes2 Goods GoodsPCost GoodsPCostEx GoodsMUnits GoodsItem InsGood DelGood GGroups GGroupsTree GGroup InsGGroup UpdGGroup DelGGroup GoodsCategories ModGoodsCategories BGoodsCategories ModBGoodsCategories MGroups MGroup InsMGroup UpdMGroup DelMGroup MUnits MUnit InsMUnit UpdMUnit DelMUnit Corrs InsCorr UpdCorr DelCorr CntrSpecs CntrSpec LEntities ModLEntities Divisions ModDivisions Departs Depart InsDepart UpdDepart DelDepart Currencies ModCurrencies
Request format
JSON
|
Parameter | Type | Mandatory | Description |
---|---|---|---|
taskType | string | yes | Task type |
-async | Asynchronous method call: either synchronous or asynchronous | ||
-sync | Synchronous method call: either synchronous or asynchronous | ||
--timeout | int | no | Agent response time in seconds. Default is 120 seconds |
--objectId | int | yes | Restaurant code in the licensing system |
query | object | yes | A JSON object in the format of requests to Store House. Contains the name of a Store House command. The command name is verified against a whitelist of allowed commands on the agent side. If everything is correct, it is then passed for execution to Store House. |
Response format
JSON
|
Parameter | Type | Description |
---|---|---|
-taskGuid | guid | Unique code for this task. Used when receiving a task via the queue |
-taskType | string enum | Task type |
-objectId | int | Restaurant code in the licensing system |
error | Error container, for more details see the article Error Description |
Asynchronous response format
JSON
|
Parameter | Parameter type | Description |
---|---|---|
taskResponse | object | Json object serialized from the result of processing the command by the plugin |
error | Error container, for more details see the article Error Description |
Examples
Example of a request to call the GoodsList procedure:
JSON
|
Example of an asynchronous response to a call to the GoodsList procedure:
JSON
|