invoices
invoices
Page 12 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": 265,
"fromUserId": 66,
"toUserId": 58,
"invoiceNumber": "INV-2026-0265",
"status": "paid",
"issuedAt": "2026-05-12T11:10:55.611Z",
"dueAt": "2026-06-04T11:10:55.611Z",
"paidAt": "2026-05-13T10:26:49.166Z",
"subtotal": 31821.98,
"tax": 3182.2,
"total": 35004.18,
"currency": "EUR",
"lineItems": [
{
"description": "Quality assurance",
"quantity": 21,
"unitPrice": 39.23,
"lineTotal": 823.83
},
{
"description": "Maintenance contract",
"quantity": 16,
"unitPrice": 378.81,
"lineTotal": 6060.96
},
{
"description": "License fee",
"quantity": 21,
"unitPrice": 83.45,
"lineTotal": 1752.45
},
{
"description": "Marketing services",
"quantity": 39,
"unitPrice": 308.04,
"lineTotal": 12013.56
},
{
"description": "Photography services",
"quantity": 1,
"unitPrice": 209.24,
"lineTotal": 209.24
},
{
"description": "Research services",
"quantity": 22,
"unitPrice": 498.27,
"lineTotal": 10961.94
}
],
"createdAt": "2026-05-12T02:49:22.608Z"
},
{
"id": 266,
"fromUserId": 113,
"toUserId": 230,
"invoiceNumber": "INV-2024-0266",
"status": "paid",
"issuedAt": "2024-11-18T00:34:40.443Z",
"dueAt": "2024-12-10T00:34:40.443Z",
"paidAt": "2024-11-22T04:46:04.880Z",
"subtotal": 33294.38,
"tax": 1664.72,
"total": 34959.1,
"currency": "CAD",
"lineItems": [
{
"description": "Technical support",
"quantity": 25,
"unitPrice": 421.2,
"lineTotal": 10530
},
{
"description": "Project management",
"quantity": 34,
"unitPrice": 472.28,
"lineTotal": 16057.52
},
{
"description": "Software development",
"quantity": 7,
"unitPrice": 327.14,
"lineTotal": 2289.98
},
{
"description": "Content writing",
"quantity": 12,
"unitPrice": 57.15,
"lineTotal": 685.8
},
{
"description": "Project management",
"quantity": 22,
"unitPrice": 48.79,
"lineTotal": 1073.38
},
{
"description": "License fee",
"quantity": 9,
"unitPrice": 295.3,
"lineTotal": 2657.7
}
],
"createdAt": "2024-11-17T11:29:28.239Z"
},
{
"id": 267,
"fromUserId": 111,
"toUserId": 8,
"invoiceNumber": "INV-2025-0267",
"status": "overdue",
"issuedAt": "2025-04-19T16:38:09.698Z",
"dueAt": "2025-05-23T16:38:09.698Z",
"paidAt": null,
"subtotal": 9336.48,
"tax": 0,
"total": 9336.48,
"currency": "GBP",
"lineItems": [
{
"description": "Documentation",
"quantity": 33,
"unitPrice": 251.22,
"lineTotal": 8290.26
},
{
"description": "License fee",
"quantity": 14,
"unitPrice": 74.73,
"lineTotal": 1046.22
}
],
"createdAt": "2025-04-18T18:56:10.372Z"
}
],
"meta": {
"page": 12,
"limit": 24,
"total": 300,
"totalPages": 13
},
"links": {
"self": "/api/v1/invoices?page=12&limit=24",
"first": "/api/v1/invoices?page=1&limit=24",
"last": "/api/v1/invoices?page=13&limit=24",
"next": "/api/v1/invoices?page=13&limit=24",
"prev": "/api/v1/invoices?page=11&limit=24"
}
}