Skip to main content
GET
/
invoices
/
{id}
/
file
Get an invoice PDF file
curl --request GET \
  --url https://api.nomos.energy/invoices/{id}/file \
  --header 'Authorization: Bearer <token>'
{
  "code": "BAD_REQUEST",
  "message": "invalid_type in 'end': Required",
  "requestId": "37a04f8f-e791-491c-81e1-86cd304649bb",
  "docs": "https://docs.nomos.energy/api-references/errors/BAD_REQUEST"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The invoice id to access the pdf file

Example:

"inv_drjjua6ampd1op2fg98k89x8"

Response

Redirect to the file. The link is valid for 1 hour.