Show one invoice
lw_invoice_detailsRetrieve one invoice with line items grouped by asset for client resale billing, or preview an unbilled invoice; payment method details are never returned.
Instructions
Show one invoice with line items (bleed Billing/Invoice/details). The compact view groups charges by asset uniq_id so you can match them to clients for resale billing. Never returns payment method details. preview=true reads an invoice preview instead.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "lw_invoice_details"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Invoice id from lw_invoice_list. | |
| context | No | Auth context name (like lw-cli contexts). Omit to use the default. lw_contexts lists them. | |
| preview | No | Read the invoice preview (unbilled) instead. | |
| verbose | No | Return the raw (scrubbed) invoice. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| error | No | ||
| status | Yes | ||
| context | No | ||
| preview | No | ||
| summary | Yes | ||
| warnings | No | ||
| next_page | No | ||
| next_step | No | ||
| truncated | No | ||
| expires_at | No | ||
| confirm_token | No |