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

# InvoiceType

GraphQL object

Reference: https://docs.bigcommerce.com/developer/api-reference/graphql/b2b/b2b-graphql/types/objects/invoice-type

## Fields

- `id`
- `createdAt` — The created timestamp of the invoice
- `updatedAt` — The updated timestamp of the invoice
- `storeHash` — The store's store hash
- `customerId` — The customer id of the invoice
- `externalId` — The external id of the invoice
- `externalCustomerId` — The external customer id of the invoice
- `invoiceNumber` — The invoice number of the invoice
- `type` — The type of the invoice
- `dueDate` — The due date of the invoice
- `status` — The status of the invoice. (0: open, 1: partial paid, 2: completed)
- `orderNumber` — The order number of the invoice
- `purchaseOrderNumber` — The purchase order number of the invoice
- `details` — The details of the invoice
- `pendingPaymentCount` — The pending payment count of the invoice
- `source` — The source of the invoice
- `originalBalance` — The original balance of the invoice
- `openBalance` — The open balance of the invoice
- `notAllowedPay` — Can this invoice allow payment
- `bcInformation` — The information of the invoice
- `extraFields` — The extra fields of the invoice
- `timeOffset` — The time offset
- `storeInfo` — The store information
- `channelId` — The channel id of the invoice
- `channelName` — The channel name of the invoice
- `companyInfo` — Company information of invoice
- `orderUserId` — The order user id

## Definition

```graphql
type InvoiceType implements Node {
  id: String!
  createdAt: Int
  updatedAt: Int
  storeHash: String
  customerId: String
  externalId: String
  externalCustomerId: String
  invoiceNumber: String
  type: String
  dueDate: Int
  status: Int
  orderNumber: String
  purchaseOrderNumber: String
  details: GenericScalar
  pendingPaymentCount: Int
  source: Int
  originalBalance: InvoiceBalanceType
  openBalance: InvoiceBalanceType
  notAllowedPay: Int
  bcInformation: BCInfomation
  extraFields: [InvoiceExtraFieldsType]
  timeOffset: Int
  storeInfo: InvoiceStoreInfoType
  channelId: Int
  channelName: String
  companyInfo: CompanyInfoType
  orderUserId: Int
}
```