White Server White Server White Server API White Server API v2 Description of Methods Current: ShGetGoods ShGetGoods PurposeGetting a list of itemsRequest typeAsynchronous/synchronousSupported agent version, shv1 для Store House 4 b Store House 5, v2 для Store House 5PluggetSystemTypeStoreHouseRequest formatJSON{ "taskType": "ShGetGoods", "params": { "async": { "objectId": number, "timeout": number }, "sync": { "objectId": number, "timeout": number }, "goodGroupRid": number }}ParameterTypeMandatoryDescriptiontaskTypestringyesTask type-asyncAsynchronous method call: either synchronous or asynchronous-syncSynchronous method call: either synchronous or asynchronous--timeoutintnoAgent response time in seconds. Default is 120 seconds--objectIdintyesRestaurant code in the licensing system-goodGroupRidrid of the items group from which the items need to be removedResponse formatJSON{ "responseCommon":{ "taskGuid": "guid", "taskType": "ShGetGoods", "objectId": number }, "error":{ "wsError":{ "code": "string", "desc": "string" } }}ParameterTypeDescription-taskGuidguidUnique code for this task. Used when receiving a task via the queue-taskTypestring enumTask type-objectIdintRestaurant code in the licensing systemerrorError container, for more details see the article Error DescriptionAsynchronous response formatSuccessful responseJSON{ "taskResponse":{ "items":[ { "mUnits":[ { "rid":"number", "name":"string", "isBase":"number", "barCodes":[ { "val":"string" } ] } ], "rid":"number", "name":"string" } ] }, "responseCommon":{ "taskGuid":"string", "taskType":"ShGetGoods", "objectId":"number" }}ParameterParameter typeDescriptionParameterParameter typeDescription-itemsarray--ridintrid of the item--namestringName of the item--mUnitsarray---ridintrid of the unit---namestringName of the unit---isBaseintIf the unit of measurement is the base unit for the item (if 1, then yes)---barCodesarrayIn StoreHouse 5 it is not returned ----valstringBarcode for the item in this unit of measurementerrorstring enumError container, for more details see the article Error DescriptionResponse with errorJSON{ "responseCommon": { "taskGuid": "string", "taskType": "ShGetGoods", "objectId": number }, "error": { "wsError": { "code": "string", "desc": "string" }, "agentError": { "code": "string", "desc": "string" } }}ParameterTypeDescription-taskGuidguidUnique code for this task. Used when receiving a task via the queue-taskTypestring enumTask type-objectIdintRestaurant code in the licensing systemerrorError container, for more details see the article Error Description ×