---
updatedAt: 2026-03-25T14:43:45.000Z
agentTools:
  projectIndex: https://developer.doit.com/llms.txt
---

# Invoices API

Programatically access cloud infrastructure invoices

DoiT [Invoices](https://help.doit.com/docs/billing/invoices-and-payments) provides you instant visibility into your Google Cloud, Google Workspace, AWS, Office 365 and other invoices without having to scan through separate cloud vendor billing portals.

The Invoices API helps you programmatically obtain your DoiT invoices for supported assets such as Google Cloud projects, Amazon Web Services accounts, Microsoft Azure subscriptions and more.

> 📘 Required Permissions
>
> Invoice Viewer (part of `Admin` and `Finance User` [pre-built roles](https://help.doit.com/docs/user-management/manage-roles#summary-pre-built-roles-and-permissions))

Invoices API has the following methods:

## invoices.list

The **[invoices.list](https://developer.doit.com/reference/listinvoices)** method returns a list of all invoices available for your billing profile, as described at the [Help Center](https://help.doit-intl.com/invoices-and-payments/managing-invoices).

You can filter the results using the following parameters:

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Parameter
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `minCreationTime`
      </td>

      <td>
        `string`  
        Min value for an invoice's creation time, in milliseconds since the POSIX epoch. If set, only invoices created after or at this timestamp are returned.
      </td>
    </tr>

    <tr>
      <td>
        `maxCreationTime`
      </td>

      <td>
        `string`  
        Max value for an invoice's creation time, in milliseconds since the POSIX epoch. If set, only invoices created before or at this timestamp are returned.
      </td>
    </tr>

    <tr>
      <td>
        `filter`
      </td>

      <td>
        `string`  
        An expression to filter the results of the request. The syntax is `key:[<value>]`. For example, the `platforms:google-cloud` will filter the list to only Google Cloud invoices.

        Supported filter keys:

        * `platform` - For example, `google-cloud`, `amazon-web-services`, `looker`
        * `dueDate` - The date when the payment is expected (in milliseconds since epoch).
        * `status` - Can be `PAID`, `OPEN` or `PAST DUE` [Learn more](https://developer.doit.com/docs/filters) about how to use filters.
      </td>
    </tr>
  </tbody>
</Table>

### Example

> 📘 YOUR\_API\_KEY
>
> Replace "YOUR\_API\_KEY" with your actual API key as explained at [Get Started](https://developer.doit.com/docs/getting-started)

Sample **invoices.list** request using both `minCreationTime` and `filter` parameters:

```shell invoices.list sample request
curl --location --request \
GET 'https://api.doit.com/billing/v1/invoices?minCreationTime=1596243660&filter=platform:amazon-web-services|platform:google-cloud' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {YOUR_API_KEY}' \
--data-raw ''
```

Sample **invoices.list** response:

```json invoices.list response
{
  "pageToken": "ZG9pdGRlLURFMTAwMDc4LUlOMjM0MDAxMDYz",
  "rowCount": 50,
  "invoices": [
    {
      "id": "IN204004836",
      "invoiceDate": 1598832000000,
      "platform": "amazon-web-services",
      "dueDate": 1601424000000,
      "status": "PAST DUE",
      "totalAmount": 68991.75,
      "balanceAmount": 80720.35,
      "currency": "USD",
      "url": "https://console.doit.com/customers/{CUSTOMER_ID}/invoices/{BILLING_PROFILE_KEY}/IN204004836"
    },
    {
      "id": "IN204004665",
      "invoiceDate": 1598832000000,
      "platform": "google-cloud",
      "dueDate": 1601424000000,
      "status": "PAST DUE",
      "totalAmount": 6804.56,
      "balanceAmount": 7961.34,
      "currency": "USD",
      "url": "https://console.doit.com/customers/{CUSTOMER_ID}/invoices/{BILLING_PROFILE_KEY}/IN204004665"
    },
  ]
}
```

## invoices.get

Get the full details of an individual invoice using the invoice number.

### Example

Sample **[invoices.get](https://developer.doit.com/reference/getinvoice)** request

```shell reports.get sample request
curl --location --request GET 'https://api.doit.com/billing/v1/invoices/IN204004836' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {YOUR_API_KEY}' \
--data-raw ''
```

Sample **invoices.get** response:

```json invoices.get sample response
{
  "id": "IN204004836",
  "invoiceDate": 1598832000000,
  "platform": "amazon-web-services",
  "dueDate": 1601424000000,
  "status": "PAST DUE",
  "totalAmount": 10464.36,
  "balanceAmount": 80720.35,
  "currency": "USD",
  "url": "https://console.doit.com/customers/{CUSTOMER_ID}/invoices/{BILLING_PROFILE_KEY}/IN204004836",
  "lineItems": [
    {
      "type": "amazon-web-services",
      "description": "Amazon Web Services",
      "price": 5825.16,
      "qty": 1,
      "currency": "USD",
      "details": "Cover 1 month"
    },
    {
      "type": "amazon-web-services",
      "description": "Amazon Web Services",
      "price": 4639.2,
      "qty": 1,
      "currency": "USD",
      "details": "Cover 1 month"
    }
  ]
}
```

**Response Body**\
If successful, the response body contains an instance of `Invoice`

```json
{
	"id": string,
	"invoiceDate": number,
	"platform": string,
	"dueDate": number,
	"status": string,
	"totalAmount": float,
	"balanceAmount": float,
	"currency": string,
	"url": string,
	"lineItems": [ object (lineItem) ]
}
```

Every invoice will include at least one or more `lineItems`:

```json lineItem Object
{
	"type": string,
	"description": string,
	"price": float,
	"qty": number,
	"currency": string
}
```

Response Body Fields

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Field
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `id`
      </td>

      <td>
        `string`  
        Unique invoice identifier (often referred to as invoice number)
      </td>
    </tr>

    <tr>
      <td>
        `invoiceDate`
      </td>

      <td>
        `number`  
        Output only. The time when this invoice was issued, in milliseconds since the epoch.`
      </td>
    </tr>

    <tr>
      <td>
        `dueDate`
      </td>

      <td>
        `number`  
        The last day to pay the invoice, in milliseconds since the epoch
      </td>
    </tr>

    <tr>
      <td>
        `status`
      </td>

      <td>
        `string`  
        Can be one of the following - `OPEN`, `PAST DUE`, or `PAID`
      </td>
    </tr>

    <tr>
      <td>
        `totalAmount`
      </td>

      <td>
        `float`  
        Total invoiced and payable amount
      </td>
    </tr>

    <tr>
      <td>
        `balanceAmount`
      </td>

      <td>
        `float`  
        The open balance for this invoice. For example, if the invoice total is 1,000 USD and only 850 USD was paid, the `balanceAmount` would be 150 USD.
      </td>
    </tr>

    <tr>
      <td>
        `currency`
      </td>

      <td>
        `string`  
        The currency used for the selected invoice. The currency is set on the billing profile level. More about [billing profiles](https://help.doit.com/invoices-and-payments/setting-up-a-new-billing-profile)
      </td>
    </tr>

    <tr>
      <td>
        `url`
      </td>

      <td>
        `string`  
        The URL of the [invoice details page](https://help.doit.com/docs/billing/invoices-and-payments/managing-invoices) in the DoiT console. You can download the PDF invoice from the invoice details page.
      </td>
    </tr>

    <tr>
      <td>
        `platform`
      </td>

      <td>
        `string`  
        The invoice's cloud platform
      </td>
    </tr>

    <tr>
      <td>
        `lineItems`
      </td>

      <td>
        `Array`  
        lineItems.type  
        lineItems.description  
        lineItems.price  
        lineItems.qty  
        lineItems.currency  
        lineItems.details
      </td>
    </tr>
  </tbody>
</Table>