Skip to main content

outstandingSupplierInvoices

Requires at least one of the permissions purchase:payment:create, purchase:purchase_invoice:list or purchase:purchase_invoice:read.

Lists the unpaid purchase invoices of one supplier: the invoices a supplier payment can be allocated to. Needs the purchase invoices list permission (or supplier payments create, to allocate a payment) and the purchase invoices feature on your plan.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

query OutstandingSupplierInvoices($supplierId: ID!) {
outstandingSupplierInvoices(supplierId: $supplierId) {
id
invoiceNumber
supplierCode
supplierDisplayName
supplierName
status
allocations {
id
invoiceNumber
paymentNumber
createdAt
amount
appliedFromAdvance
}
}
}

Variables:

{
"supplierId": "id"
}

Response:

{
"data": {
"outstandingSupplierInvoices": [
{
"id": "id",
"invoiceNumber": "string",
"supplierCode": "string",
"supplierDisplayName": "string",
"supplierName": "string",
"status": "APPROVED",
"allocations": [
{
"id": "id",
"invoiceNumber": "string",
"paymentNumber": "string",
"createdAt": "2025-01-15T00:00:00Z",
"amount": 0,
"appliedFromAdvance": true
}
]
}
]
}
}
outstandingSupplierInvoices(
supplierId: ID!
): [Invoice!]!

Arguments​

outstandingSupplierInvoices.supplierId ● ID! non-null scalar​

The ID of the supplier.

Type​

Invoice object​

A sales invoice issued to a customer or a purchase invoice received from a supplier, with its lines, totals, status and settlement.