Skip to main content

HierarchyCustomer

One customer under a node's subtree, with order figures. The rep is the team member the customer is attributed to.

type HierarchyCustomer {
code: String!
createdAt: DateTime!
customerTier: String
id: ID!
lastOrderAt: DateTime
name: String!
orderCount: Int!
repId: String
repName: String
status: String!
totalRevenue: Float!
}

Fields​

HierarchyCustomer.code ● String! non-null scalar​

The customer code.

HierarchyCustomer.createdAt ● DateTime! non-null scalar​

When the record was created.

HierarchyCustomer.customerTier ● String scalar​

The customer's tier.

HierarchyCustomer.id ● ID! non-null scalar​

The unique ID of this record.

HierarchyCustomer.lastOrderAt ● DateTime scalar​

When the customer last ordered.

HierarchyCustomer.name ● String! non-null scalar​

The name of the customer.

HierarchyCustomer.orderCount ● Int! non-null scalar​

How many orders the customer placed.

HierarchyCustomer.repId ● String scalar​

The ID of the team member the customer is attributed to: the assigned rep, else the creator.

HierarchyCustomer.repName ● String scalar​

The name of that team member.

HierarchyCustomer.status ● String! non-null scalar​

The status of the customer.

HierarchyCustomer.totalRevenue ● Float! non-null scalar​

The revenue from the customer.

Member Of​

HierarchyCustomerPage object