1. Inicio
  2. Documentos
  3. NS NFe (English)
  4. Utility Functions
  5. Sending NF-e by E-mail

Sending NF-e by E-mail

Through this service it’s possible to send an authorized NF-e by the NS NF-e API by e-mail and/or resend the NF-e to the e-mails contained in the XML.

The sender address used will be the email configured for the contributer in the Painel.


Production: POST https://nfe.ns.eti.br/util/resendemail

Input data

The input data in this method must be send in the request body in JSON format or as a QueryString in the URL method.

FieldDescriptionData TypeOccurrenceNotes
X-AUTH-TOKENUser access tokenString0-1
chNFeNF-e access key that will be sentString1-1
tpAmbNF-e authorization environment typeInt1-11 - Production
2 - Homologation
enviaEmailDocSend to original emails contained in document XMLBoolean0-1Required if the email is not sent.
Default value: false
anexarPDFIndicates if the document PDF must be generated and sent togetherBoolean0-1
anexarEventoIndicates if the events must be sent togetherBoolean0-1
emailDestination emailArray(String)0-NRequired if the "enviaEmailDoc" is not sent.
Request example

Request example

curl -X POST \
-H "Content-Type: application/json" \-d '{"X-AUTH-TOKEN": "YOUR_TOKEN", "chNFe":"43161106364717000135550000000099341000094837","tpAmb":"2", "email":["email@email.com.br"]}'\
Returned data
FieldDescriptionData TypeOccurrenceNotes
statusProcessing status codeInt1-1
motivoProcessing status literal descriptionString1-1
erroObject containing error informationObject0-1Only when status is different from 200 and -2
cStatError status codeInteger1-1
xMotivoError literal descriptionString1-1
Return example

Successful return

   "status": 200,
   "motivo": "Reenvio de e-mail agendado com sucesso"
Return codes
200Successfully scheduled email resend
-2'enviaEmailDoc' must be true or the destination e-mails must be informed in the "email" field
-3Unable to schedule the sending of e-mail. Check the "erro" object for more information

Como podemos ajudar?