> ## Documentation Index
> Fetch the complete documentation index at: https://developer.jtl-software.com/llms.txt
> Use this file to discover all available pages before exploring further.

# QueryScxCategoryAttribute

> Delivers the attributes a marketplace channel category defines for the offers listed in it, including their selectable values and whether each attribute is required. Unless a sort order is requested, the attributes are ordered by section position, sub-section position, display name and ID. An unknown channel category yields 404; a known channel category without attributes yields an empty page.



**query** `QueryScxCategoryAttribute(channelCategoryId: ID!, first: Int, after: String, last: Int, before: String, order: [ScxCategoryAttributeSortInput!]): QueryScxCategoryAttributeConnection`

## Arguments

**`channelCategoryId`**: `ID!` (required)

---

**`first`**: `Int`

Returns the first _n_ elements from the list.

---

**`after`**: `String`

Returns the elements in the list that come after the specified cursor.

---

**`last`**: `Int`

Returns the last _n_ elements from the list.

---

**`before`**: `String`

Returns the elements in the list that come before the specified cursor.

---

**`order`**: `[ScxCategoryAttributeSortInput!]`

## Returns

`QueryScxCategoryAttributeConnection`

**`pageInfo`**: `PageInfo!`

Information to aid in pagination.

---

**`edges`**: `[QueryScxCategoryAttributeEdge!]`

A list of edges.

---

**`nodes`**: `[ScxCategoryAttribute!]`

A flattened list of the nodes.

---

**`totalCount`**: `Int!`

Identifies the total count of items in the connection.

## Examples

```graphql Query
query QueryScxCategoryAttribute($channelCategoryId: ID!) {
  QueryScxCategoryAttribute(channelCategoryId: $channelCategoryId) {
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
    edges {
      cursor
      node {
        id
        channelCategoryId
        channelId
        attributeCode
        displayName
        type
      }
    }
    nodes {
      id
      channelCategoryId
      channelId
      attributeCode
      displayName
      type
    }
    totalCount
  }
}
```

```json Variables
{
  "channelCategoryId": "id"
}
```

```json Response
{
  "data": {
    "QueryScxCategoryAttribute": {
      "pageInfo": {
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "string",
        "endCursor": "string"
      },
      "edges": [
        {
          "cursor": "string",
          "node": {
            "id": "id",
            "channelCategoryId": "id",
            "channelId": "id",
            "attributeCode": "string",
            "displayName": "string",
            "type": "string"
          }
        }
      ],
      "nodes": [
        {
          "id": "id",
          "channelCategoryId": "id",
          "channelId": "id",
          "attributeCode": "string",
          "displayName": "string",
          "type": "string"
        }
      ],
      "totalCount": 1
    }
  }
}
```
