POST
/api/invoice/cce/download_pdfDownload CC-e PDF
Returns the CC-e PDF URL. The PDF is generated on demand on the first call (rendered from the invoice XML + CC-e XML) and stored in the platform file storage; subsequent calls return the existing URL.
Required headers
tokenstring | string | Issuing company token |
signstring | string | MD5 signature |
timestampstring | string | Unix timestamp in seconds |
Body
cce_*string | string | CC-e ID (ObjectId) returned by /api/invoice/cce/get_list in the id field |
* 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/invoice/cce/download_pdf" \ -H "Content-Type: application/json" \ -H "token: $TOKEN" \ -H "timestamp: $TIMESTAMP" \ -H "sign: $SIGN" \ -d @body.json
{
"cce_id": "65fa1b2c3d4e5f6a7b8c9d0e"
}
{
"success": true,
"data": {
"url": "https://oss.example.com/.../cce_seq1.pdf"
}
}