Read product categories

GET /productcategories

Read a list of product categories.

Headers

  • Authorization string Required

    Authorization header

Responses

  • 200 application/json

    Success

    Hide headers attributes Show headers attributes
    Hide response attributes Show response attributes object

    A single product category

    • id number

      A unique identifier for the product category within 24SevenOffice ERP modules.

    • alternativeReference string

      An alternative user-defined reference for the category.

    • name string

      The name of the category.

    • parentId number

      A reference to the ID of the parent category.

      Default value is 0.

    • modifiedAt string

      A timestamp for when one of the properties of a record was last modified, in ISO 8601 format.

GET /productcategories
curl \
 --request GET 'https://rest.api.24sevenoffice.com/v1/productcategories' \
 --header "Authorization: string"
Response examples (200)
[
  {
    "id": 12,
    "name": "Shoe accessories",
    "parentId": 0,
    "modifiedAt": "2023-12-31 18:00:00.000Z",
    "alternativeReference": "dk-45-34"
  },
  {
    "id": 15,
    "name": "Fashion accessories",
    "parentId": 1,
    "modifiedAt": "2023-11-30 15:30:00.000Z",
    "alternativeReference": "us-67-89"
  },
  {
    "id": 18,
    "name": "Apparel",
    "parentId": 2,
    "modifiedAt": "2023-10-25 10:45:00.000Z",
    "alternativeReference": "us-98-76"
  }
]