Query / commerce
listCustomers
List customers with pagination, filtering, and sorting. Requires customer:list permission.
Arguments
firstIntNumber of items to return from the start (forward pagination)
lastIntNumber of items to return from the end (backward pagination)
afterStringCursor pointing to the item after which to start
beforeStringCursor pointing to the item before which to start
filterCustomerFilterInputFilter criteria for customers
sort[CustomerSortInput!]Sort order for results
Returns CustomerConnection!
Explore in a view
View exact SDL
"""
List customers with pagination, filtering, and sorting. Requires customer:list permission.
"""
listCustomers(
"""Number of items to return from the start (forward pagination)"""
first: Int
"""Number of items to return from the end (backward pagination)"""
last: Int
"""Cursor pointing to the item after which to start"""
after: String
"""Cursor pointing to the item before which to start"""
before: String
"""Filter criteria for customers"""
filter: CustomerFilterInput
"""Sort order for results"""
sort: [CustomerSortInput!]
): CustomerConnection! @topic(names: ["commerce"])Schema reference describes the API contract. Actual access is checked by the platform for every operation.