Sales & CRMQu Query

listCostCenters

Topics: Commerce

List cost centers with pagination. Requires costcenter:list permission.

Returns

CostCenterConnection!

Arguments

first

IntOptional

Number of items from the start

last

IntOptional

Number of items from the end

after

StringOptional

Cursor to start after

before

StringOptional

Cursor to start before

Filter criteria

Sort order

Exact field 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"])

Declared on Query. Access is checked by the platform for each operation.