


\section{Consulta Rangos Documento}
\subsection{Servicio}


\begin{tabular}{ | l | l |}
    \hline
    \textbf{URL} & http://[api\|apitest].softnet.cl/consultaRango \\ \hline
    \textbf{Método} & POST \\ \hline
\end{tabular}



\begin{tabular}{ | l | l | l |}
    \hline
    \textbf{Dato} & \textbf{Tipo} & \textbf{Validaciones} \\ \hline
    Rut & string & requerido \| rut \\ \hline
    periodo & numeric & requerido \| numerico \\ \hline
    mes & numeric & requerido \| numerico \\ \hline
\end{tabular}

\subsection{Ejemplo Envío}

\begin{Verbatim}[commandchars=\\\{\}]
[
    \PY{n+nb}{\PYZob{}}
        \PYZdq{}Rut\PYZdq{}: \PYZdq{}22222222\PYZhy{}2\PYZdq{},
        \PYZdq{}Periodo\PYZdq{}: \PYZdq{}2016\PYZdq{},
        \PYZdq{}Mes\PYZdq{}: \PYZdq{}11\PYZdq{},
    \PY{n+nb}{\PYZcb{}}
\end{Verbatim}


\subsection{Ejemplo Respuesta}

\begin{Verbatim}[commandchars=\\\{\}]
[
    \PY{n+nb}{\PYZob{}}
            \PYZdq{}fecha\PYZdq{}: \PYZdq{}2016-11-04\PYZdq{},
            \PYZdq{}tipo\PYZdq{}: \PYZdq{}33\PYZdq{},
            \PYZdq{}folio\PYZdq{}: \PYZdq{}1165\PYZdq{},
            \PYZdq{}rut_cliente\PYZdq{}: 22222222\PYZhy{}2\PYZdq{},
            \PYZdq{}razon\PYZdq{}: \PYZdq{}ADOLFO ENRIQUE FREDES ARACENA Y COMPANIA LIMITADA\PYZdq{},
            \PYZdq{}valor_total\PYZdq{}: \PYZdq{}62413\PYZdq{}
    \PY{n+nb}{\PYZcb{}},
    \PY{n+nb}{\PYZob{}}
            \PYZdq{}fecha\PYZdq{}: \PYZdq{}2016-11-04\PYZdq{},
            \PYZdq{}tipo\PYZdq{}: \PYZdq{}33\PYZdq{},
            \PYZdq{}folio\PYZdq{}: \PYZdq{}1166\PYZdq{},
            \PYZdq{}rut_cliente\PYZdq{}: 11111111\PYZhy{}1\PYZdq{},
            \PYZdq{}razon\PYZdq{}: \PYZdq{}ADOLFO ENRIQUE FREDES ARACENA Y COMPANIA LIMITADA\PYZdq{},
            \PYZdq{}valor_total\PYZdq{}: \PYZdq{}62413\PYZdq{}
    \PY{n+nb}{\PYZcb{}},
    \PY{n+nb}{\PYZob{}}
            \PYZdq{}fecha\PYZdq{}: \PYZdq{}2016-11-04\PYZdq{},
            \PYZdq{}tipo\PYZdq{}: \PYZdq{}33\PYZdq{},
            \PYZdq{}folio\PYZdq{}: \PYZdq{}1167\PYZdq{},
            \PYZdq{}rut_cliente\PYZdq{}: 33333333\PYZhy{}3\PYZdq{},
            \PYZdq{}razon\PYZdq{}: \PYZdq{}ADOLFO ENRIQUE FREDES ARACENA Y COMPANIA LIMITADA\PYZdq{},
            \PYZdq{}valor_total\PYZdq{}: \PYZdq{}62413\PYZdq{}
    \PY{n+nb}{\PYZcb{}},\PY{n+nb}{\PYZob{}}
            \PYZdq{}fecha\PYZdq{}: \PYZdq{}2016-11-04\PYZdq{},
            \PYZdq{}tipo\PYZdq{}: \PYZdq{}33\PYZdq{},
            \PYZdq{}folio\PYZdq{}: \PYZdq{}1168\PYZdq{},
            \PYZdq{}rut_cliente\PYZdq{}: 44444444\PYZhy{}4\PYZdq{},
            \PYZdq{}razon\PYZdq{}: \PYZdq{}ADOLFO ENRIQUE FREDES ARACENA Y COMPANIA LIMITADA\PYZdq{},
            \PYZdq{}valor_total\PYZdq{}: \PYZdq{}62413\PYZdq{}
    \PY{n+nb}{\PYZcb{}},\PY{n+nb}{\PYZob{}}
            \PYZdq{}fecha\PYZdq{}: \PYZdq{}2016-11-04\PYZdq{},
            \PYZdq{}tipo\PYZdq{}: \PYZdq{}33\PYZdq{},
            \PYZdq{}folio\PYZdq{}: \PYZdq{}1169\PYZdq{},
            \PYZdq{}rut_cliente\PYZdq{}: 55555555\PYZhy{}5\PYZdq{},
            \PYZdq{}razon\PYZdq{}: \PYZdq{}ADOLFO ENRIQUE FREDES ARACENA Y COMPANIA LIMITADA\PYZdq{},
            \PYZdq{}valor_total\PYZdq{}: \PYZdq{}62413\PYZdq{}
    \PY{n+nb}{\PYZcb{}},

]
\end{Verbatim}
















\begin{tabular}{ | l | l |}
    \hline
    \textbf{URL} & http://[api\|apitest].softnet.cl/consultaDTE \\ \hline
    \textbf{Método} & POST \\ \hline
\end{tabular}



\begin{tabular}{ | l | l | l |}
    \hline
    \textbf{Dato} & \textbf{Tipo} & \textbf{Validaciones} \\ \hline
    Rut & string & requerido \| rut \\ \hline
    Tipo & numeric & requerido \| numerico \\ \hline
    Folio & numeric & requerido \| numerico \\ \hline
\end{tabular}

\subsection{Ejemplo Envío}

\begin{Verbatim}[commandchars=\\\{\}]
[
    \PY{n+nb}{\PYZob{}}
        \PYZdq{}Rut\PYZdq{}: \PYZdq{}22222222\PYZhy{}2\PYZdq{},
        \PYZdq{}Tipo\PYZdq{}: \PYZdq{}33\PYZdq{},
        \PYZdq{}Folio\PYZdq{}: \PYZdq{}11\PYZdq{},
    \PY{n+nb}{\PYZcb{}}
\end{Verbatim}


\subsection{Ejemplo Respuesta}

\begin{Verbatim}[commandchars=\\\{\}]
[
    \PY{n+nb}{\PYZob{}}
            \PYZdq{}fecha\PYZdq{}: \PYZdq{}2016-11-04\PYZdq{},
            \PYZdq{}tipo\PYZdq{}: \PYZdq{}33\PYZdq{},
            \PYZdq{}folio\PYZdq{}: \PYZdq{}1165\PYZdq{},
            \PYZdq{}rut_cliente\PYZdq{}: 22222222\PYZhy{}2\PYZdq{},
            \PYZdq{}razon\PYZdq{}: \PYZdq{}ADOLFO ENRIQUE FREDES ARACENA Y COMPANIA LIMITADA\PYZdq{},
            \PYZdq{}valor_total\PYZdq{}: \PYZdq{}62413\PYZdq{}
    \PY{n+nb}{\PYZcb{}},
    \PY{n+nb}{\PYZob{}}
            \PYZdq{}fecha\PYZdq{}: \PYZdq{}2016-11-04\PYZdq{},
            \PYZdq{}tipo\PYZdq{}: \PYZdq{}33\PYZdq{},
            \PYZdq{}folio\PYZdq{}: \PYZdq{}1166\PYZdq{},
            \PYZdq{}rut_cliente\PYZdq{}: 11111111\PYZhy{}1\PYZdq{},
            \PYZdq{}razon\PYZdq{}: \PYZdq{}ADOLFO ENRIQUE FREDES ARACENA Y COMPANIA LIMITADA\PYZdq{},
            \PYZdq{}valor_total\PYZdq{}: \PYZdq{}62413\PYZdq{}
    \PY{n+nb}{\PYZcb{}},
    \PY{n+nb}{\PYZob{}}
            \PYZdq{}fecha\PYZdq{}: \PYZdq{}2016-11-04\PYZdq{},
            \PYZdq{}tipo\PYZdq{}: \PYZdq{}33\PYZdq{},
            \PYZdq{}folio\PYZdq{}: \PYZdq{}1167\PYZdq{},
            \PYZdq{}rut_cliente\PYZdq{}: 33333333\PYZhy{}3\PYZdq{},
            \PYZdq{}razon\PYZdq{}: \PYZdq{}ADOLFO ENRIQUE FREDES ARACENA Y COMPANIA LIMITADA\PYZdq{},
            \PYZdq{}valor_total\PYZdq{}: \PYZdq{}62413\PYZdq{}
    \PY{n+nb}{\PYZcb{}},\PY{n+nb}{\PYZob{}}
            \PYZdq{}fecha\PYZdq{}: \PYZdq{}2016-11-04\PYZdq{},
            \PYZdq{}tipo\PYZdq{}: \PYZdq{}33\PYZdq{},
            \PYZdq{}folio\PYZdq{}: \PYZdq{}1168\PYZdq{},
            \PYZdq{}rut_cliente\PYZdq{}: 44444444\PYZhy{}4\PYZdq{},
            \PYZdq{}razon\PYZdq{}: \PYZdq{}ADOLFO ENRIQUE FREDES ARACENA Y COMPANIA LIMITADA\PYZdq{},
            \PYZdq{}valor_total\PYZdq{}: \PYZdq{}62413\PYZdq{}
    \PY{n+nb}{\PYZcb{}},\PY{n+nb}{\PYZob{}}
            \PYZdq{}fecha\PYZdq{}: \PYZdq{}2016-11-04\PYZdq{},
            \PYZdq{}tipo\PYZdq{}: \PYZdq{}33\PYZdq{},
            \PYZdq{}folio\PYZdq{}: \PYZdq{}1169\PYZdq{},
            \PYZdq{}rut_cliente\PYZdq{}: 55555555\PYZhy{}5\PYZdq{},
            \PYZdq{}razon\PYZdq{}: \PYZdq{}ADOLFO ENRIQUE FREDES ARACENA Y COMPANIA LIMITADA\PYZdq{},
            \PYZdq{}valor_total\PYZdq{}: \PYZdq{}62413\PYZdq{}
    \PY{n+nb}{\PYZcb{}},

]
\end{Verbatim}
