POST
/api/nfcom/pdfGet NFCom PDF
Returns the URL of the DANFE-COM — the PDF representation of the NFCom (subscriber bill), per MOC Annex II. 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
chNFCom*string | string | Access key of the NFCom (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/nfcom/pdf" \ -H "Content-Type: application/json" \ -H "token: $TOKEN" \ -H "timestamp: $TIMESTAMP" \ -H "sign: $SIGN" \ -d @body.json
{
"chNFCom": "35260712345678000199620010000000011012345675"
}
{
"success": true,
"message": "OK",
"danfcom": "https://storage.../nfcom/35260712345678000199620010000000011012345675.pdf"
}