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

# InvoiceDTO

> A customer's invoice, resolved live from the connected billing provider.



**Kind**: `object`

## Fields

**`contractExternalId`**: `String`

External ID of the contract the invoice belongs to: your contract ref when mapped, otherwise the Received contract ID

---

**`currency`**: `String`

ISO-4217 currency code of the invoice

---

**`customerExternalId`**: `String`

External ID of the customer the invoice belongs to: your customer ref when mapped, otherwise the Received customer ID

---

**`discount`**: `Float`

Total discount amount

---

**`dueDate`**: `DateTime`

Date payment is due (ISO 8601)

---

**`invoiceExternalId`**: `String`

External ID for the invoice: the mapped external ID when one exists, otherwise the invoice ID

---

**`invoiceId`**: `String!`

The billing provider (Received) invoice ID

---

**`invoiceNumber`**: `String`

The invoice document number (or draft number while the invoice is unissued)

---

**`issueDate`**: `DateTime`

Date the invoice was issued (ISO 8601)

---

**`lineItems`**: `[InvoiceLineItemDTO!]!`

The invoice line items

---

**`paidDate`**: `DateTime`

Date the invoice was reconciled as paid (ISO 8601); present once reconciled

---

**`state`**: `SubscriptionInvoiceStatus!`

Invoice status (open, paid, or canceled)

---

**`subtotal`**: `Float`

Pre-tax subtotal

---

**`tax`**: `Float`

Total tax amount

---

**`total`**: `Float`

Total amount due



## Related topics

- [Invoice management](https://docs.stigg.io/documentation/managing-customers-and-subscriptions/contracts/invoice-management.md)
- [InvoiceOrderBy](https://docs.stigg.io/graphql-reference/types/InvoiceOrderBy.md)
- [InvoicesPageDTO](https://docs.stigg.io/graphql-reference/types/InvoicesPageDTO.md)
- [Mark invoice as paid](https://docs.stigg.io/api-reference/invoices/mark-invoice-as-paid.md)
- [InvoiceLine](https://docs.stigg.io/graphql-reference/types/InvoiceLine.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.