example-data.com
Menu
Browse docs and collections

Overview

invoices / #203

invoices #203

fromUserId
Earlene Wisozk @earlene.wisozk
toUserId
Jolie Abernathy @jolie_abernathy33
invoiceNumber
INV-2025-0203
status
paid
issuedAt
dueAt
paidAt
subtotal
20250.4
tax
0
total
20250.4
currency
EUR
lineItems
              [
  {
    "description": "Consulting services",
    "quantity": 22,
    "unitPrice": 491.46,
    "lineTotal": 10812.12
  },
  {
    "description": "Project management",
    "quantity": 23,
    "unitPrice": 410.36,
    "lineTotal": 9438.28
  }
]
            
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 203,
  "fromUserId": 216,
  "toUserId": 50,
  "invoiceNumber": "INV-2025-0203",
  "status": "paid",
  "issuedAt": "2025-11-19T01:57:24.462Z",
  "dueAt": "2025-12-01T01:57:24.462Z",
  "paidAt": "2025-11-26T11:00:30.936Z",
  "subtotal": 20250.4,
  "tax": 0,
  "total": 20250.4,
  "currency": "EUR",
  "lineItems": [
    {
      "description": "Consulting services",
      "quantity": 22,
      "unitPrice": 491.46,
      "lineTotal": 10812.12
    },
    {
      "description": "Project management",
      "quantity": 23,
      "unitPrice": 410.36,
      "lineTotal": 9438.28
    }
  ],
  "createdAt": "2025-11-18T07:31:21.613Z"
}