Web Service NFE Prefecture of São Paulo Error 1402

0

Good afternoon. I am creating a code to access the Web Service of NFE of the City of São Paulo, calling the method of Request for Consultation of NF-e Issued. I created all the integration code, including generating the XML signed by the digital certificate and apparently everything is correct with the code, but when I use it, I get a return XML with the 1402 O CPF/CNPJ da assinatura da mensagem XML não tem acesso ao Tomador de Serviços informado. error. Does anyone know the cause of this error?

    
asked by anonymous 06.10.2017 / 23:14

1 answer

0

Post a little more of the code that makes the query. Are you downloading through which WebService? Good if you are the server of Sefaz in case you most likely will be making a manifestation recipient and then a Distribution

Good If this is the concept e:

You will put the CNPJ of the recipient in most cases and yourself. Using your digital certificate (from the recipient in case and yourself) will do the process quoted above. Manifestation and Distribution.

Why do I need demonstration and distribution?

Manifest: You confirm that the NFe was actually issued to you. In other words you say to the sefaz: If this NF-e was actually issued for min, okay? (Manifestation of confirming "Science of Operation")

Distribution: it does a distribution by the nf-e key or by the nsu depends on the case.

Note: Does the city of são paulo offer a custom download of NF-e? Or and server of Sefaz de São Paulo?

    
10.10.2017 / 21:59