Consultar pedidos
Consulte pedidos cadastrados no Sankhya ERP através da API de serviços
Campo
Tipo
Descrição
• DTNEG – Data da negociação.
"criteria": {
"expression": {
"$": "(this.DTNEG = ? )"
},
"parameter": {
"$": "28/10/2016",
"type": "D"
}
}
{
"serviceName": "CRUDServiceProvider.loadRecords",
"requestBody": {
"dataSet": {
"rootEntity": "CabecalhoNota",
"includePresentationFields": "S",
"offsetPage": "0",
"criteria": {
"expression": {
"$": "(this.DTNEG = ? )"
},
"parameter": {
"$": "28/10/2016",
"type": "D"
}
},
"entity": {
"fieldset": {
"list": "NUNOTA,CODEMP,CODPARC,DTNEG"
}
}
}
}
}
Retorno em json:
{
"serviceName": "CRUDServiceProvider.loadRecords",
"status": "1",
"pendingPrinting": "false",
"transactionId": "AD583F694F1AC8CD86D328EE246B7A1B",
"responseBody": {
"entities": {
"total": "12",
"hasMoreResult": "false",
"offsetPage": "0",
"offset": "0",
"metadata": {
"fields": {
"field": [
{
"name": "NUNOTA"
},
{
"name": "CODEMP"
},
{
"name": "CODPARC"
},
{
"name": "DTNEG"
},
{
"name": "Empresa_NOMEFANTASIA"
},
{
"name": "Parceiro_NOMEPARC"
}
]
}
},
"entity": [
{
"f0": {
"$": "5996"
},
"f1": {
"$": "2"
},
"f2": {
"$": "3"
},
"f3": {
"$": "28/10/2016"
},
"f4": {
"$": "EMPRESA MODELO"
},
"f5": {
"$": "BRASIL TECIDOS"
}
},
{
"f0": {
"$": "5998"
},
"f1": {
"$": "2"
},
"f2": {
"$": "3"
},
"f3": {
"$": "28/10/2016"
},
"f4": {
"$": "EMPRESA MODELO"
},
"f5": {
"$": "BRASIL TECIDOS"
}
}
]
}
}
}
Responses
201
Consulta efetuada com sucesso
400
Requisição inválida
500
Erro interno do servidor
get
/PedidosNo content
Last updated
Was this helpful?