invoices / #223
- fromUserId
- 186
- toUserId
- 125
- invoiceNumber
- INV-2024-0223
- status
- paid
- issuedAt
- dueAt
- paidAt
- subtotal
- 8232.75
- tax
- 1646.55
- total
- 9879.3
- currency
- GBP
- lineItems
-
[ { "description": "Implementation services", "quantity": 7, "unitPrice": 224.62, "lineTotal": 1572.34 }, { "description": "Hardware supply", "quantity": 9, "unitPrice": 72.3, "lineTotal": 650.7 }, { "description": "Consulting services", "quantity": 9, "unitPrice": 45.29, "lineTotal": 407.61 }, { "description": "Research services", "quantity": 5, "unitPrice": 485.64, "lineTotal": 2428.2 }, { "description": "Research services", "quantity": 5, "unitPrice": 486.54, "lineTotal": 2432.7 }, { "description": "Research services", "quantity": 5, "unitPrice": 148.24, "lineTotal": 741.2 } ] - createdAt
Component variants
Medium
#223
#223
Small
invoices/223 curl -sS \
"https://example-data.com/api/v1/invoices/223" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/223"
);
const invoice = await res.json();import type { Invoice } from "https://example-data.com/types/invoices.d.ts";
const res = await fetch(
"https://example-data.com/api/v1/invoices/223"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/223"
)
invoice = res.json() {
"id": 223,
"fromUserId": 186,
"toUserId": 125,
"invoiceNumber": "INV-2024-0223",
"status": "paid",
"issuedAt": "2024-05-24T15:14:05.560Z",
"dueAt": "2024-06-17T15:14:05.560Z",
"paidAt": "2024-05-28T11:40:52.488Z",
"subtotal": 8232.75,
"tax": 1646.55,
"total": 9879.3,
"currency": "GBP",
"lineItems": [
{
"description": "Implementation services",
"quantity": 7,
"unitPrice": 224.62,
"lineTotal": 1572.34
},
{
"description": "Hardware supply",
"quantity": 9,
"unitPrice": 72.3,
"lineTotal": 650.7
},
{
"description": "Consulting services",
"quantity": 9,
"unitPrice": 45.29,
"lineTotal": 407.61
},
{
"description": "Research services",
"quantity": 5,
"unitPrice": 485.64,
"lineTotal": 2428.2
},
{
"description": "Research services",
"quantity": 5,
"unitPrice": 486.54,
"lineTotal": 2432.7
},
{
"description": "Research services",
"quantity": 5,
"unitPrice": 148.24,
"lineTotal": 741.2
}
],
"createdAt": "2024-05-23T16:16:17.178Z"
}