Consultar estoque
Consulte o estoque de produtos no Sankhya ERP através da API de serviços

Campo
Tipo
Descrição
"criteria": {
"expression": {
"$": "this.CODPROD = 54"
}
}
{
"serviceName": "CRUDServiceProvider.loadRecords",
"requestBody": {
"dataSet": {
"rootEntity": "Estoque",
"includePresentationFields": "S",
"offsetPage": "0",
"criteria": {
"expression": {
"$": "this.CODPROD = 54 AND this.CODLOCAL = 1100"
}
},
"entity": {
"fieldset": {
"list": "CODPROD,WMSBLOQUEADO,CODLOCAL"
}
}
}
}
}
Retorno em json:
{
"serviceName": "CRUDServiceProvider.loadRecords",
"status": "1",
"pendingPrinting": "false",
"transactionId": "C373171E3E6F607586E03A22E26F1AAC",
"responseBody": {
"entities": {
"total": "1",
"hasMoreResult": "false",
"offsetPage": "0",
"offset": "0",
"metadata": {
"fields": {
"field": [
{
"name": "CODPROD"
},
{
"name": "WMSBLOQUEADO"
},
{
"name": "CODLOCAL"
},
{
"name": "CODEMP"
},
{
"name": "CONTROLE"
},
{
"name": "CODPARC"
},
{
"name": "TIPO"
},
{
"name": "Produto_DESCRPROD"
},
{
"name": "LocalFinanceiro_DESCRLOCAL"
},
{
"name": "Empresa_NOMEFANTASIA"
},
{
"name": "Parceiro_NOMEPARC"
}
]
}
},
"entity": {
"f6": {
"$": "P"
},
"f7": {
"$": "KIT 1 (WESLEY)"
},
"f8": {
"$": "Corredor A"
},
"f9": {
"$": "EMPRESA MODELO"
},
"f10": {
"$": "<SEM PARCEIRO>"
},
"_rmd": {
"CODPROD": {
"$": "{\"decVlr\":2,\"decQtd\":0,\"controle\":{\"tipoContEst\":\"N\",\"listaContEst\":[\"\"]}}",
"provider": "PRODUTORMP"
}
},
"f0": {
"$": "54"
},
"f1": {
"$": "0"
},
"f2": {
"$": "1100"
},
"f3": {
"$": "2"
},
"f4": {},
"f5": {
"$": "0"
}
}
}
}
}
Responses
201
Consulta efetuada com sucesso
400
Requisição inválida
500
Erro interno do servidor
get
/EstoqueNo content
Last updated
Was this helpful?