OBJECT

Buyer

link GraphQL Schema definition

1type Buyer {
2id: Int!
3
4status: Status!
5
6email: String!
7
8firstName: String
9
10lastName: String
11
12cellPhoneNumber: String
13
14phoneNumber: String
15
16websiteUrl: String
17
18# Arguments
19# format: ISO-8601
20createdAt(format: String = "Y-m-d\\TH:i:sP"): DateTimeTz!
21
22# Arguments
23# format: ISO-8601
24updatedAt(format: String = "Y-m-d\\TH:i:sP"): DateTimeTz!
25
26# Arguments
27# format: ISO-8601
28lastLoginAt(format: String = "Y-m-d\\TH:i:sP"): DateTimeTz
29
30# Arguments
31# format: ISO-8601
32lastOnlineAt(format: String = "Y-m-d\\TH:i:sP"): DateTimeTz
33
34# Required permission: Buyer.totalOrders:read
35totalOrders: Int!
36
37# Required permission: Buyer.billingAddress:read
38billingAddress: Address
39
40# Required permission: EmailHistory:read
41#
42# Limit must be in range 1 - 200
43#
44# Arguments
45# where: (self-explanatory)
46# sort: (self-explanatory)
47# limit: (self-explanatory)
48# page: (self-explanatory)
49emailHistory(where: EmailHistoryFilter, sort: [EmailHistorySort!] = [id_DESC], limit: Int = 20, page: Int = 1): [WholesaleEmailHistoryEntry!]!
50
51# Required permission: Store:read
52#
53# Store restrictions apply.
54store: Store!
55
56receiveAutoEmails: Boolean!
57
58# Required permission: Account:read
59#
60# Store restrictions apply.
61account: Account!
62
63# Required permission: Order:read
64#
65# Store restrictions apply.
66lastOrder: WholesaleOrder
67
68# Required permission: Order:read
69#
70# Limit must be in range 1 - 100
71#
72# Store restrictions apply.
73#
74# Arguments
75# where: (self-explanatory)
76# sort: (self-explanatory)
77# limit: (self-explanatory)
78# page: (self-explanatory)
79orders(where: OrderFilter, sort: [OrderSort!] = [number_DESC], limit: Int = 20, page: Int = 1): [WholesaleOrder!]!
80
81# Required permission: NewsletterSubscription:read
82#
83# All elements are always returned
84#
85# Store restrictions apply.
86newsletterSubscriptions: [NewsletterSubscription!]!
87
88externalId: String
89
90}