invoices
invoices
Page 8 of 13.
Overview
Request
curl example
curl -sS \ "https://example-data.com/api/v1/invoices?limit=25"
JavaScript example
const res = await fetch(
"https://example-data.com/api/v1/invoices?limit=25"
);
const { data, meta } = 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, ListEnvelope } from "./types/invoices";
const res = await fetch(
"https://example-data.com/api/v1/invoices?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Invoice>; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/invoices",
params={"limit": 25},
)
data = res.json() Response
{
"data": [
{
"id": 169,
"fromUserId": 11,
"toUserId": 144,
"invoiceNumber": "INV-2024-0169",
"status": "sent",
"issuedAt": "2024-07-22T07:16:43.687Z",
"dueAt": "2024-08-29T07:16:43.687Z",
"paidAt": null,
"subtotal": 16784.66,
"tax": 1342.77,
"total": 18127.43,
"currency": "EUR",
"lineItems": [
{
"description": "Project management",
"quantity": 7,
"unitPrice": 423.26,
"lineTotal": 2962.82
},
{
"description": "System integration",
"quantity": 28,
"unitPrice": 98.53,
"lineTotal": 2758.84
},
{
"description": "Training session",
"quantity": 4,
"unitPrice": 387.29,
"lineTotal": 1549.16
},
{
"description": "Design work",
"quantity": 28,
"unitPrice": 339.78,
"lineTotal": 9513.84
}
],
"createdAt": "2024-07-21T20:28:04.186Z"
},
{
"id": 170,
"fromUserId": 97,
"toUserId": 211,
"invoiceNumber": "INV-2026-0170",
"status": "overdue",
"issuedAt": "2026-03-12T14:12:43.875Z",
"dueAt": "2026-04-16T14:12:43.875Z",
"paidAt": null,
"subtotal": 7998.66,
"tax": 399.93,
"total": 8398.59,
"currency": "AUD",
"lineItems": [
{
"description": "Content writing",
"quantity": 7,
"unitPrice": 457.35,
"lineTotal": 3201.45
},
{
"description": "Accounting services",
"quantity": 11,
"unitPrice": 436.11,
"lineTotal": 4797.21
}
],
"createdAt": "2026-03-11T20:07:41.759Z"
},
{
"id": 171,
"fromUserId": 199,
"toUserId": 137,
"invoiceNumber": "INV-2025-0171",
"status": "sent",
"issuedAt": "2025-04-23T03:29:55.263Z",
"dueAt": "2025-05-02T03:29:55.263Z",
"paidAt": null,
"subtotal": 26575.88,
"tax": 1328.79,
"total": 27904.67,
"currency": "GBP",
"lineItems": [
{
"description": "Photography services",
"quantity": 38,
"unitPrice": 483.19,
"lineTotal": 18361.22
},
{
"description": "Software development",
"quantity": 18,
"unitPrice": 456.37,
"lineTotal": 8214.66
}
],
"createdAt": "2025-04-22T06:45:24.435Z"
}
],
"meta": {
"page": 8,
"limit": 24,
"total": 300,
"totalPages": 13
},
"links": {
"self": "/api/v1/invoices?page=8&limit=24",
"first": "/api/v1/invoices?page=1&limit=24",
"last": "/api/v1/invoices?page=13&limit=24",
"next": "/api/v1/invoices?page=9&limit=24",
"prev": "/api/v1/invoices?page=7&limit=24"
}
}