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.
URL
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.
Field | Description | Data Type | Occurrence | Notes |
---|---|---|---|---|
X-AUTH-TOKEN | User access token | String | 0-1 | |
chNFe | NF-e access key that will be sent | String | 1-1 | |
tpAmb | NF-e authorization environment type | Int | 1-1 | 1 - Production 2 - Homologation |
enviaEmailDoc | Send to original emails contained in document XML | Boolean | 0-1 | Required if the email is not sent. Default value: false |
anexarPDF | Indicates if the document PDF must be generated and sent together | Boolean | 0-1 | |
anexarEvento | Indicates if the events must be sent together | Boolean | 0-1 | |
Destination email | Array(String) | 0-N | Required 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"]}'\
https://nfe.ns.eti.br/util/resendemail
Returned data
Field | Description | Data Type | Occurrence | Notes |
---|---|---|---|---|
status | Processing status code | Int | 1-1 | |
motivo | Processing status literal description | String | 1-1 | |
erro | Object containing error information | Object | 0-1 | Only when status is different from 200 and -2 |
cStat | Error status code | Integer | 1-1 | |
xMotivo | Error literal description | String | 1-1 |
Return example
Successful return
{
"status": 200,
"motivo": "Reenvio de e-mail agendado com sucesso"
}
Return codes
Code | Description |
---|---|
200 | Successfully scheduled email resend |
-2 | 'enviaEmailDoc' must be true or the destination e-mails must be informed in the "email" field |
-3 | Unable to schedule the sending of e-mail. Check the "erro" object for more information |