Skip to main content
GET
/
invoices
/
{invoiceId}
/
document
Download the signed invoice document
curl --request GET \
  --url https://api.openfiskal.com/v1/invoices/{invoiceId}/document \
  --header 'Authorization: Bearer <token>'
"<string>"

Authorizations

Authorization
string
header
required

Platform API key sent as Authorization: Bearer ofk_platform_.... Platform integrators also pass OpenFiskal-Organization: org_xxx to act on behalf of a merchant.

Headers

OpenFiskal-Organization
string

Merchant organization ID. Required for platform integrators acting on behalf of a specific merchant. Omit when using an organization-scoped API key directly.

Path Parameters

invoiceId
string
required

Query Parameters

format
enum<string>
default:xml

xml returns the signed fiscal document. pdf returns a human-readable representation (not the fiscal document — the XML is the legally binding record).

Available options:
xml,
pdf

Response

Invoice document

The response is of type file.