Oten Tecnologia
Oten Fiscal
Documentation
POST/nfse/email/{idNota}

Send email

Sends or resends email using the invoice ID. When reenvio is true, the message goes to every recipient already in the invoice JSON plus any extra recipients in the destinatarios array. Typical uses: - Control email sending manually. - Offer a resend button in your product. - Send PDF and XML to a new recipient. Notes: - If the company has email.enabled = true for the document, XML + PDF is sent automatically to the customer.

Production: https://api.otentecnologia.com.brSandbox: https://api.sandbox.otentecnologia.com.br

Parameters

This route has no path or query parameters.

Request

cURL
curl -X POST 'https://api.otentecnologia.com.br/nfse/email/{idNota}' \
  -H 'x-api-key: $OTEN_API_KEY' \
  -H 'Content-Type: application/json'

Responses

200OK
JSON
{
  "message": "Operação realizada com sucesso",
  "data": {
    "documents": [
      {
        "id": "0000000000",
        "situacao": "CONCLUIDO",
        "enviado": true
      }
    ]
  }
}
400Bad Request
401Unauthorized
JSON
{
  "error": {
    "message": "O token informado é inválido. Para o ambiente de produção, Acesse https://www.otentecnologia.com.br/, e gere o seu TOKEN de acesso"
  }
}