M.O.A. - Declaración
Liquidaciones de una destinacion determinada.
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 DetalladaLiquidacionesBoletas, 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> argDetalladaLiqBoletas = new LinkedHashMap<>();
data.put("argDetalladaLiqBoletas", argDetalladaLiqBoletas);
argDetalladaLiqBoletas.put("IdentificadorDestinacion", "string");
argDetalladaLiqBoletas.put("IdentificadorLiquidacion", "string");
try {
// Realizamos la llamada al metodo del web service
Map<String, Object> response = genericWebService.executeRequest("DetalladaLiquidacionesBoletas", 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
{
"DetalladaLiquidacionesBoletasResult": {
"ListaErrores": {
"DetalleError": [
{
"Codigo": "integer",
"Descripcion": "string",
"DescripcionDetallada": "string",
"TextoAclaratorio": "string",
"DescripcionAdicional": "string",
"Parametros": {
"string": [
"string"
]
}
}
]
},
"Server": "string",
"TimeStamp": "datetime",
"LiquidacionBoletas": {
"Boletas": [
{
"IdentificadorBoletaDeposito": "string",
"MontoPagado": "string",
"CodigoMoneda": "string"
}
]
}
}
}