example-data.com
Menu
Browse docs and collections

Overview

invoices / #154

invoices #154

fromUserId
Camron O'Conner @camron.oconner54
toUserId
Samson Stroman @samson_stroman
invoiceNumber
INV-2025-0154
status
sent
issuedAt
dueAt
paidAt
subtotal
5288.57
tax
793.29
total
6081.86
currency
USD
lineItems
              [
  {
    "description": "System integration",
    "quantity": 11,
    "unitPrice": 284.47,
    "lineTotal": 3129.17
  },
  {
    "description": "Consulting services",
    "quantity": 10,
    "unitPrice": 149.72,
    "lineTotal": 1497.2
  },
  {
    "description": "Implementation services",
    "quantity": 14,
    "unitPrice": 47.3,
    "lineTotal": 662.2
  }
]
            
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 154,
  "fromUserId": 94,
  "toUserId": 52,
  "invoiceNumber": "INV-2025-0154",
  "status": "sent",
  "issuedAt": "2025-06-26T18:57:27.370Z",
  "dueAt": "2025-07-03T18:57:27.370Z",
  "paidAt": null,
  "subtotal": 5288.57,
  "tax": 793.29,
  "total": 6081.86,
  "currency": "USD",
  "lineItems": [
    {
      "description": "System integration",
      "quantity": 11,
      "unitPrice": 284.47,
      "lineTotal": 3129.17
    },
    {
      "description": "Consulting services",
      "quantity": 10,
      "unitPrice": 149.72,
      "lineTotal": 1497.2
    },
    {
      "description": "Implementation services",
      "quantity": 14,
      "unitPrice": 47.3,
      "lineTotal": 662.2
    }
  ],
  "createdAt": "2025-06-26T09:38:47.742Z"
}