Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## URL PRINCIPAL:
- https://www.sii.cl/normativa_legislacion/jurisprudencia_administrativa/ley_impuesto_renta/2024/ley_impuesto_renta_jadm2024.htm
- ## RESPUESTA:
- <script>
- $.ajax({
- type: 'POST',
- contentType: "application/json",
- dataType: 'json',
- url: 'https://www3.sii.cl/getPublicacionesCTByMateria',
- data: '{"key":"RENTA","year":"2024"}',
- success: function(response) {
- var respuesta = "<table id='dt_listado' class='display' style='width:100%;'><thead><tr><th></th></tr></thead><tbody>";
- $.each(response, function(i,item){
- urlAux = "abreDoctoJurAdm('"+response[i].pubNumOficio+"-"+response[i].pubFechaPubli+".pdf', '"+response[i].extensionArchPublica+"', 'download', '"+response[i].idBlobArchPublica+"', '"+response[i].mTypeArchPublica+"')";
- respuesta += "<tr><td><h5 style='margin-bottom:3px;'><a href=\"javascript:"+urlAux+"\">"+response[i].pubLegal+" - ("+response[i].tipoArchPublica+" "+response[i].pubNumOficio+", de "+response[i].pubFechaPubli+")</a></h5><p style='margin-top:0px;margin-bottom:5px;text-align:justify;'>"+response[i].pubResumen+"</p><p style='margin-top:0px;margin-bottom:20px;font-size:12px;text-align:justify;'></p></td></tr>";
- })
- document.getElementById('contenido').innerHTML += respuesta + "</tbody></table>";
- },
- error: function(XMLHttpRequest, textStatus, errorThrown) {
- alert("En estos momentos no podemos mostrar la información, por favor intente más tarde.");
- }
- });
- </script>
- ## URL:
- https://www.sii.cl/normativa_legislacion/js/funciones_jurisprudencia.js
- ## RESPUESTA:
- function abreDoctoJurAdm(a, b, c, d, e){
- document.frm.action = "https://www4.sii.cl/gabineteAdmInternet/descargaArchivo";
- document.frm.nombreDocumento.value=a;
- document.frm.extension.value=b;
- document.frm.acc.value=c;
- document.frm.id.value=d;
- document.frm.mediaType.value=e;
- document.frm.submit();
- }
- ## URL:
- https://www3.sii.cl/getPublicacionesCTByMateria
- ## RESPUESTA:
- [{ "pubKey": "2553",
- "soliKey": "292805",
- "pubNumOficio": "1945",
- "pubResumen": "Determinación de las utilidades susceptibles de acogerse al impuesto sustitutivo de los artículos 10 y 11 de la Ley N° 21.681.",
- "pubLegal": "Renta – Ley sobre Impuesto a la – Ley N° 21.681 – Art. 10, Art. 11 – Circular N° 34 de 2024\n",
- "idBlobArchPublica": "3f08aea4-8988-4e24-9e2d-fa6e93ba3f8b",
- "nombreArchPublica": "1945-10_10_2024.pdf",
- "extensionArchPublica": "pdf",
- "mTypeArchPublica": "application/pdf",
- "tipoArchPublica": "Oficio Ordinario",
- "nombreFictArchPublica": "1945-10_10_2024.pdf",
- "pubFecha": "11/10/2024",
- "pubUpdate": null,
- "pubFechaPubli": "10/10/2024",
- "pubTipoImpuesto": "RENTA",
- "pubEstado": "SI",
- "pubYear": 2024
- },
- ## COMANDO cURL:
- curl 'https://www3.sii.cl/getPublicacionesCTByMateria' \
- -H 'Accept: application/json, text/javascript, */*; q=0.01' \
- -H 'Accept-Language: es-US,es-419;q=0.9,es;q=0.8' \
- -H 'Connection: keep-alive' \
- -H 'Content-Type: application/json' \
- -H 'Origin: https://www.sii.cl' \
- -H 'Referer: https://www.sii.cl/normativa_legislacion/jurisprudencia_administrativa/ley_impuesto_renta/2024/ley_impuesto_renta_jadm2024.htm' \
- -H 'Sec-Fetch-Dest: empty' \
- -H 'Sec-Fetch-Mode: cors' \
- -H 'Sec-Fetch-Site: same-site' \
- -H 'User-Agent: Mozilla/5.0' \
- -H 'sec-ch-ua: "Not-A.Brand";v="99", "Chromium";v="124"' \
- -H 'sec-ch-ua-mobile: ?1' \
- -H 'sec-ch-ua-platform: "Android"' \
- --data-raw '{"key":"RENTA","year":"2024"}' \
- --compressed
- ## CODIGOS JAVASCRIPT PARA EJECUTAR DIRECTAMENTE EN EL NAVEGADOR DESDE LA URL PRINCIPAL:
- javascript:
- abreDoctoJurAdm('1945-10/10/2024.pdf', 'pdf', 'download', '3f08aea4-8988-4e24-9e2d-fa6e93ba3f8b', 'application/pdf');
- javascript:
- document.frm.action = "https://www4.sii.cl/gabineteAdmInternet/descargaArchivo";
- document.frm.nombreDocumento.value='1945-10/10/2024.pdf';
- document.frm.extension.value='pdf';
- document.frm.acc.value='download';
- document.frm.id.value='3f08aea4-8988-4e24-9e2d-fa6e93ba3f8b';
- document.frm.mediaType.value='application/pdf';
- document.frm.submit();
- javascript:
- $.ajax({
- type: 'POST',
- contentType: "application/json",
- dataType: 'json',
- url: 'https://www3.sii.cl/getPublicacionesCTByMateria',
- data: '{"key":"RENTA","year":"2024"}',
- success: function(response) {
- document.body.textContent = '';
- $.each(response, function(i, item) {
- document.body.style.cssText = "white-space: pre-wrap; margin: 20px; font-size: 16px";
- document.body.textContent += item.pubLegal + "\n" + item.pubResumen + "\n\n";
- document.body.textContent += "https://www4.sii.cl/gabineteAdmInternet/descargaArchivo?nombreDocumento=" + item.pubNumOficio + "-" + item.pubFechaPubli + ".pdf&extension=" + item.extensionArchPublica + "&acc=download&id=" + item.idBlobArchPublica + "&mediaType=" + item.mTypeArchPublica + "\n\n\n---\n\n\n";
- });
- },
- error: function(XMLHttpRequest, textStatus, errorThrown) {
- alert("En estos momentos no podemos mostrar la información, por favor intente más tarde.");
- }
- });
- ##
- https://www4.sii.cl/gabineteAdmInternet/descargaArchivo?nombreDocumento=1945-10/10/2024.pdf&extension=pdf&acc=download&id=3f08aea4-8988-4e24-9e2d-fa6e93ba3f8b&mediaType=application/pdf
Add Comment
Please, Sign In to add comment