


\section{Consulta Documento}
\subsection{Servicio}


\begin{tabular}{ | l | l |}
    \hline
    \textbf{URL} & http://[api\|apitest].softnet.cl/consultaDocumento \\ \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{}876\PYZdq{},
    \PY{n+nb}{\PYZcb{}}
\end{Verbatim}


\subsection{Ejemplo Respuesta}

\begin{Verbatim}[commandchars=\\\{\}]
[
    \PY{n+nb}{\PYZob{}}
        \PYZdq{}idDoc\PYZdq{}: \PY{n+nb}{\PYZob{}}
            \PYZdq{}tipo\PYZdq{}: \PYZdq{}33\PYZdq{},
            \PYZdq{}folio\PYZdq{}: \PYZdq{}876\PYZdq{},
            \PYZdq{}fechaEmision\PYZdq{}: \PYZdq{}2016-11-03\PYZdq{}
            \PYZdq{}FchaVencimiento\PYZdq{}: \PYZdq{}2016-11-03\PYZdq{}

        \PYZdq{}emisor\PYZdq{}: \PY{n+nb}{\PYZob{}}
            \PYZdq{}RUTEmisor\PYZdq{}: \PYZdq{}22222222\PYZhy{}2\PYZdq{},
            \PYZdq{}RazonSoc\PYZdq{}: \PYZdq{}DEMO ERP SOFTNET\PYZdq{},
            \PYZdq{}GiroEmision\PYZdq{}: \PYZdq{}ASESORES Y CONSULTORES EN INFORMATICA (SOFTWARE)G\PYZdq{},
            \PYZdq{}Telefono\PYZdq{}: \PYZdq{}32-2218299\PYZdq{},
            \PYZdq{}Actecto\PYZdq{}: \PYZdq{}722000\PYZdq{},
            \PYZdq{}DirOrigen\PYZdq{}: \PYZdq{}YUNGAY 1942\PYZdq{},
            \PYZdq{}ComunaOrigen\PYZdq{}: \PYZdq{}VALPARAISO\PYZdq{}
            \PYZdq{}CiudadOrigen\PYZdq{}: \PYZdq{}VALPARAISO\PYZdq{}

        \PYZdq{}receptor\PYZdq{}: \PY{n+nb}{\PYZob{}}
            \PYZdq{}RUTReceptor\PYZdq{}: \PYZdq{}78059800\PYZhy{}K\PYZdq{},
            \PYZdq{}RazonSocRecep\PYZdq{}: \PYZdq{}A.C. BALDRICH-CHILE123\PYZdq{},
            \PYZdq{}GiroReceptor\PYZdq{}: \PYZdq{}PERSONAS\PYZdq{},
            \PYZdq{}DirReceptor\PYZdq{}: \PYZdq{}santiago centro\PYZdq{},
            \PYZdq{}ComunaReceptor\PYZdq{}: \PYZdq{}santiago\PYZdq{},
            \PYZdq{}CiudadReceptor\PYZdq{}: \PYZdq{}santiago\PYZdq{},

        \PYZdq{}totales\PYZdq{}: \PY{n+nb}{\PYZob{}}
            \PYZdq{}MontoNeto\PYZdq{}: \PYZdq{}100\PYZdq{},
            \PYZdq{}MontoExento\PYZdq{}: \PYZdq{}0\PYZdq{},
            \PYZdq{}TasaIVA\PYZdq{}: \PYZdq{}19\PYZdq{},
            \PYZdq{}MontoIVA\PYZdq{}: \PYZdq{}19\PYZdq{},
            \PYZdq{}MontoTotal\PYZdq{}: \PYZdq{}119\PYZdq{},

        \PYZdq{}DescuentoGLogal\PYZdq{}: \PY{n+nb}{\PYZob{}}
            \PYZdq{}NroLinDR\PYZdq{}: \PYZdq{}1\PYZdq{},
            \PYZdq{}TipoValor\PYZdq{}: \PYZdq{}$\PYZdq{},
            \PYZdq{}ValorDR\PYZdq{}: \PYZdq{}0\PYZdq{},
        \PY{n+nb}{\PYZcb{}},
        \PYZdq{}Detalle\PYZdq{}: [
            \PY{n+nb}{\PYZob{}}
                \PYZdq{}NroLinDet\PYZdq{}: \PYZdq{}1\PYZdq{},
                \PYZdq{}VlrCodigo\PYZdq{}: \PYZdq{}xxx\PYZdq{},
                \PYZdq{}NumeroItem\PYZdq{}: \PYZdq{}Huevos\PYZdq{},
                \PYZdq{}DetalleItem\PYZdq{}: \PYZdq{}\PYZdq{},
                \PYZdq{}CantidadItem\PYZdq{}: \PYZdq{}1\PYZdq{},
                \PYZdq{}UnidadMedidadItem\PYZdq{}: \PYZdq{}UN\PYZdq{},
                \PYZdq{}ValorItem\PYZdq{}: \PYZdq{}663\PYZdq{}
                \PYZdq{}DescuentoPorcentaje\PYZdq{}: \PYZdq{}10\PYZdq{}
                \PYZdq{}DescuentoMonto\PYZdq{}: \PYZdq{}10\PYZdq{}
                \PYZdq{}TotalItem\PYZdq{}: \PYZdq{}663\PYZdq{}
            \PY{n+nb}{\PYZcb{}},

        ],
        \PYZdq{}Adicional\PYZdq{}: \PY{n+nb}{\PYZob{}}
            \PYZdq{}Uno\PYZdq{}: \PYZdq{}2434\PYZdq{},
            \PYZdq{}Dos\PYZdq{}: \PYZdq{}11111111\PYZhy{}1\PYZdq{},
            \PYZdq{}Treinta\PYZdq{}: \PYZdq{}123\PYZdq{}
        \PY{n+nb}{\PYZcb{}}
    \PY{n+nb}{\PYZcb{}}
]
\end{Verbatim}
