example-data.com
Menu
Browse docs and collections

Overview

invoices / #212

invoices #212

fromUserId
Audreanne Will @audreanne_will
toUserId
Samson Stroman @samson_stroman
invoiceNumber
INV-2025-0212
status
overdue
issuedAt
dueAt
paidAt
subtotal
25676.69
tax
5135.34
total
30812.03
currency
CAD
lineItems
              [
  {
    "description": "Training session",
    "quantity": 39,
    "unitPrice": 494.7,
    "lineTotal": 19293.3
  },
  {
    "description": "Content writing",
    "quantity": 35,
    "unitPrice": 55.51,
    "lineTotal": 1942.85
  },
  {
    "description": "License fee",
    "quantity": 13,
    "unitPrice": 341.58,
    "lineTotal": 4440.54
  }
]
            
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 212,
  "fromUserId": 127,
  "toUserId": 52,
  "invoiceNumber": "INV-2025-0212",
  "status": "overdue",
  "issuedAt": "2025-10-11T07:44:03.561Z",
  "dueAt": "2025-11-09T07:44:03.561Z",
  "paidAt": null,
  "subtotal": 25676.69,
  "tax": 5135.34,
  "total": 30812.03,
  "currency": "CAD",
  "lineItems": [
    {
      "description": "Training session",
      "quantity": 39,
      "unitPrice": 494.7,
      "lineTotal": 19293.3
    },
    {
      "description": "Content writing",
      "quantity": 35,
      "unitPrice": 55.51,
      "lineTotal": 1942.85
    },
    {
      "description": "License fee",
      "quantity": 13,
      "unitPrice": 341.58,
      "lineTotal": 4440.54
    }
  ],
  "createdAt": "2025-10-10T12:24:12.204Z"
}