Esta rota é utilizada para consultar um evento especifico através do Id do Evento.
GET
https://api.tecnospeed.com.br/reinf/v2/evento/consultar/idevento
Headers
Nome
Descrição
Exemplo
Parâmetro token obtido na rota /auth , deve ser informado como um Bearer Token
Bearer xxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxxxxx.xxxxx...
Identificador do evento
ID1081871680000002018015410375800001
ambiente
Ambiente de envio do Evento
2
empregador
CNPJ do Empregador
57695458000120 (Utilizar 14 dígitos)
Retorno
O retorno será um JSON com as principais informações do lote.
Exemplo de retorno:
{
"message": "Evento retornado",
"data": {
"ocorrencias": [],
"eventos": [
{
"status": {
"codigo": "0",
"mensagem": "SUCESSO"
},
"id": "ID1081871680000002018015410375800001",
"infoRecEv": {
"dhProcess": "2018-07-03T10:38:13.9778892-03:00",
"tpEv": "2010",
"idEv": "ID1081871680000002018015410375800001",
"hash": "ypjX8kd/VDheETyR+RmAenGzXo7wTc7gEDBkzOqhgm4="
},
"recibo": "23373-08-2010-1807-25473",
"R5001": {
"nrRecArqBase": "23373-08-2010-1807-25473",
"RTom": {
"cnpjPrestador": "26764821150198",
"vlrTotalBaseRet": "1,20",
"infoCRTom": [
{
"CRTom": "116201",
"VlrCRTom": "0,13"
}
]
},
"ideContri": {
"tpInsc": "1",
"nrInsc": "08187168"
},
"ideEvento": {
"perApur": "2018-07"
}
}
}
],
"cnpj_sh": "86837822000147",
"id": "a45f6267-2409-45bd-b4f5-6f30f0a27a0b",
"xml": "<evento id=\"ID1081871680000002018015410375800001\"><Reinf xmlns=\"http://www.reinf.esocial.gov.br/schemas/evtTomadorServicos/v1_03_02\"><evtServTom id=\"ID1081871680000002018070310375800001\"><ideEvento><indRetif>1</indRetif><perApur>2018-07</perApur><tpAmb>2</tpAmb><procEmi>1</procEmi><verProc>1.0</verProc></ideEvento><ideContri><tpInsc>1</tpInsc><nrInsc>08187168</nrInsc></ideContri><infoServTom><ideEstabObra><tpInscEstab>1</tpInscEstab><nrInscEstab>29062609000177</nrInscEstab><indObra>0</indObra><idePrestServ><cnpjPrestador>26764821000198</cnpjPrestador><vlrTotalBruto>1,00</vlrTotalBruto><vlrTotalBaseRet>1,20</vlrTotalBaseRet><vlrTotalRetPrinc>0,02</vlrTotalRetPrinc><indCPRB>0</indCPRB><nfs><serie>0</serie><numDocto>1346987125</numDocto><dtEmissaoNF>2018-07-02</dtEmissaoNF><vlrBruto>1,00</vlrBruto><infoTpServ><tpServico>100000015</tpServico><vlrBaseRet>1,20</vlrBaseRet><vlrRetencao>0,02</vlrRetencao></infoTpServ></nfs></idePrestServ></ideEstabObra></infoServTom></evtServTom><Signature xmlns=\"http://www.w3.org/2000/09/xmldsig#\"><SignedInfo><CanonicalizationMethod Algorithm=\"http://www.w3.org/TR/2001/REC-xml-c14n-20010315\"/><SignatureMethod Algorithm=\"http://www.w3.org/2001/04/xmldsig-more#rsa-sha256\"/><Reference URI=\"#ID1081871680000002018070310375800001\"><Transforms><Transform Algorithm=\"http://www.w3.org/2000/09/xmldsig#enveloped-signature\"/><Transform Algorithm=\"http://www.w3.org/TR/2001/REC-xml-c14n-20010315\"/></Transforms><DigestMethod Algorithm=\"http://www.w3.org/2001/04/xmlenc#sha256\"/><DigestValue>ypjX8kd/VDheETyR+RmAenGzXo7wTc7gEDBkzOqhgm4=</DigestValue></Reference></SignedInfo><SignatureValue>eUQr9N/9k5ct1D42k0wnjg00h6KbJsZOB+f/updsLMT7ATr8W4rM/YTuNFMppCV6CR0hXFgjgON901Wc2q4kNNpWYd65Fb+atlsQitKAcMx7b/lWAN1b6n5RzVJ1KWq1QBEF+mh3laxzThDnpXsKOXHZKXujgxdEd/+nu+yCC4RWEZZPx76r8VTxkMPwyQgTpR8g7H4YlbS5AWoOjbIIpV9/NcsOt2R2uMyAevTpSKK8y8P8KpBD7pCJdiALiZeDnkIz6V8dsl6GBlz/4lA6tWEykG+aR3t2AVV7BJJcaGcwVL/UWrrDedAAUOFM4I6Iw8wv/LUPk2uiWKSj6HN09w==</SignatureValue><KeyInfo><X509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6F++VEU8Vi1/ef0X5Y6kO5C20eI+o4hRQPDai13HvlHvrlpSZTUYpydqn07WYZ587qkNhRcggMRQ+QWPVTieW8YDpAPuKhrcwN3mphePVCnRlEyX2eG2IiBRCFl1cqVZ2RJSS0DCZMR1pZ8FZiRJH5M8FAmQPhAFXLX30BlRXtA+2MUGL+t56QNnRs+LJW5ViMo6DaNt/jL5mW92gHNB7CatixAcmop1OhN8t9/Krzv6x4JbpAJQ4e2zjWVpWoB8Nm6WrsC6RBUsBdELhWu5zRB2RTnrJpf5SiY6CcHyOV5haZVypQ0wjq0pIex9GpGWT2wapH+/orz+Jc2G42nJuxvvz1Sq7o6Ws2wILKWppZ0vzqTVQQYmWnNnrzu+Vmsp5QTE1eyI3ffaCmRHaBs9zXdSNkuzAfBcKzCH0J8iyfhkZ1EaGEfVe/fxPqK2QUMcuESdybMc3zwJ5K4CA0dyDB9hi8xkXzg/xhb+RkaEqQoyO6Y5EJYoKKWvxl2oXw8=</X509Certificate></X509Data></KeyInfo></Signature></Reinf></evento>",
"xml_retorno": "<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\"><s:Body xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"><ReceberLoteEventosResponse xmlns=\"http://sped.fazenda.gov.br/\"><ReceberLoteEventosResult><Reinf xmlns=\"http://www.reinf.esocial.gov.br/schemas/retornoLoteEventos/v1_03_02\"><retornoLoteEventos id=\"ID82D9F980EE26E5CFE75E53B4B14D114D\"><ideTransmissor><IdTransmissor>29062609000177</IdTransmissor></ideTransmissor><status><cdStatus>0</cdStatus><descRetorno>SUCESSO</descRetorno></status><retornoEventos><evento id=\"ID1081871680000002018070310375800001\"><Reinf xmlns=\"http://www.reinf.esocial.gov.br/schemas/evtTotal/v1_03_02\"><evtTotal id=\"ID475131805\"><ideEvento><perApur>2018-07</perApur></ideEvento><ideContri><tpInsc>1</tpInsc><nrInsc>08187168</nrInsc></ideContri><ideRecRetorno><ideStatus><cdRetorno>0</cdRetorno><descRetorno>SUCESSO</descRetorno></ideStatus></ideRecRetorno><infoRecEv><dhProcess>2018-07-03T10:38:13.9778892-03:00</dhProcess><tpEv>2010</tpEv><idEv>ID1081871680000002018070310375800001</idEv><hash>ypjX8kd/VDheETyR+RmAenGzXo7wTc7gEDBkzOqhgm4=</hash></infoRecEv><infoTotal><nrRecArqBase>23373-08-2010-1807-23373</nrRecArqBase><RTom><cnpjPrestador>26764821000198</cnpjPrestador><vlrTotalBaseRet>1,20</vlrTotalBaseRet><infoCRTom><CRTom>116201</CRTom><VlrCRTom>0,13</VlrCRTom></infoCRTom></RTom></infoTotal></evtTotal><Signature xmlns=\"http://www.w3.org/2000/09/xmldsig#\"><SignedInfo><CanonicalizationMethod Algorithm=\"http://www.w3.org/TR/2001/REC-xml-c14n-20010315\"/><SignatureMethod Algorithm=\"http://www.w3.org/2001/04/xmldsig-more#rsa-sha256\"/><Reference URI=\"#ID475131805\"><Transforms><Transform Algorithm=\"http://www.w3.org/2000/09/xmldsig#enveloped-signature\"/><Transform Algorithm=\"http://www.w3.org/TR/2001/REC-xml-c14n-20010315\"/></Transforms><DigestMethod Algorithm=\"http://www.w3.org/2001/04/xmlenc#sha256\"/><DigestValue>/Bxf0S05gzHNpOOZ9tVqo9RlN6Xe9WnBThDrnjdaPac=</DigestValue></Reference></SignedInfo><SignatureValue>DgfIkVv82aW/VRNq/GTBVeeVNPwYNMEfejxR/26pIOcQ81Yuft3nAqdJwBOTyJMkZpD+oI5uPJuE1FYNNwzZ4+n3AD9Y8yT95h2Arh7qFxRU4W6/Pm5eVY7oEW6yJOTWaBF4Mz8/HRCfDGVfMRbB6+QcHfwlvwOcgXudFPHTIPTNSyMlq/uUnE5RSJ307D94XOSsFM4n+axdqm5eU1wWovz8UbW14VCZHMACqZVOSfiWmy6tBYhayNKgmmVTxqnBpXZwur7qQv80bQrNDk+qNG9NrlIUyuy5frHrV7YGVWSTv1F5qUKRci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ab0F8CVmph64uWaxLDvJ/h6LftxOcnz59z5+uIOdEQLMQWl0Qgxk+PUvhU/CacwP2B94ouQdfyaCLbSgAFck7nhgwowxX7JA3V4OlQRw7aAjt8Kikh/NjWYTfF/GZeEy90XCW8DbBmg4bSIdnaAds9Y6ne4CjO1fPILoDZRXBAzKrvBYyN6/GOd/u1nlMe3OvEPa8zpc565kxbUZZGFqPk5Tv4+11od7rJ+l/4KTj0ok0hRXnpEWQBsbSQ/YsFSOIOaID2uvyl/Q2C0YRbea+OrtmRgMqMAXWUn9TxMbAw2KgoV/V4/3Gv4QVZ/HRGPLidv9UVxf10n8imNwYrjo1focwIym254uUmyeRYcrCWh+UR0x3dwU5agb2uRNkoJ8aTGwpNNhlFdUDCwIulzi8EQRBIp1nuqEW7mQPOnH+PdKwAxd7ESfehnESjmrw0i55AZJF0rhn7CW8lxi2RXmjj9S</X509Certificate></X509Data></KeyInfo></Signature></Reinf></evento></retornoEventos></retornoLoteEventos></Reinf></ReceberLoteEventosResult></ReceberLoteEventosResponse></s:Body></s:Envelope>",
"status_envio": {
"codigo": "0",
"mensagem": "SUCESSO"
},
"status_consulta": {
"codigo": "0",
"mensagem": "SUCESSO"
},
"json_retorno": [
{
"status": {
"codigo": "0",
"mensagem": "SUCESSO"
},
"id": "ID1081871680000002018015410375800001",
"infoRecEv": {
"dhProcess": "2018-07-03T10:38:13.9778892-03:00",
"tpEv": "2010",
"idEv": "ID1081871680000002018015410375800001",
"hash": "ypjX8kd/VDheETyR+RmAenGzXo7wTc7gEDBkzOqhgm4="
},
"recibo": "23373-08-2010-1807-25473",
"R5001": {
"nrRecArqBase": "23373-08-2010-1807-25473",
"RTom": {
"cnpjPrestador": "26764821150198",
"vlrTotalBaseRet": "1,20",
"infoCRTom": [
{
"CRTom": "116201",
"VlrCRTom": "0,13"
}
]
},
"ideContri": {
"tpInsc": "1",
"nrInsc": "08187168"
},
"ideEvento": {
"perApur": "2018-07"
}
}
}
]
}
}
Exemplo de retorno com erro:
{
"error": {
"message": "Parâmetros incorretos"
}
}
Comentários
0 comentário
Por favor, entre para comentar.