Schema Documentation

Customer

Description

A customer object

Fields
Field NameDescription
billing - CustomerAddress Return the date customer billing address properties
calculatedShipping - Boolean Has customer calculated shipping?
databaseId - Int The ID of the customer in the database
date - String Return the date customer was created
displayName - String Return the customer's display name.
downloadableItems - CustomerToDownloadableItemConnection Connection between the Customer type and the DownloadableItem type
Arguments
first - Int

The number of items to return after the referenced "after" cursor

last - Int

The number of items to return before the referenced "before" cursor

after - String

Cursor used along with the "first" argument to reference where in the dataset to get data

before - String

Cursor used along with the "last" argument to reference where in the dataset to get data

where - CustomerToDownloadableItemConnectionWhereArgs

Arguments for filtering the connection

email - String Return the customer's email.
firstName - String Return the customer's first name.
hasCalculatedShipping - Boolean Has calculated shipping?
id - ID! The globally unique identifier for the customer
isPayingCustomer - Boolean Return the date customer was last updated
isVatExempt - Boolean Is customer VAT exempt?
lastName - String Return the customer's last name.
lastOrder - Order Gets the customers last order.
metaData - [MetaData] Object meta data
Arguments
key - String

Retrieve meta by key

keysIn - [String]

Retrieve multiple metas by key

multiple - Boolean

Retrieve meta with matching keys

modified - String Return the date customer was last updated
orderCount - Int Return the number of orders this customer has.
orders - CustomerToOrderConnection Connection between the Customer type and the Order type
Arguments
first - Int

The number of items to return after the referenced "after" cursor

last - Int

The number of items to return before the referenced "before" cursor

after - String

Cursor used along with the "first" argument to reference where in the dataset to get data

before - String

Cursor used along with the "last" argument to reference where in the dataset to get data

where - CustomerToOrderConnectionWhereArgs

Arguments for filtering the connection

refunds - CustomerToRefundConnection Connection between the Customer type and the Refund type
Arguments
first - Int

The number of items to return after the referenced "after" cursor

last - Int

The number of items to return before the referenced "before" cursor

after - String

Cursor used along with the "first" argument to reference where in the dataset to get data

before - String

Cursor used along with the "last" argument to reference where in the dataset to get data

where - CustomerToRefundConnectionWhereArgs

Arguments for filtering the connection

role - String Return the customer's user role.
sessionToken - String A JWT token that can be used in future requests to for WooCommerce session identification
shipping - CustomerAddress Return the date customer shipping address properties
totalSpent - Float Return how much money this customer has spent.
username - String Return the customer's username.
Example
{"billing":CustomerAddress,"calculatedShipping":false,"databaseId":987,"date":"xyz789","displayName":"abc123","downloadableItems":CustomerToDownloadableItemConnection,"email":"xyz789","firstName":"xyz789","hasCalculatedShipping":true,"id":"4","isPayingCustomer":false,"isVatExempt":false,"lastName":"xyz789","lastOrder":Order,"metaData":[MetaData],"modified":"xyz789","orderCount":987,"orders":CustomerToOrderConnection,"refunds":CustomerToRefundConnection,"role":"xyz789","sessionToken":"xyz789","shipping":CustomerAddress,"totalSpent":123.45,"username":"abc123"}