---
title: dots.v2.customers.my.invoices.byInvoice_uuid().get()
description: Retrieve an Invoice by UUID
product: Reference
url: https://docs.digitalocean.com/reference/dots/reference/billing/invoices-get-byuuid/
last_updated: "2026-11-18"
---

> **For AI agents:** The documentation index is at [https://docs.digitalocean.com/llms.txt](https://docs.digitalocean.com/llms.txt). Markdown versions of pages use the same URL with `index.html.md` in place of the HTML page (for example, append `index.html.md` to the directory path instead of opening the HTML document).

# dots.v2.customers.my.invoices.byInvoice_uuid().get()

Generated on 18 Nov 2026 from DoTs version [`v1.25.0`](https://github.com/digitalocean/dots/releases/tag/v1.25.0)

## Usage

```typescript
client.v2.customers.my.invoices.byInvoice_uuid(invoice_uuid).get(requestConfiguration?: RequestConfiguration<WithInvoice_uuItemRequestBuilderGetQueryParameters>): Promise<undefined | WithInvoice_uuGetResponse>
```

## Description

To retrieve the invoice items for an invoice, send a GET request to [`/v2/customers/my/invoices/{invoice_uuid}`](https://docs.digitalocean.com/reference/api/reference/billing/index.html.md#invoices_get_byUUID).

## Parameters

### Path Parameters

`invoice_uuid` string required

Example: `22737513-0ea7-4206-8ceb-98a575af7681`

UUID of the invoice

### Query Parameters

`perPage` integer optional

Example: `2`

Number of items returned per page

Default: `20`

Min: `1`

Max: `200`

`page` integer optional

Example: `1`

Which 'page' of paginated results to return.

Default: `1`

Min: `1`

## Request Sample

## Show Request Sample

```typescript
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
    createDigitalOceanClient,
    DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";

const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);

const response = await client.v2.customers.my.invoices
    .byInvoice_uuid("22737513-0ea7-4206-8ceb-98a575af7681").get();
```

## Pagination

This method returns paginated results. The response includes a `links.pages` object with URLs for navigating between pages. To retrieve the next page, parse the `next` URL and pass the `page` query parameter:

```typescript
let response = await client.v2.customers.my.invoices
    .byInvoice_uuid("22737513-0ea7-4206-8ceb-98a575af7681").get();
let pages = response?.links?.pages;

while (pages && "next" in pages && typeof pages.next === "string") {
    const page = Number(new URL(pages.next).searchParams.get("page"));
    response = await client.v2.customers.my.invoices
        .byInvoice_uuid("22737513-0ea7-4206-8ceb-98a575af7681").get({
        queryParameters: {
            page,
        },
    });
    pages = response?.links?.pages;
}
```

## Response Example

## Show Response Example

```json
{
  "invoice_items": [
    {
      "product": "Kubernetes Clusters",
      "resource_uuid": "711157cb-37c8-4817-b371-44fa3504a39c",
      "group_description": "my-doks-cluster",
      "description": "a56e086a317d8410c8b4cfd1f4dc9f82",
      "amount": "12.34",
      "duration": "744",
      "duration_unit": "Hours",
      "start_time": "2020-01-01T00:00:00Z",
      "end_time": "2020-02-01T00:00:00Z"
    },
    {
      "product": "Spaces Subscription",
      "description": "Spaces ($5/mo 250GB storage & 1TB bandwidth)",
      "amount": "34.45",
      "duration": "744",
      "duration_unit": "Hours",
      "start_time": "2020-01-01T00:00:00Z",
      "end_time": "2020-02-01T00:00:00Z"
    }
  ],
  "links": {
    "pages": {
      "next": "https://api.digitalocean.com/v2/customers/my/invoices/22737513-0ea7-4206-8ceb-98a575af7681?page=2&per_page=2",
      "last": "https://api.digitalocean.com/v2/customers/my/invoices/22737513-0ea7-4206-8ceb-98a575af7681?page=3&per_page=2"
    }
  },
  "meta": {
    "total": 6
  }
}
```

## More Information

See [`/v2/customers/my/invoices/{invoice_uuid}`](https://docs.digitalocean.com/reference/api/reference/billing/index.html.md#invoices_get_byUUID) in the API reference for additional detail on responses, headers, parameters, and more.