Query / commerce
listCostCenters
List cost centers with pagination. Requires costcenter:list permission.
Arguments
firstIntNumber of items from the start
lastIntNumber of items from the end
afterStringCursor to start after
beforeStringCursor to start before
filterCostCenterFilterInputFilter criteria
sort[CostCenterSortInput!]Sort order
Returns CostCenterConnection!
Explore in a view
View exact SDL
"""
List cost centers with pagination. Requires costcenter:list permission.
"""
listCostCenters(
"""Number of items from the start"""
first: Int
"""Number of items from the end"""
last: Int
"""Cursor to start after"""
after: String
"""Cursor to start before"""
before: String
"""Filter criteria"""
filter: CostCenterFilterInput
"""Sort order"""
sort: [CostCenterSortInput!]
): CostCenterConnection! @topic(names: ["commerce"])Schema reference describes the API contract. Actual access is checked by the platform for every operation.