curl --request GET \
--url 'https://api.scanova.io/payment/205/invoice/download/' \
--header 'Authorization: YOUR_API_KEY' \
--output invoice.pdf
Payments
Download an invoice/receipt
GET /payment//invoice/download/
GET
/
payment
/
{payment_id}
/
invoice
/
download
/
curl --request GET \
--url 'https://api.scanova.io/payment/205/invoice/download/' \
--header 'Authorization: YOUR_API_KEY' \
--output invoice.pdf
Downloads the billing document for one payment — the real, GST-compliant invoice when one exists, transparently falling back to a locally-generated receipt when it doesn’t.
This endpoint never 404s for “no real invoice yet” — that’s an internal fallback, not a caller-visible error. Every call gets some valid document, every time. If you specifically want the locally-generated receipt regardless of real-invoice availability, use Download a receipt instead — the two share the same fallback document, but this one prefers the real invoice first.
Requires the
BillingInvoiceCanDownload permission.integer
required
Payment ID, from List payment history.
curl --request GET \
--url 'https://api.scanova.io/payment/205/invoice/download/' \
--header 'Authorization: YOUR_API_KEY' \
--output invoice.pdf
The response is a binary file (PDF), not JSON — write it straight to disk rather than parsing it.
404 if payment_id isn’t owned by this account.
Related
- Download a receipt — always the local receipt, never the real invoice.
- List payment history
- Management API overview — the auth scheme and quota architecture this endpoint is part of.
Authorizations
Send your Management API key as the raw value of the Authorization header — no "Bearer " or "Token " prefix, and no other characters. Example: Authorization: 401f7ac837da42b97f613d789819ff93537bee6a. A header containing more than one space-separated part is rejected outright. Requests also require the request's Host header to be the management API host (e.g. api.scanova.io) — the same key sent to the regular API host will not authenticate.
Path Parameters
Response
The invoice or receipt, as a binary PDF attachment.
Was this page helpful?