> ## Documentation Index
> Fetch the complete documentation index at: https://docs.unprice.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Get invoice

> Get an invoice with projected line items

<RequestExample>
  ```ts theme={null}
  const { result, error } = await unprice.invoices.get({
    invoiceId: "inv_1234567890"
  });

  if (error) {
    console.error(error.message);
    return;
  }

  console.log(result);
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "invoice": {
      "id": "inv_1234567890",
      "status": "paid",
      "total_amount": 100000000
    },
    "lines": []
  }
  ```
</ResponseExample>

## Request

<ParamField path="invoiceId" type="string" required>
  The invoice ID to fetch.
</ParamField>
