Guest User

chileIT_reddit.txt

a guest
Oct 19th, 2024
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.63 KB | None | 0 0
  1. ## URL PRINCIPAL:
  2. https://www.sii.cl/normativa_legislacion/jurisprudencia_administrativa/ley_impuesto_renta/2024/ley_impuesto_renta_jadm2024.htm
  3.  
  4. ## RESPUESTA:
  5. <script>
  6. $.ajax({
  7. type: 'POST',
  8. contentType: "application/json",
  9. dataType: 'json',
  10. url: 'https://www3.sii.cl/getPublicacionesCTByMateria',
  11. data: '{"key":"RENTA","year":"2024"}',
  12. success: function(response) {
  13. var respuesta = "<table id='dt_listado' class='display' style='width:100%;'><thead><tr><th></th></tr></thead><tbody>";
  14. $.each(response, function(i,item){
  15. urlAux = "abreDoctoJurAdm('"+response[i].pubNumOficio+"-"+response[i].pubFechaPubli+".pdf', '"+response[i].extensionArchPublica+"', 'download', '"+response[i].idBlobArchPublica+"', '"+response[i].mTypeArchPublica+"')";
  16. 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>";
  17. })
  18. document.getElementById('contenido').innerHTML += respuesta + "</tbody></table>";
  19. },
  20. error: function(XMLHttpRequest, textStatus, errorThrown) {
  21. alert("En estos momentos no podemos mostrar la información, por favor intente más tarde.");
  22. }
  23. });
  24. </script>
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32. ## URL:
  33. https://www.sii.cl/normativa_legislacion/js/funciones_jurisprudencia.js
  34.  
  35. ## RESPUESTA:
  36. function abreDoctoJurAdm(a, b, c, d, e){
  37. document.frm.action = "https://www4.sii.cl/gabineteAdmInternet/descargaArchivo";
  38. document.frm.nombreDocumento.value=a;
  39. document.frm.extension.value=b;
  40. document.frm.acc.value=c;
  41. document.frm.id.value=d;
  42. document.frm.mediaType.value=e;
  43. document.frm.submit();
  44. }
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55. ## URL:
  56. https://www3.sii.cl/getPublicacionesCTByMateria
  57.  
  58. ## RESPUESTA:
  59. [{ "pubKey": "2553",
  60. "soliKey": "292805",
  61. "pubNumOficio": "1945",
  62. "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.",
  63. "pubLegal": "Renta – Ley sobre Impuesto a la – Ley N° 21.681 – Art. 10, Art. 11 – Circular N° 34 de 2024\n",
  64. "idBlobArchPublica": "3f08aea4-8988-4e24-9e2d-fa6e93ba3f8b",
  65. "nombreArchPublica": "1945-10_10_2024.pdf",
  66. "extensionArchPublica": "pdf",
  67. "mTypeArchPublica": "application/pdf",
  68. "tipoArchPublica": "Oficio Ordinario",
  69. "nombreFictArchPublica": "1945-10_10_2024.pdf",
  70. "pubFecha": "11/10/2024",
  71. "pubUpdate": null,
  72. "pubFechaPubli": "10/10/2024",
  73. "pubTipoImpuesto": "RENTA",
  74. "pubEstado": "SI",
  75. "pubYear": 2024
  76. },
  77.  
  78.  
  79. ## COMANDO cURL:
  80. curl 'https://www3.sii.cl/getPublicacionesCTByMateria' \
  81. -H 'Accept: application/json, text/javascript, */*; q=0.01' \
  82. -H 'Accept-Language: es-US,es-419;q=0.9,es;q=0.8' \
  83. -H 'Connection: keep-alive' \
  84. -H 'Content-Type: application/json' \
  85. -H 'Origin: https://www.sii.cl' \
  86. -H 'Referer: https://www.sii.cl/normativa_legislacion/jurisprudencia_administrativa/ley_impuesto_renta/2024/ley_impuesto_renta_jadm2024.htm' \
  87. -H 'Sec-Fetch-Dest: empty' \
  88. -H 'Sec-Fetch-Mode: cors' \
  89. -H 'Sec-Fetch-Site: same-site' \
  90. -H 'User-Agent: Mozilla/5.0' \
  91. -H 'sec-ch-ua: "Not-A.Brand";v="99", "Chromium";v="124"' \
  92. -H 'sec-ch-ua-mobile: ?1' \
  93. -H 'sec-ch-ua-platform: "Android"' \
  94. --data-raw '{"key":"RENTA","year":"2024"}' \
  95. --compressed
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108. ## CODIGOS JAVASCRIPT PARA EJECUTAR DIRECTAMENTE EN EL NAVEGADOR DESDE LA URL PRINCIPAL:
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122. javascript:
  123. abreDoctoJurAdm('1945-10/10/2024.pdf', 'pdf', 'download', '3f08aea4-8988-4e24-9e2d-fa6e93ba3f8b', 'application/pdf');
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135. javascript:
  136. document.frm.action = "https://www4.sii.cl/gabineteAdmInternet/descargaArchivo";
  137. document.frm.nombreDocumento.value='1945-10/10/2024.pdf';
  138. document.frm.extension.value='pdf';
  139. document.frm.acc.value='download';
  140. document.frm.id.value='3f08aea4-8988-4e24-9e2d-fa6e93ba3f8b';
  141. document.frm.mediaType.value='application/pdf';
  142. document.frm.submit();
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152. javascript:
  153. $.ajax({
  154. type: 'POST',
  155. contentType: "application/json",
  156. dataType: 'json',
  157. url: 'https://www3.sii.cl/getPublicacionesCTByMateria',
  158. data: '{"key":"RENTA","year":"2024"}',
  159. success: function(response) {
  160. document.body.textContent = '';
  161. $.each(response, function(i, item) {
  162.  
  163. document.body.style.cssText = "white-space: pre-wrap; margin: 20px; font-size: 16px";
  164. document.body.textContent += item.pubLegal + "\n" + item.pubResumen + "\n\n";
  165. 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";
  166.  
  167. });
  168. },
  169. error: function(XMLHttpRequest, textStatus, errorThrown) {
  170. alert("En estos momentos no podemos mostrar la información, por favor intente más tarde.");
  171. }
  172. });
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185. ##
  186. 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
  187.  
  188.  
Add Comment
Please, Sign In to add comment