Actions19
- Account Actions
- Balance Actions
- Statement Actions
- Customer Actions
- Invoice Actions
- Payment Actions
- Custom Actions
Invoice → Get PDF
AI-generatedSummary
Retrieves the PDF of an invoice from Tochka Bank.
Inputs
- invoiceCustomerCode (required) — Customer code of the invoice recipient (as returned by Invoice.Create).
- documentId (required) — Document ID of the invoice (obtained from Invoice.Create).
Output shape
The operation returns the PDF file as binary data (or base64‑encoded string) in the response body, which n8n exposes as the item’s JSON. If the API wraps the payload in a Data property, that content is returned; otherwise the raw response is returned.
Authentication is performed via the tochkaApi credentials (JWT Bearer). The endpoint called is GET /invoice/v1.0/bills/{customerCode}/{documentId}/file.
Examples
Example 1: Get PDF after creating an invoice
Set Resource=Invoice, Operation=Get PDF, map Customer Code and Document ID from a previous Invoice.Create node.