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

# vantage_invoice (Resource)

> Terraform resource reference for vantage_invoice (Resource). Auto-generated from the vantage-sh/terraform-provider-vantage repository.

<Note>
  This page is auto-generated based on the official [Terraform documentation](https://registry.terraform.io/providers/vantage-sh/vantage/latest/docs).
</Note>

## Overview

Use this resource with the [Vantage Terraform provider](/terraform). For installation and authentication, see the [Terraform provider quickstart](/terraform#quickstart). The schema below is generated directly from the provider source.

## Example Usage

```terraform theme={null}
data "vantage_invoices" "all_invoices" {}

resource "vantage_invoice" "demo_invoice" {
  account_token        = "acct_f87c7c90365bcdcd"
  billing_period_start = "2024-01-01"
  billing_period_end   = "2024-01-31"
}
```

## Schema

### Required

* `account_token` (String) Token of the managed account to invoice
* `billing_period_end` (String) End date of billing period (YYYY-MM-DD)
* `billing_period_start` (String) Start date of billing period (YYYY-MM-DD)

### Read-Only

* `account_name` (String) Name of the managed account this invoice belongs to
* `created_at` (String) The date and time, in UTC, the invoice was created. ISO 8601 formatted.
* `id` (String) The id of the invoice
* `invoice_number` (String) Sequential invoice number for the MSP account
* `msp_account_token` (String) Token of the MSP account that owns this invoice
* `status` (String) Current status of the invoice
* `token` (String) The token of the invoice
* `total` (String) Total amount for the invoice period
* `updated_at` (String) The date and time, in UTC, the invoice was last updated. ISO 8601 formatted.
