example-data.com
Menu
Browse docs and collections

Overview

invoices / #160

invoices #160

fromUserId
Sarah West @sarah.west
toUserId
Oma Franecki-Johnson @oma.franecki-johnson
invoiceNumber
INV-2026-0160
status
paid
issuedAt
dueAt
paidAt
subtotal
32574.06
tax
1628.7
total
34202.76
currency
EUR
lineItems
              [
  {
    "description": "Marketing services",
    "quantity": 14,
    "unitPrice": 384.88,
    "lineTotal": 5388.32
  },
  {
    "description": "Quality assurance",
    "quantity": 25,
    "unitPrice": 335.13,
    "lineTotal": 8378.25
  },
  {
    "description": "Hardware supply",
    "quantity": 27,
    "unitPrice": 467.25,
    "lineTotal": 12615.75
  },
  {
    "description": "Hardware supply",
    "quantity": 17,
    "unitPrice": 364.22,
    "lineTotal": 6191.74
  }
]
            
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/invoices/160"
);
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/160"
);
const invoice = (await res.json()) as Invoice;

Python example

import requests

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

Response

{
  "id": 160,
  "fromUserId": 217,
  "toUserId": 242,
  "invoiceNumber": "INV-2026-0160",
  "status": "paid",
  "issuedAt": "2026-01-02T19:13:00.334Z",
  "dueAt": "2026-02-28T19:13:00.334Z",
  "paidAt": "2026-02-13T11:46:31.226Z",
  "subtotal": 32574.06,
  "tax": 1628.7,
  "total": 34202.76,
  "currency": "EUR",
  "lineItems": [
    {
      "description": "Marketing services",
      "quantity": 14,
      "unitPrice": 384.88,
      "lineTotal": 5388.32
    },
    {
      "description": "Quality assurance",
      "quantity": 25,
      "unitPrice": 335.13,
      "lineTotal": 8378.25
    },
    {
      "description": "Hardware supply",
      "quantity": 27,
      "unitPrice": 467.25,
      "lineTotal": 12615.75
    },
    {
      "description": "Hardware supply",
      "quantity": 17,
      "unitPrice": 364.22,
      "lineTotal": 6191.74
    }
  ],
  "createdAt": "2026-01-02T00:46:06.474Z"
}