example-data.com
Menu
Browse docs and collections

Overview

invoices / #141

invoices #141

fromUserId
Ismael Ward @ismael_ward
toUserId
Daisy Kuhic @daisy_kuhic24
invoiceNumber
INV-2026-0141
status
viewed
issuedAt
dueAt
paidAt
subtotal
16300.37
tax
2445.06
total
18745.43
currency
EUR
lineItems
              [
  {
    "description": "Implementation services",
    "quantity": 23,
    "unitPrice": 351.92,
    "lineTotal": 8094.16
  },
  {
    "description": "System integration",
    "quantity": 9,
    "unitPrice": 365.23,
    "lineTotal": 3287.07
  },
  {
    "description": "Data analysis",
    "quantity": 6,
    "unitPrice": 344.12,
    "lineTotal": 2064.72
  },
  {
    "description": "Software development",
    "quantity": 5,
    "unitPrice": 125.15,
    "lineTotal": 625.75
  },
  {
    "description": "Maintenance contract",
    "quantity": 12,
    "unitPrice": 152.15,
    "lineTotal": 1825.8
  },
  {
    "description": "Consulting services",
    "quantity": 1,
    "unitPrice": 402.87,
    "lineTotal": 402.87
  }
]
            
createdAt

Component variants

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/invoices/141" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/invoices/141"
);
const invoice = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/invoices.d.ts https://example-data.com/types/invoices.d.ts
import type { Invoice } from "./types/invoices";

const res = await fetch(
  "https://example-data.com/api/v1/invoices/141"
);
const invoice = (await res.json()) as Invoice;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/invoices/141"
)
invoice = res.json()

Response

{
  "id": 141,
  "fromUserId": 178,
  "toUserId": 172,
  "invoiceNumber": "INV-2026-0141",
  "status": "viewed",
  "issuedAt": "2026-02-24T07:09:59.072Z",
  "dueAt": "2026-03-15T07:09:59.072Z",
  "paidAt": null,
  "subtotal": 16300.37,
  "tax": 2445.06,
  "total": 18745.43,
  "currency": "EUR",
  "lineItems": [
    {
      "description": "Implementation services",
      "quantity": 23,
      "unitPrice": 351.92,
      "lineTotal": 8094.16
    },
    {
      "description": "System integration",
      "quantity": 9,
      "unitPrice": 365.23,
      "lineTotal": 3287.07
    },
    {
      "description": "Data analysis",
      "quantity": 6,
      "unitPrice": 344.12,
      "lineTotal": 2064.72
    },
    {
      "description": "Software development",
      "quantity": 5,
      "unitPrice": 125.15,
      "lineTotal": 625.75
    },
    {
      "description": "Maintenance contract",
      "quantity": 12,
      "unitPrice": 152.15,
      "lineTotal": 1825.8
    },
    {
      "description": "Consulting services",
      "quantity": 1,
      "unitPrice": 402.87,
      "lineTotal": 402.87
    }
  ],
  "createdAt": "2026-02-23T22:34:21.823Z"
}