meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| api [2025/11/28 16:22] – API revision as of 28 NOV 25 47.54.102.121 | api [2026/04/11 21:49] (current) – 68.162.129.20 | ||
|---|---|---|---|
| Line 26: | Line 26: | ||
| * expenses | * expenses | ||
| * invoices | * invoices | ||
| + | * invoice_items | ||
| * locations | * locations | ||
| * networks | * networks | ||
| Line 100: | Line 101: | ||
| * expenses | * expenses | ||
| * invoices | * invoices | ||
| + | * invoice_items | ||
| * locations | * locations | ||
| * networks | * networks | ||
| Line 611: | Line 613: | ||
| ---- | ---- | ||
| + | |||
| + | ===== Invoice Items ''/ | ||
| + | |||
| + | **Purpose**: | ||
| + | |||
| + | **Available Endpoints**: | ||
| + | * '' | ||
| + | |||
| + | ==== Read Parameters (GET) ==== | ||
| + | |||
| + | ^ Parameter ^ Type ^ Description ^ | ||
| + | | invoice_id | integer | Filter items by invoice ID | | ||
| + | | item_id | integer | Get a specific line item by ID | | ||
| + | |||
| + | ==== Response Fields ==== | ||
| + | |||
| + | ^ Field ^ Type ^ Description ^ | ||
| + | | item_id | integer | Unique line item ID | | ||
| + | | item_name | string | Name/title of the line item | | ||
| + | | item_description | string | Description or notes | | ||
| + | | item_quantity | decimal | Quantity billed | | ||
| + | | item_price | decimal | Unit price | | ||
| + | | item_subtotal | decimal | quantity × price | | ||
| + | | item_tax | decimal | Tax amount applied | | ||
| + | | item_total | decimal | subtotal + tax | | ||
| + | | item_order | integer | Display sort order | | ||
| + | | item_tax_id | integer | Associated tax rate ID (0 = no tax) | | ||
| + | | item_product_id | integer | Associated product ID (0 = ad-hoc item) | | ||
| + | | item_invoice_id | integer | Parent invoice ID | | ||
| + | | item_created_at | datetime | Record creation timestamp | | ||
| + | | item_updated_at | datetime | Last update timestamp | | ||
| + | | item_archived_at | datetime | Archive timestamp (null if active) | | ||
| + | |||
| + | ==== Example - Get all items for an invoice ==== | ||
| + | |||
| + | <code bash> | ||
| + | curl " | ||
| + | </ | ||
| + | |||
| + | ==== Example Response ==== | ||
| + | |||
| + | <code json> | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | ] | ||
| + | } | ||
| + | </ | ||
| ==== Locations ''/ | ==== Locations ''/ | ||
| Line 971: | Line 1039: | ||
| | Expenses | ✓ | - | - | - | - | - | | | Expenses | ✓ | - | - | - | - | - | | ||
| | Invoices | ✓ | - | - | - | - | - | | | Invoices | ✓ | - | - | - | - | - | | ||
| + | | [[# | ||
| | Locations | ✓ | ✓ | - | - | - | - | | | Locations | ✓ | ✓ | - | - | - | - | | ||
| | Networks | ✓ | - | - | - | - | - | | | Networks | ✓ | - | - | - | - | - | | ||