CustomerLifetimeFacts
A customer's lifetime order, invoice and payment figures, worked out from the documents on every read and never stored.
type CustomerLifetimeFacts {
asOf: DateTime!
averageInvoice: Float!
awaitingPaymentOrderCount: Int!
cancelledOrderCount: Int!
draftOrderCount: Int!
firstOrderAt: DateTime
invoiceCount: Int!
invoicedTotal: Float!
lastOrderAt: DateTime
lastOrderNumber: String
lastOrderTotal: Float
lastPaymentAt: DateTime
orderCount: Int!
totalOrderCount: Int!
}
Fields
CustomerLifetimeFacts.asOf ● DateTime! non-null scalar
When the figures were worked out.
CustomerLifetimeFacts.averageInvoice ● Float! non-null scalar
The invoiced total divided by the issued invoice count. 0 when there are none.
CustomerLifetimeFacts.awaitingPaymentOrderCount ● Int! non-null scalar
How many orders are waiting for payment.
CustomerLifetimeFacts.cancelledOrderCount ● Int! non-null scalar
How many orders were cancelled.
CustomerLifetimeFacts.draftOrderCount ● Int! non-null scalar
How many orders are drafts.
CustomerLifetimeFacts.firstOrderAt ● DateTime scalar
When the first order was placed.
CustomerLifetimeFacts.invoiceCount ● Int! non-null scalar
How many issued invoices make up the invoiced total. Drafts, cancelled and voided invoices are not counted.
CustomerLifetimeFacts.invoicedTotal ● Float! non-null scalar
The revenue: the base currency total of issued sales invoices, leaving out cancelled, voided and draft ones.
CustomerLifetimeFacts.lastOrderAt ● DateTime scalar
When the last order was placed.
CustomerLifetimeFacts.lastOrderNumber ● String scalar
The number of the last order.
CustomerLifetimeFacts.lastOrderTotal ● Float scalar
The total of the last order.
CustomerLifetimeFacts.lastPaymentAt ● DateTime scalar
When the last payment was received.
CustomerLifetimeFacts.orderCount ● Int! non-null scalar
How many committed orders there are: confirmed and every later state.
CustomerLifetimeFacts.totalOrderCount ● Int! non-null scalar
How many orders there are in all, whatever their status.
Member Of
Partner object