example-data.com
Menu
Browse docs and collections

Overview

invoices / #253

invoices #253

fromUserId
Oma Franecki-Johnson @oma.franecki-johnson
toUserId
Adan Weber @adan.weber61
invoiceNumber
INV-2025-0253
status
sent
issuedAt
dueAt
paidAt
subtotal
24649.63
tax
2464.96
total
27114.59
currency
EUR
lineItems
              [
  {
    "description": "Documentation",
    "quantity": 37,
    "unitPrice": 330.09,
    "lineTotal": 12213.33
  },
  {
    "description": "Project management",
    "quantity": 23,
    "unitPrice": 89.89,
    "lineTotal": 2067.47
  },
  {
    "description": "Photography services",
    "quantity": 23,
    "unitPrice": 329.53,
    "lineTotal": 7579.19
  },
  {
    "description": "Research services",
    "quantity": 12,
    "unitPrice": 232.47,
    "lineTotal": 2789.64
  }
]
            
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 253,
  "fromUserId": 242,
  "toUserId": 155,
  "invoiceNumber": "INV-2025-0253",
  "status": "sent",
  "issuedAt": "2025-11-29T08:43:58.079Z",
  "dueAt": "2026-01-23T08:43:58.079Z",
  "paidAt": null,
  "subtotal": 24649.63,
  "tax": 2464.96,
  "total": 27114.59,
  "currency": "EUR",
  "lineItems": [
    {
      "description": "Documentation",
      "quantity": 37,
      "unitPrice": 330.09,
      "lineTotal": 12213.33
    },
    {
      "description": "Project management",
      "quantity": 23,
      "unitPrice": 89.89,
      "lineTotal": 2067.47
    },
    {
      "description": "Photography services",
      "quantity": 23,
      "unitPrice": 329.53,
      "lineTotal": 7579.19
    },
    {
      "description": "Research services",
      "quantity": 12,
      "unitPrice": 232.47,
      "lineTotal": 2789.64
    }
  ],
  "createdAt": "2025-11-29T04:02:26.818Z"
}