Skip to main content
GET
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.
Requires the BillingInvoiceCanDownload permission.
integer
required
Payment ID, from List payment history.
The response is a binary file (PDF), not JSON — write it straight to disk rather than parsing it.
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. 404 if payment_id isn’t owned by this account.

Authorizations

Authorization
string
header
required

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

payment_id
integer
required

Response

The invoice or receipt, as a binary PDF attachment.