NuminaDevelopers
Dashboard
List invoice files

List invoice files

GET
/v1/invoices/{id}/files

Lists the files emailed with an invoice or offer, such as a timesheet or a contract, in the order they are attached after the PDF.

Requires one ofinvoices:readread:ledger

Path parameters

  • idstring (uuid)Required
    Invoice ID

Errors

  • 401Missing or invalid credentials
  • 403A scope is missing, or the company is archived
  • 404It doesn't exist in this company
  • 429You're over the rate limit
  • 500Something went wrong on our side

Every error has the same shape. See Errors.

cURL
curl https://api.numina.app/v1/invoices/550e8400-e29b-41d4-a716-446655440000/files \
  -H "Authorization: Bearer numi_YOUR_API_KEY"
JavaScript
const response = await fetch("https://api.numina.app/v1/invoices/550e8400-e29b-41d4-a716-446655440000/files", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.NUMINA_API_KEY}`,
  },
});

const data = await response.json();
Python
import os

import requests

response = requests.get(
    "https://api.numina.app/v1/invoices/550e8400-e29b-41d4-a716-446655440000/files",
    headers={
        "Authorization": f"Bearer {os.environ['NUMINA_API_KEY']}",
    },
)
data = response.json()
Response
200
{
  "files": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "file_name": "timesheet-march.pdf",
      "content_type": "application/pdf",
      "size_bytes": 48213,
      "sha256": "string",
      "created_at": "string"
    }
  ]
}