Skip to main content

Get a list of department codes

Retrieves a paged collection of department codes (required scope stock:read)

Query Parameters
    sortBy DepartmentCodeSortOptions

    Possible values: [code, description]

    The field to sort items in the page by

    direction SortDirection

    Possible values: [ascending, descending]

    The direction to apply the sort

    id int64[]

    Only return department codes where 'id' matches the value(s) provided

    pageNumber int32

    Possible values: >= 1 and <= 2147483

    The page number being requested (minimum: 1, maximum: 2147483)

    pageSize int32

    Possible values: >= 1 and <= 1000

    The page size being requested (minimum: 1, maximum: 1000)

Header Parameters
    Customer-Id int64 required

    The customer identifier

Responses

Success


Schema
    items object[]

    The items returned for the requested page

  • Array [
  • id int64
    code string

    The department code the identifies departments within the organisation

    description string

    Description of the department code

    createdAt date-time

    The date and time when the record was created

  • ]
  • pageNumber int32

    The page number of the response where 1 is the first page

    pageSize int32

    The number of items requested for the current page

    pageItemCount int32

    The number of items returned in the current page

Loading...