example-data.com
Menu
Browse docs and collections

Overview

invoices / #291

invoices #291

fromUserId
Tillman Breitenberg @tillman_breitenberg54
toUserId
Kevon Dickinson @kevon.dickinson
invoiceNumber
INV-2026-0291
status
cancelled
issuedAt
dueAt
paidAt
subtotal
37442.13
tax
5616.32
total
43058.45
currency
GBP
lineItems
              [
  {
    "description": "Legal review",
    "quantity": 29,
    "unitPrice": 365.31,
    "lineTotal": 10593.99
  },
  {
    "description": "Project management",
    "quantity": 40,
    "unitPrice": 114.57,
    "lineTotal": 4582.8
  },
  {
    "description": "Marketing services",
    "quantity": 40,
    "unitPrice": 12.81,
    "lineTotal": 512.4
  },
  {
    "description": "Research services",
    "quantity": 34,
    "unitPrice": 86.22,
    "lineTotal": 2931.48
  },
  {
    "description": "Legal review",
    "quantity": 31,
    "unitPrice": 417.42,
    "lineTotal": 12940.02
  },
  {
    "description": "Data analysis",
    "quantity": 12,
    "unitPrice": 490.12,
    "lineTotal": 5881.44
  }
]
            
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 291,
  "fromUserId": 145,
  "toUserId": 218,
  "invoiceNumber": "INV-2026-0291",
  "status": "cancelled",
  "issuedAt": "2026-05-07T01:01:31.456Z",
  "dueAt": "2026-05-16T01:01:31.456Z",
  "paidAt": null,
  "subtotal": 37442.13,
  "tax": 5616.32,
  "total": 43058.45,
  "currency": "GBP",
  "lineItems": [
    {
      "description": "Legal review",
      "quantity": 29,
      "unitPrice": 365.31,
      "lineTotal": 10593.99
    },
    {
      "description": "Project management",
      "quantity": 40,
      "unitPrice": 114.57,
      "lineTotal": 4582.8
    },
    {
      "description": "Marketing services",
      "quantity": 40,
      "unitPrice": 12.81,
      "lineTotal": 512.4
    },
    {
      "description": "Research services",
      "quantity": 34,
      "unitPrice": 86.22,
      "lineTotal": 2931.48
    },
    {
      "description": "Legal review",
      "quantity": 31,
      "unitPrice": 417.42,
      "lineTotal": 12940.02
    },
    {
      "description": "Data analysis",
      "quantity": 12,
      "unitPrice": 490.12,
      "lineTotal": 5881.44
    }
  ],
  "createdAt": "2026-05-06T01:09:09.815Z"
}