example-data.com
Menu
Browse docs and collections

Overview

invoices / #163

invoices #163

fromUserId
Jennifer Hoeger @jennifer.hoeger
toUserId
Judy Hackett @judy_hackett49
invoiceNumber
INV-2026-0163
status
viewed
issuedAt
dueAt
paidAt
subtotal
7793.6
tax
1169.04
total
8962.64
currency
AUD
lineItems
              [
  {
    "description": "Maintenance contract",
    "quantity": 11,
    "unitPrice": 302.74,
    "lineTotal": 3330.14
  },
  {
    "description": "Consulting services",
    "quantity": 25,
    "unitPrice": 170.86,
    "lineTotal": 4271.5
  },
  {
    "description": "Design work",
    "quantity": 2,
    "unitPrice": 95.98,
    "lineTotal": 191.96
  }
]
            
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 163,
  "fromUserId": 119,
  "toUserId": 13,
  "invoiceNumber": "INV-2026-0163",
  "status": "viewed",
  "issuedAt": "2026-02-02T22:38:47.618Z",
  "dueAt": "2026-02-17T22:38:47.618Z",
  "paidAt": null,
  "subtotal": 7793.6,
  "tax": 1169.04,
  "total": 8962.64,
  "currency": "AUD",
  "lineItems": [
    {
      "description": "Maintenance contract",
      "quantity": 11,
      "unitPrice": 302.74,
      "lineTotal": 3330.14
    },
    {
      "description": "Consulting services",
      "quantity": 25,
      "unitPrice": 170.86,
      "lineTotal": 4271.5
    },
    {
      "description": "Design work",
      "quantity": 2,
      "unitPrice": 95.98,
      "lineTotal": 191.96
    }
  ],
  "createdAt": "2026-02-02T18:35:29.030Z"
}