Skip to content

Invoice GraphQL

Served by InvoiceModule on commercetools and InvoiceModule on medusa.

Each operation has its own page with its arguments, an example and the engines that serve it. The types link to their fields on the invoice types page.

Types

TypeDescription
InvoiceObjectAn amount a company owes, issued as a document and settled separately from the orders it bills.
InvoiceResultObjectPaginated result containing invoices
InvoiceStatusCountObjectThe number of invoices in one status
InvoiceStatusTypeEnumWhere an invoice stands, derived on read from what has been collected against it.

Fields on other types

This domain adds these fields to types that another domain defines.

BusinessUnit

FieldTypeDescription
invoiceInvoiceOne invoice of this company, by idArguments: id
invoicesInvoiceResult!Invoices billed to this company, newest first. Visible to whoever may see the company's orders: a standalone invoice belongs to no order, so whether it is the caller's own cannot be asked of it.Arguments: page, pageSize, searchTerm, status, invoiceDateFrom, invoiceDateUntil

Customer

FieldTypeDescription
invoiceInvoiceOne invoice billed to this person, by id. The signed-in caller's own, whichever customer this field was reached through: a Customer is addressable by email, and answering with somebody else's invoice because their address was asked for is not a question this should be able to answer.Arguments: id
invoicesInvoiceResult!Invoices billed to this person rather than to a company, newest firstArguments: page, pageSize, searchTerm, status, invoiceDateFrom, invoiceDateUntil