Skip to content

Customers

The Customers section is where you manage everyone who shops on the storefront and the records attached to them — their accounts, address books, internal notes, the groups they belong to, the product reviews they leave, and the privacy (GDPR) requests they raise. It also exposes the read-only panels an admin uses when building an order on a customer's behalf. It mirrors the admin Customers menu.

MenuWhat it's for
CustomersThe shopper accounts — create, view, edit, delete, suspend, and bulk-manage them. Each customer belongs to a Customer Group and carries order/spend totals.
AddressesA customer's address book — billing/shipping addresses, with one marked default. Used at checkout and when an admin places an order for the customer.
NotesAppend-only internal notes attached to a customer, optionally emailing the customer when added.
Impersonate"Login as Customer" — issues a short-lived customer token so an admin can act as that customer against the storefront API.
Customer GroupsThe named groups customers are sorted into (e.g. general, wholesale, guest). Groups drive group-specific pricing and promotions.
ReviewsModeration queue for the product reviews customers submit on the storefront — approve, disapprove, delete.
GDPR RequestsThe privacy requests customers raise (data export or account deletion) and the workflow to action them.
Create-Order HelpersRead-only panels — a customer's active cart, wishlist, and recent purchases — that feed the admin Create-Order flow.

How these records relate

  • A Customer always belongs to a Customer Group; the group decides which group-specific prices and promotions apply to them. Deleting a group is blocked while any customer still belongs to it.
  • A customer's Addresses are reused at checkout and when an admin builds an order for them through the Create Order flow under Sales.
  • Reviews originate on the storefront against catalog products; this menu is moderation only — admins change a review's status, they don't author reviews.
  • GDPR Requests tie back to a customer: approving a delete request cascades into removing that customer's account and related data.
  • Create-Order Helpers surface a customer's cart, wishlist, and recent items so an admin can quickly seed a draft cart when placing an order on their behalf.

Conventions across the Customers API

A few behaviours are common to every Customers menu over GraphQL:

  • Listings are cursor connections. Every list query returns edges { cursor node { … } } pageInfo { hasNextPage hasPreviousPage startCursor endCursor } totalCount. Page with first + after.
  • Detail-only fields. Aggregates and nested data (a customer's totalOrders / totalAddresses / totalAmountSpent, a review's images) are populated only on the single-record query, not on the listing rows.
  • Permission gates. Write operations are gated by the matching customers.* permission; an admin whose role lacks it gets an authorization error.

All Customers operations require an admin Bearer token — see Authentication.

Released under the MIT License.