Buyer Object
Description
Represents a buyer (customer) user account.
Declaration
type Buyer {
_id: ID!
created: Date!
updated: Date
lastLogin: Date
active: Boolean
birthdate: Date
firstName: String
lastName: String
email: String
name: String
path: String
telephone: String
organisation: String
taxNumber: String
lists: [BuyerList!]!
accountCreated: Boolean
addresses: [Address!]!
notes: String
verification: UserVerification
orderCount: Int
orderTotal: Float
creditNotesCount: Int
wantsCount: Int
vouchersCount: Int
type: String!
}
Fields
| Name | Type | Description |
|---|---|---|
_id | ID! | Internal database identifier. |
created | Date! | Date when the buyer account was created. |
updated | Date | Date when the buyer account was last updated. |
lastLogin | Date | Date of the buyer's last login. |
active | Boolean | Whether the buyer account is active. |
birthdate | Date | Buyer's birthdate. |
firstName | String | Buyer's first name. |
lastName | String | Buyer's last name. |
email | String | Buyer's email address. |
name | String | Buyer's full name. |
path | String | URL path to the buyer's profile page. |
telephone | String | Buyer's telephone number. |
organisation | String | Organization or company name. |
taxNumber | String | Tax identification number. |
lists | [BuyerList!]! | Customer lists the buyer is a member of. |
accountCreated | Boolean | Whether the buyer has created an account (vs. guest checkout). |
addresses | [Address!]! | Saved addresses for the buyer. |
notes | String | Notes or comments about the buyer. |
verification | UserVerification | Email verification status and information. |
orderCount | Int | Total number of orders placed by the buyer. |
orderTotal | Float | Total value of all orders placed by the buyer. |
creditNotesCount | Int | Number of credit notes issued to the buyer. |
wantsCount | Int | Number of items in the buyer's wantlist. |
vouchersCount | Int | Number of vouchers associated with the buyer. |
type | String! | User type (always "buyer" for buyer users). |