M.O.A. - Declaración
Consulta las Denuncias de una Declaracion Detallada
M.O.A. - Declaración
Solicitud
import com.afipsdk.AfipWebService;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.ArrayList;
// Creamos una instancia del web service
AfipWebService genericWebService = afip.webService("wconsdeclaracion");
// Aqui deben cambiar los datos por los que correspondan.
// Esta request de ejemplo incluye todos posibles
// valores para llamar al metodo ConsultarDenunciasDetallada, puede que algun
// valor sea opcional.
Map<String, Object> data = new LinkedHashMap<>();
Map<String, Object> argWSAutenticacionEmpresa = new LinkedHashMap<>();
data.put("argWSAutenticacionEmpresa", argWSAutenticacionEmpresa);
argWSAutenticacionEmpresa.put("Token", "string");
argWSAutenticacionEmpresa.put("Sign", "string");
argWSAutenticacionEmpresa.put("CuitEmpresaConectada", 1);
argWSAutenticacionEmpresa.put("TipoAgente", "string");
argWSAutenticacionEmpresa.put("Rol", "string");
Map<String, Object> inputDenunciaDetallada = new LinkedHashMap<>();
data.put("inputDenunciaDetallada", inputDenunciaDetallada);
inputDenunciaDetallada.put("CuitImportadorExportador", "string");
inputDenunciaDetallada.put("CuitDespachante", "string");
inputDenunciaDetallada.put("IdentificadorDeclaracion", "string");
inputDenunciaDetallada.put("FechaDenunciaDesde", "YYYY-MM-DDThh:mm:ss");
inputDenunciaDetallada.put("FechaDenunciaHasta", "YYYY-MM-DDThh:mm:ss");
inputDenunciaDetallada.put("NumeroExpediente", "string");
inputDenunciaDetallada.put("Subregimen", "string");
inputDenunciaDetallada.put("CodigoAduana", "string");
inputDenunciaDetallada.put("CodigoMotivo", "string");
try {
// Realizamos la llamada al metodo del web service
Map<String, Object> response = genericWebService.executeRequest("ConsultarDenunciasDetallada", data);
// Mostramos la respuesta por consola
Gson gson = new GsonBuilder().setPrettyPrinting().create();
System.out.println(gson.toJson(response));
} catch (Exception ex) {
// En caso de error lo mostramos por consola
System.err.println(ex.getMessage());
}Respuesta
{
"ConsultarDenunciasDetalladaResult": {
"Server": "string",
"TimeStamp": "datetime",
"Resultado": {
"DenunciaDetallada": [
{
"Declaracion": "string",
"FechaOficializacion": "datetime",
"NumeroDenuncia": "string",
"FechaDenuncia": "datetime",
"NumeroExpediente": "string",
"UbicacionExpediente": "string",
"Fallo": "string",
"MontoAbonado": "decimal",
"OcasionaPerjuicioFiscal": "string",
"NumeroOMESefia": "string",
"ObservacionesDenuncia": "string",
"ListaMotivosDenuncia": {
"MotivoDenunciaDetallada": [
{
"MotivoDenuncia": "string",
"ObservacionesMotivoDenuncia": "string"
}
]
},
"MotivosAgrupados": "string"
}
]
},
"Errores": {
"ErrorEjecucion": [
{
"Codigo": "string",
"Descripcion": "string"
}
]
}
}
}