> ## 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.

# QueryScxChannelAttribute

> Delivers the attributes a marketplace channel defines for its offers, including their selectable values, ordered by section position, sub-section position, display name and ID. The channel is the SCX catalog channel as listed by the SCX sales channel endpoint, not a seller sales channel. Each attribute also lists its conditional mandatory and optional rules, grouped by the evaluated attribute. An unknown channel yields 404; a known channel without attributes yields an empty page.



**query** `QueryScxChannelAttribute(channelId: ID!, first: Int, after: String, last: Int, before: String): QueryScxChannelAttributeConnection`

## Arguments

**`channelId`**: `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.

## Returns

`QueryScxChannelAttributeConnection`

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

Information to aid in pagination.

---

**`edges`**: `[QueryScxChannelAttributeEdge!]`

A list of edges.

---

**`nodes`**: `[ScxChannelAttribute!]`

A flattened list of the nodes.

---

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

Identifies the total count of items in the connection.

## Examples

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

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

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