TF Fiscal
Documentation

Invoice e-mail

Get e-mail template

Full template, with the body and the list of variables allowed for the type.

GET/openapi/v2/emails/templates/{templateId}
Requires the token, timestamp and sign signature headers, see Authentication.

Returns one integrator template by templateId, including corpoHtml and variaveisDisponiveis. A template of another integrator is not visible: it answers 10021001.

Path parameters

templateId*
stringTemplate identifier

* Required field

200
Template found.
templateId
stringTemplate identifier
tipoDocumento
stringDocument type
idioma
stringTemplate language
nome
stringTemplate name
assunto
stringSubject template
corpoHtml
stringBody template
padrao
boolDefault template
ativo
boolEnabled
variaveisDisponiveis
arrayAllowed variables
criadoEm
stringCreation time
atualizadoEm
stringLast update

variaveisDisponiveis is the full list the template may use, in the order the platform declares it: the eleven common variables first, then the type-specific ones. Use it to build a template editor; a name outside it is refused at save with 10021003.

NFe: common variables only

The NF-e has no variable of its own; cliente.nome is the buyer.

json
[
"numero",
"serie",
"chaveAcesso",
"dataEmissao",
"valorTotal",
"emitente.nome",
"emitente.cnpj",
"cliente.nome",
"cliente.documento",
"linkPdf",
"linkXml"
]
variaveisDisponiveis*
arrayAllowed variables

* Required field

NFSe: common plus four of its own

codigoVerificacao, municipio, descricaoServico and valorIss; cliente.nome is the service taker.

json
[
"numero",
"serie",
"chaveAcesso",
"dataEmissao",
"valorTotal",
"emitente.nome",
"emitente.cnpj",
"cliente.nome",
"cliente.documento",
"linkPdf",
"linkXml",
"codigoVerificacao",
"municipio",
"descricaoServico",
"valorIss"
]
variaveisDisponiveis*
arrayAllowed variables

* Required field

CTe: common plus three of its own

remetente.nome, destinatario.nome and valorFrete; cliente.nome is the freight taker.

json
[
"numero",
"serie",
"chaveAcesso",
"dataEmissao",
"valorTotal",
"emitente.nome",
"emitente.cnpj",
"cliente.nome",
"cliente.documento",
"linkPdf",
"linkXml",
"remetente.nome",
"destinatario.nome",
"valorFrete"
]
variaveisDisponiveis*
arrayAllowed variables

* Required field

DCe: common plus one of its own

marketplace.site, from the issuer DC-e profile; cliente.nome is the recipient.

json
[
"numero",
"serie",
"chaveAcesso",
"dataEmissao",
"valorTotal",
"emitente.nome",
"emitente.cnpj",
"cliente.nome",
"cliente.documento",
"linkPdf",
"linkXml",
"marketplace.site"
]
variaveisDisponiveis*
arrayAllowed variables

* Required field