---
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

## Changes

- **2026-08-11** `42816b90d8d6` — 1 warning
  - added the new `signups_disabled` enum value to the `code` response property for the response status `default`
- **2026-06-23** `d0e78bae6ce1` — 1 warning
  - added the new `compute_limit_exceeded` enum value to the `code` response property for the response status `default`
- **2026-06-22** `bdf92f48aec1` — 1 info
  - added the optional property `code` to the response with the `default` status
- **2026-04-22** `cb6948daa61e` — 1 info
  - endpoint added
- **2026-04-17** `a7becb6668ec` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/timescale/apis/ghost-api/changes/spaces/:space_id/invoices/:invoice_id/get.md)

---

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