Get financial document
posthttps://billing5.tranzila.com/api/documents_db/get_document
This endpoint will generate a PDF upon success and return JSON in case of an error.
| Element Name | Data type | Mandatory | Note (default value in bold) |
|---|---|---|---|
| terminal_name | String | Yes | Terminal in which a document was created |
| document_id | integer | Yes | |
| response_language | String | No | eng |
JSON Example
JSON
{
"terminal_name": "terminalname",
“document_id”: “11823”
}
Request
Body
application/jsonterminal_namestringrequired
Terminal in which the document was created
Example:
terminalnamedocument_idstringrequired
Document ID
Example:
11823response_languagestring
Response language: 'eng' for English, 'heb' for Hebrew
Allowed values:
enghebExample:
engResponses
Success: Returns PDF file
When successful, this endpoint returns the PDF document file directly.
The response Content-Type will be application/pdf.
Error: Returns JSON
When an error occurs, returns JSON with error details:
status_code: Error code (see error codes section)status_msg: Error message
Common errors:
10600: Unknown document id10601: Document ID not found in database10602: No PDF file found for document
Response body
response.json
JSON
1{
2 "status_code": 10600,
3 "status_msg": "Unknown document id"
4}
5