> This page is for Developer.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.bigcommerce.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.bigcommerce.com/_mcp/server.

# invoiceStats

GraphQL QUERY

Get the stats of an invoice.  
Requires IP authentication.

Reference: https://docs.bigcommerce.com/developer/api-reference/graphql/b2b/b2b-graphql/queries/invoice-stats

## GraphQL Schema

```graphql
query ExampleQuery($status: Int!, $companyIds: [Int], $decimalPlaces: Int) {
  invoiceStats(status: $status, companyIds: $companyIds, decimalPlaces: $decimalPlaces) {
    totalBalance
    overDueBalance
    hasDueInvoice
    hasOverDueInvoice
  }
}
```

## Variables

```json
{
  "status": 0,
  "companyIds": [],
  "decimalPlaces": 0
}
```