//Синхронное выполнение
{
"taskType":"ShGetReceivingReports",
"params":{
"async": {
"objectId": "string",
"timeout": number
},
"sync": {
"objectId": "string",
"timeout": number
},
"startDate": "YYYY-MM-DD",
"endDate": "YYYY-MM-DD"
}
}
// Асинхронное выполнение
{
"taskType":"ShGetReceivingReports",
"params":{
"async": {
"objectId": "string",
"timeout": number
},
"async": {
"objectId": "string",
"timeout": number
},
"startDate": "YYYY-MM-DD",
"endDate": "YYYY-MM-DD"
}
}
//Формат ответа на асинхронный запрос
{
"responseCommon":{
"taskGuid":"guid",
"taskType":"ShGetReceivingReports",
"objectId":number
}
}
//Формат ответа на синхронный запрос или на ответ по задаче в случае асинхронного запроса
{
"taskResponse": {
"reports": [
{
"date": "YYYY-MM-DD",
"corr": "rid",
"store": "rid",
"active": "0,1",
"items": [
{
"rid": "rid",
"quantity": "number",
"mu": "rid",
"sum": "number",
"vatSum": "number",
"vatrate": "number"
}
]
}
]
},
"responseCommon": {
"taskGuid": "string",
"taskType": "ShGetReceivingReports",
"objectId": "number"
}
}
//Ошибка от сервера
{
"responseCommon": {
"taskGuid": "string",
"taskType": "ShGetReceivingReports",
"objectId": "number"
},
"error": {
"wsError": {
"code": "string",
"desc": "string"
}
}
}
//Ошибка от агента
{
"responseCommon": {
"taskGuid": "string",
"taskType": "ShGetReceivingReports",
"objectId": "number"
},
"error": {
"agentError": {
"code": "string",
"desc": "string"
}
}
}