invoices
invoices
Page 5 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": 97,
"fromUserId": 25,
"toUserId": 95,
"invoiceNumber": "INV-2026-0097",
"status": "sent",
"issuedAt": "2026-04-05T13:55:49.766Z",
"dueAt": "2026-04-25T13:55:49.766Z",
"paidAt": null,
"subtotal": 30916.92,
"tax": 4637.54,
"total": 35554.46,
"currency": "EUR",
"lineItems": [
{
"description": "Research services",
"quantity": 38,
"unitPrice": 231.21,
"lineTotal": 8785.98
},
{
"description": "License fee",
"quantity": 7,
"unitPrice": 401.14,
"lineTotal": 2807.98
},
{
"description": "Research services",
"quantity": 26,
"unitPrice": 457.72,
"lineTotal": 11900.72
},
{
"description": "Research services",
"quantity": 12,
"unitPrice": 48.64,
"lineTotal": 583.68
},
{
"description": "Technical support",
"quantity": 18,
"unitPrice": 379.92,
"lineTotal": 6838.56
}
],
"createdAt": "2026-04-05T04:00:09.225Z"
},
{
"id": 98,
"fromUserId": 40,
"toUserId": 202,
"invoiceNumber": "INV-2025-0098",
"status": "sent",
"issuedAt": "2025-03-27T20:37:45.187Z",
"dueAt": "2025-04-17T20:37:45.187Z",
"paidAt": null,
"subtotal": 22828.69,
"tax": 0,
"total": 22828.69,
"currency": "GBP",
"lineItems": [
{
"description": "Data analysis",
"quantity": 5,
"unitPrice": 92.31,
"lineTotal": 461.55
},
{
"description": "Accounting services",
"quantity": 4,
"unitPrice": 464,
"lineTotal": 1856
},
{
"description": "Training session",
"quantity": 16,
"unitPrice": 392.78,
"lineTotal": 6284.48
},
{
"description": "Legal review",
"quantity": 29,
"unitPrice": 256.98,
"lineTotal": 7452.42
},
{
"description": "Design work",
"quantity": 24,
"unitPrice": 282.26,
"lineTotal": 6774.24
}
],
"createdAt": "2025-03-27T11:13:51.221Z"
},
{
"id": 99,
"fromUserId": 234,
"toUserId": 71,
"invoiceNumber": "INV-2024-0099",
"status": "viewed",
"issuedAt": "2024-11-07T14:28:21.702Z",
"dueAt": "2024-12-22T14:28:21.702Z",
"paidAt": null,
"subtotal": 34695.22,
"tax": 1734.76,
"total": 36429.98,
"currency": "AUD",
"lineItems": [
{
"description": "Software development",
"quantity": 23,
"unitPrice": 345.67,
"lineTotal": 7950.41
},
{
"description": "Project management",
"quantity": 37,
"unitPrice": 480.18,
"lineTotal": 17766.66
},
{
"description": "Legal review",
"quantity": 21,
"unitPrice": 174.55,
"lineTotal": 3665.55
},
{
"description": "Software development",
"quantity": 20,
"unitPrice": 265.63,
"lineTotal": 5312.6
}
],
"createdAt": "2024-11-07T03:22:11.206Z"
}
],
"meta": {
"page": 5,
"limit": 24,
"total": 300,
"totalPages": 13
},
"links": {
"self": "/api/v1/invoices?page=5&limit=24",
"first": "/api/v1/invoices?page=1&limit=24",
"last": "/api/v1/invoices?page=13&limit=24",
"next": "/api/v1/invoices?page=6&limit=24",
"prev": "/api/v1/invoices?page=4&limit=24"
}
}