Skip to main content

Get All Customer Details

NOTE: These mutations and queries will only work when used with a valid customer ID and apiKey which should be received during user authentication.

Access all details of a saved customers including account info, previous orders and saved addresses using this query:

query GetCustomer($customerId: uuid!) {
customers_by_pk(id: $customerId) {
salutation
first_name
last_name
email
merchant_id
contact_num
birthdate
birthday_update_count
orders(order_by: {inserted_at: desc}) {
fulfillment_type
transaction_id
inserted_at
total
status
cart_id
store_id
cart {
address
order_items {
product_variant {
image
name
description
price
vat
}
}
}
store {
slug
}
}
addresses {
id
line_1
line_2
city
country
zip
contact_num
default_shipping_address
default_billing_address
flat_number
label
}
}
}