POST
/api/dce/pdfGet DC-e PDF
Returns the URL of the DACE — the PDF representation of the DC-e. When the PDF does not yet exist in storage, it is generated on demand and uploaded. If storage is unavailable, the PDF is returned as base64 in the response body itself.
Required headers
tokenstring | string | Token of the issuing company |
signstring | string | MD5 signature |
timestampstring | string | Unix timestamp in seconds |
Body
chDCe*string | string | DC-e access key (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/dce/pdf" \ -H "Content-Type: application/json" \ -H "token: $TOKEN" \ -H "timestamp: $TIMESTAMP" \ -H "sign: $SIGN" \ -d @body.json
{
"chDCe": "41250612345678000199990010000000011201234564"
}
{
"success": true,
"message": "DACE disponível",
"chave": "41250612345678000199990010000000011201234564",
"dace": "https://storage.../dce/41250612345678000199990010000000011201234564.pdf"
}
{
"success": true,
"message": "DACE disponível",
"chave": "41250612345678000199990010000000011201234564",
"pdfBase64": "JVBERi0xLjcKJ...",
"pdfSize": 84213
}