Inserir endereço
Insere um endereço no Sankhya ERP através da API de serviços

Campo
Tipo
Descrição
{ "serviceName":"CRUDServiceProvider.saveRecord",
"requestBody":{
"dataSet":{
"rootEntity":"Endereco",
"includePresentationFields":"N",
"dataRow":{
"localFields":{
"NOMEEND":{
"$":"OSVALDO CRUZ"
},
"TIPO":{
"$":"AVENIDA"
}
}
}, "entity":{
"fieldset":{
"list":"CODEND,NOMEEND,TIPO,CODLOGRADOURO"
}
}
}
}
}
Retorno em json:
{
"serviceName": "CRUDServiceProvider.saveRecord",
"status": "1",
"pendingPrinting": "false",
"transactionId": "47344F9EF84802BF3C37073E349C771F",
"responseBody": {
"entities": {
"total": "1",
"entity": {
"NOMEEND": {
"$": "OSVALDO CRUZ"
},
"TIPO": {
"$": "AVENIDA"
},
"CODLOGRADOURO": {},
"CODEND": {
"$": "450"
}
}
}
}
}
Responses
201
Cadastro efetuado com sucesso
400
Requisição inválida
500
Erro interno do servidor
post
/EnderecoNo content
Last updated
Was this helpful?