POST
/api/nf3e/pdfGet NF3e PDF
Returns the URL of the DANF3E — the PDF representation of the NF3e (electricity bill). The PDF is generated automatically at authorization; when it does not yet exist in storage, it is generated on demand from the XML.
Required headers
tokenstring | string | Token of the issuing company |
signstring | string | MD5 signature |
timestampstring | string | Unix timestamp in seconds |
Body
chNF3e*string | string | Access key of the NF3e (44 digits) |
* Required field.
Examples
# sign = md5(token + path + body + timestamp) # Template generated from the endpoint path; replace the placeholders curl -X POST "https://api.tffiscal.com/api/nf3e/pdf" \ -H "Content-Type: application/json" \ -H "token: $TOKEN" \ -H "timestamp: $TIMESTAMP" \ -H "sign: $SIGN" \ -d @body.json
{
"chNF3e": "35260712345678000199660010000000011012345675"
}
{
"success": true,
"message": "OK",
"danf3e": "https://storage.../nf3e/35260712345678000199660010000000011012345675.pdf"
}