example-data.com
Menu
Browse docs and collections

Overview

invoices / #283

invoices #283

fromUserId
Ressie Howell-Hodkiewicz @ressie_howell-hodkiewicz35
toUserId
Kamryn Rogahn @kamryn_rogahn40
invoiceNumber
INV-2026-0283
status
paid
issuedAt
dueAt
paidAt
subtotal
7491.06
tax
599.28
total
8090.34
currency
USD
lineItems
              [
  {
    "description": "License fee",
    "quantity": 25,
    "unitPrice": 23.19,
    "lineTotal": 579.75
  },
  {
    "description": "Quality assurance",
    "quantity": 21,
    "unitPrice": 329.11,
    "lineTotal": 6911.31
  }
]
            
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 283,
  "fromUserId": 214,
  "toUserId": 170,
  "invoiceNumber": "INV-2026-0283",
  "status": "paid",
  "issuedAt": "2026-03-31T12:30:03.214Z",
  "dueAt": "2026-05-29T12:30:03.214Z",
  "paidAt": "2026-05-03T03:24:44.418Z",
  "subtotal": 7491.06,
  "tax": 599.28,
  "total": 8090.34,
  "currency": "USD",
  "lineItems": [
    {
      "description": "License fee",
      "quantity": 25,
      "unitPrice": 23.19,
      "lineTotal": 579.75
    },
    {
      "description": "Quality assurance",
      "quantity": 21,
      "unitPrice": 329.11,
      "lineTotal": 6911.31
    }
  ],
  "createdAt": "2026-03-30T21:28:17.768Z"
}