For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dev Portal
DocsAPI ReferenceLearnCommunityChangelog
DocsAPI ReferenceLearnCommunityChangelog
    • About Our APIs
  • REST
    • Overview
  • GraphQL
    • Overview
      • Playground
          • QUERYcompanyRoles
          • QUERYcompanyRole
          • QUERYcompanyPermissions
          • QUERYaccountSettings
          • QUERYcustomerAccountSettings
          • QUERYinvoices
          • QUERYinvoice
          • QUERYinvoiceStats
          • QUERYinvoiceCustomerInformation
          • QUERYinvoicePaymentModules
          • QUERYinvoiceBcOrderAllowMethods
          • QUERYinvoicePaymentBcCart
          • QUERYinvoicePaymentFees
          • QUERYreceipts
          • QUERYreceipt
          • QUERYallReceiptLines
          • QUERYreceiptLine
          • QUERYreceiptLines
          • QUERYorder
          • QUERYallOrders
          • QUERYorderProducts
          • QUERYorderedProducts
          • QUERYcustomerOrders
          • QUERYcustomerOrder
          • QUERYcreatedByUser
          • QUERYshoppingLists
          • QUERYshoppingList
          • QUERYshoppingListsIdName
          • QUERYcustomerShoppingLists
          • QUERYcustomerShoppingList
          • QUERYcustomerShoppingListsIdName
          • QUERYcompanyExtraFields
          • QUERYuserCompany
          • QUERYcompanyValidateEmail
          • QUERYcompanyUserInfo
          • QUERYaccountFormFields
          • QUERYcompanyCreditConfig
          • QUERYcompanyPaymentTerms
          • QUERYcompanySubsidiaries
          • QUERYsuperAdminCompanies
          • QUERYsuperAdminMasquerading
          • QUERYquotes
          • QUERYcustomerQuotes
          • QUERYquote
          • QUERYquoteUserStoreInfo
          • QUERYquoteConfig
          • QUERYquoteExtraFieldsConfig
          • QUERYusers
          • QUERYuser
          • QUERYuserEmailCheck
          • QUERYcustomerEmailCheck
          • QUERYuserExtraFields
          • QUERYcurrentUser
          • QUERYcustomerInfo
          • QUERYuserLoginState
          • QUERYuserMasqueradingCompany
          • QUERYorderStatuses
          • QUERYbcOrderStatuses
          • QUERYcurrencies
          • QUERYautoLoader
          • QUERYstoreLimitations
          • QUERYstoreBasicInfo
          • QUERYstorefrontScript
          • QUERYstorefrontDefaultLanguage
          • QUERYstorefrontProductSettings
          • QUERYstorefrontSettings
          • QUERYstoreConfigSwitchStatus
          • QUERYstoreCheckoutConfig
          • QUERYstorefrontConfig
          • QUERYstorefrontConfigs
          • QUERYproductVariantsInfo
          • QUERYvariantSku
          • QUERYproductsInventory
          • QUERYproductsLoad
          • QUERYproductsSearch
          • QUERYtaxZoneRates
          • QUERYproductPurchasable
          • QUERYvalidateProduct
          • QUERYvalidateProducts
          • QUERYpriceProducts
          • QUERYaddresses
          • QUERYaddress
          • QUERYcountries
          • QUERYdefaultShippingAddress
          • QUERYdefaultBillingAddress
          • QUERYcustomerAddresses
          • QUERYcustomerAddress
          • QUERYaddressConfig
          • QUERYaddressExtraFields
  • MCP
    • Overview
Dev Portal
LogoLogo
GraphQLB2BQueries

invoices

Example Query
1query ExampleQuery($companyIds: [Int], $offset: Int, $before: String, $after: String, $first: Int, $last: Int, $search: String, $orderBy: String, $invoiceNumber: String, $type: String, $orderNumber: String, $purchaseOrderNumber: String, $externalCustomerId: String, $storeHash: String, $externalId: String, $status: [String], $beginDateAt: Decimal, $endDateAt: Decimal, $idIn: String, $beginDueDateAt: Decimal, $endDueDateAt: Decimal) {
2 invoices(companyIds: $companyIds, offset: $offset, before: $before, after: $after, first: $first, last: $last, search: $search, orderBy: $orderBy, invoiceNumber: $invoiceNumber, type: $type, orderNumber: $orderNumber, purchaseOrderNumber: $purchaseOrderNumber, externalCustomerId: $externalCustomerId, storeHash: $storeHash, externalId: $externalId, status: $status, beginDateAt: $beginDateAt, endDateAt: $endDateAt, idIn: $idIn, beginDueDateAt: $beginDueDateAt, endDueDateAt: $endDueDateAt) {
3 pageInfo {
4 hasNextPage
5 hasPreviousPage
6 startCursor
7 endCursor
8 }
9 edges {
10 node
11 cursor
12 }
13 totalCount
14 }
15}
Variables
1{
2 "companyIds": [],
3 "offset": 0,
4 "before": "example",
5 "after": "example",
6 "first": 0,
7 "last": 0,
8 "search": "example",
9 "orderBy": "example",
10 "invoiceNumber": "example",
11 "type": "example",
12 "orderNumber": "example",
13 "purchaseOrderNumber": "example",
14 "externalCustomerId": "example",
15 "storeHash": "example",
16 "externalId": "example",
17 "status": [
18 "example"
19 ],
20 "beginDateAt": "Decimal",
21 "endDateAt": "Decimal",
22 "idIn": "example",
23 "beginDueDateAt": "Decimal",
24 "endDueDateAt": "Decimal"
25}
Example response
1{
2 "data": {
3 "invoices": {
4 "pageInfo": {
5 "hasNextPage": true,
6 "hasPreviousPage": true,
7 "startCursor": "example",
8 "endCursor": "example"
9 },
10 "edges": [
11 {
12 "node": {
13 "id": null,
14 "createdAt": null,
15 "updatedAt": null,
16 "storeHash": null,
17 "customerId": null,
18 "externalId": null,
19 "externalCustomerId": null,
20 "invoiceNumber": null,
21 "type": null,
22 "dueDate": null
23 },
24 "cursor": "example"
25 }
26 ],
27 "totalCount": 0
28 }
29 }
30}
Get the list of invoices. Requires IP authentication.
Was this page helpful?
Previous

customerAccountSettings

Next

invoice

Built with

Arguments

companyIdslist of optional IntegersOptional
Filter by one or more company IDs.
offsetIntegerOptional
beforeStringOptional
afterStringOptional
firstIntegerOptional
lastIntegerOptional
searchStringOptional
orderByStringOptional
Ordering
invoiceNumberStringOptional
typeStringOptional
orderNumberStringOptional
purchaseOrderNumberStringOptional
externalCustomerIdStringOptional
storeHashStringOptional
externalIdStringOptional
statuslist of optional StringsOptional
beginDateAtDecimalOptional
endDateAtDecimalOptional
idInStringOptional
beginDueDateAtDecimalOptional
endDueDateAtDecimalOptional

Returns

an optional InvoiceTypeCountableConnection
pageInfoPageInfo
Pagination data for this connection.
edgeslist of InvoiceTypeCountableEdges
totalCountInteger
A total count of items in the collection.