---
title: "Get invoice detail"
method: GET
path: "/spaces/{space_id}/invoices/{invoice_id}"
---

# Get invoice detail

`GET /spaces/{space_id}/invoices/{invoice_id}`

Returns the line-item breakdown for a single invoice, looked up by the
invoice ID returned from `listInvoices`.
Requires a user JWT; API keys are not authorized.

## Path parameters

- `space_id` string, required
- `invoice_id` string, required

## Response `200`

Invoice detail

- InvoiceDetail — Line-item breakdown of an invoice.
  - `line_items` InvoiceLineItem[], required — Line items that make up the invoice.
    - `database_id` string — Ghost database ID this line item is attributed to, if any.
    - `product_type` string, required — Product category (e.g. storage, compute).
    - `detailed_spec` string — Additional spec details (e.g. tier, size).
    - `quantity` number, double, required — Quantity billed. Units depend on `product_type`.
    - `unit_price` number, double, required — Price per unit of `quantity`.
    - `line_total` number, double, required — Total charge for this line (`quantity` × `unit_price`).

## Other responses

- `default` — Error response

---

[API](https://skmtc.net/timescale/apis/ghost-api.md) · [All operations](https://skmtc.net/timescale/apis/ghost-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/timescale/ghost-api/revisions/808022f897be/schema)
