curl --request GET \
--url https://api.wellapp.ai/v1/invoice-items \
--header 'Authorization: <authorization>'{
"data": [
{
"type": "invoice_item",
"id": "item_001",
"attributes": {
"line_id": "1",
"sku": "WM-1001",
"name": "Wireless Mouse",
"description": "Ergonomic wireless mouse with USB receiver",
"unit_price": 25,
"currency": "EUR",
"unit": "EA",
"min_quantity": 1,
"max_quantity": 500,
"tax": {
"rate": 20,
"category": "standard",
"scheme": "VAT"
},
"period": {
"start": "2025-06-26",
"end": "2025-06-27"
},
"created_at": "2025-05-11T13:42:12Z",
"updated_at": "2025-05-11T13:45:20Z"
},
"relationships": {
"invoices": {
"data": [
{
"type": "invoice",
"id": "invoice1"
}
]
},
"medias": {
"data": [
{
"type": "media",
"id": "media-1"
}
]
}
}
}
],
"included": [
{
"type": "invoice",
"id": "invoice1",
"attributes": {
"reference_number": "INV-2025-001",
"document_type": "commercial_invoice",
"document_type_code": "380",
"issue_date": "2025-01-15",
"due_date": "2025-02-15",
"local_currency": "EUR",
"local_totals": {
"subtotal": "1000.00",
"tax_total": "200.00",
"total_amount": "1200.00"
},
"terms": "Payment due within 30 days",
"billing_context": "subscription",
"payment_status": {
"paid": false,
"amount_paid": 0,
"amount_remaining": 1200
},
"status": "draft",
"description": "Professional services invoice for January 2025",
"created_at": "2025-01-15T10:30:00Z",
"updated_at": "2025-01-15T10:30:00Z"
}
},
{
"type": "media",
"id": "media-1",
"attributes": {
"media_type": "logo",
"is_primary": true,
"url": "https://cdn.example.com/product-images/wireless-mouse.jpg",
"created_at": "2025-05-11T13:00:00Z",
"updated_at": "2025-05-11T13:00:00Z"
}
}
],
"meta": {
"pagination": {
"total": 1,
"count": 1,
"per_page": 20,
"current_page": 1,
"total_pages": 1
}
}
}Retrieve a paginated list of invoice items with optional filtering, sorting, and relationship inclusion.
curl --request GET \
--url https://api.wellapp.ai/v1/invoice-items \
--header 'Authorization: <authorization>'{
"data": [
{
"type": "invoice_item",
"id": "item_001",
"attributes": {
"line_id": "1",
"sku": "WM-1001",
"name": "Wireless Mouse",
"description": "Ergonomic wireless mouse with USB receiver",
"unit_price": 25,
"currency": "EUR",
"unit": "EA",
"min_quantity": 1,
"max_quantity": 500,
"tax": {
"rate": 20,
"category": "standard",
"scheme": "VAT"
},
"period": {
"start": "2025-06-26",
"end": "2025-06-27"
},
"created_at": "2025-05-11T13:42:12Z",
"updated_at": "2025-05-11T13:45:20Z"
},
"relationships": {
"invoices": {
"data": [
{
"type": "invoice",
"id": "invoice1"
}
]
},
"medias": {
"data": [
{
"type": "media",
"id": "media-1"
}
]
}
}
}
],
"included": [
{
"type": "invoice",
"id": "invoice1",
"attributes": {
"reference_number": "INV-2025-001",
"document_type": "commercial_invoice",
"document_type_code": "380",
"issue_date": "2025-01-15",
"due_date": "2025-02-15",
"local_currency": "EUR",
"local_totals": {
"subtotal": "1000.00",
"tax_total": "200.00",
"total_amount": "1200.00"
},
"terms": "Payment due within 30 days",
"billing_context": "subscription",
"payment_status": {
"paid": false,
"amount_paid": 0,
"amount_remaining": 1200
},
"status": "draft",
"description": "Professional services invoice for January 2025",
"created_at": "2025-01-15T10:30:00Z",
"updated_at": "2025-01-15T10:30:00Z"
}
},
{
"type": "media",
"id": "media-1",
"attributes": {
"media_type": "logo",
"is_primary": true,
"url": "https://cdn.example.com/product-images/wireless-mouse.jpg",
"created_at": "2025-05-11T13:00:00Z",
"updated_at": "2025-05-11T13:00:00Z"
}
}
],
"meta": {
"pagination": {
"total": 1,
"count": 1,
"per_page": 20,
"current_page": 1,
"total_pages": 1
}
}
}curl -X GET "https://api.well.com/v1/invoice-items?include=media,invoices&filter[workspace_id]=550e8400-e29b-41d4-a716-446655440000&filter[created_at][from]=2025-01-01T00:00:00Z&filter[created_at][to]=2025-12-31T23:59:59Z&filter[updated_at][from]=2025-06-01T00:00:00Z&sort=-created_at&page[limit]=15&page[cursor]=eyJjcmVhdGVkX2F0IjoiMjAyNS0xMS0wMlQxMDozMDowMFoiLCJpZCI6Iml0ZW05LXV1aWQifQ==" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"
Bearer token for authentication
Include related resources in the response. Comma-separated values supported.
media, invoices Filter items created from this date/time
Filter items created up to this date/time
Filter items updated from this date/time
Filter items updated up to this date/time
Filter items by workspace ID
Filter items by external workspace ID
Sort items by field. Use - prefix for descending order.
created_at, -created_at, updated_at, -updated_at Page number for pagination
x >= 1Number of items per page
1 <= x <= 100List of invoice items retrieved successfully
Response schema for listing invoice items
Array of invoice items
Show child attributes
Resource type identifier
"invoice_item"Unique identifier for the invoice item
Show child attributes
Line identifier within the invoice
"1"
Stock Keeping Unit identifier
"WM-1001"
Product or service name
"Wireless Mouse"
Detailed description of the item
"Ergonomic wireless mouse with USB receiver"
Unit price in local currency
x >= 025
ISO 4217 currency code
"EUR"
Unit of measurement
"EA"
Minimum quantity allowed
x >= 01
Maximum quantity allowed
x >= 1500
Creation timestamp
"2025-05-11T13:42:12Z"
Last update timestamp
"2025-05-11T13:45:20Z"
Show child attributes
Related resources when included via the include parameter
Show child attributes
Related invoice resources when included
Show child attributes
"invoice"
Show child attributes
draft, sent, paid, cancelled Type of invoice document
commercial_invoice, credit_note, proforma_invoice UN/CEFACT code for the document type
380, 381, 326 Show child attributes
Show child attributes
Resource type identifier
"media"Unique identifier for the media
Show child attributes
Media filename
MIME type of the media file
File size in bytes
Media file URL
Creation timestamp
Last update timestamp
Metadata about the response