> ## 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.

# GetCustomerInvoicesInput

> Input for fetching a customer's invoices from the connected billing provider.



**Kind**: `input`

## Fields

**`contractRef`**: `String`

Optional: only invoices for this contract (contract external ID or Received contract ID). Omit for all contracts.

---

**`customerId`**: `String!` (required)

The Stigg customer ref ID (or raw Received customer ID) to fetch invoices for

---

**`environmentId`**: `UUID`

The unique identifier for the environment

---

**`issuedAfter`**: `DateTime`

Optional: only invoices issued on or after this date, inclusive (ISO 8601)

---

**`issuedBefore`**: `DateTime`

Optional: only invoices issued on or before this date, inclusive (ISO 8601)

---

**`limit`**: `Int` = 100

Maximum number of invoices to return per page (default 100)

---

**`orderBy`**: `InvoiceOrderBy`

Field to sort by (default ISSUE_DATE)

---

**`orderDir`**: `InvoiceOrderDir`

Sort direction (default ASC)

---

**`page`**: `Int` = 0

Zero-based page index for offset pagination (default 0)

---

**`stateIn`**: `[SubscriptionInvoiceStatus!]`

Optional: only invoices in these states. Omit to return all states.



## Related topics

- [getCustomerInvoices](https://docs.stigg.io/graphql-reference/queries/getCustomerInvoices.md)
- [GetCustomerContractsInput](https://docs.stigg.io/graphql-reference/types/GetCustomerContractsInput.md)
- [GetCustomerByRefIdInput](https://docs.stigg.io/graphql-reference/types/GetCustomerByRefIdInput.md)
- [Get a list of invoices](https://docs.stigg.io/api-reference/invoices/get-a-list-of-invoices.md)
- [Get a single invoice by ID](https://docs.stigg.io/api-reference/invoices/get-a-single-invoice-by-id.md)


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