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

# GetScxItemSalesChannelDataByItemId

> Delivers the base data of an item for an SCX seller (sales channel): the channel category and the minimum and maximum stock level. Without stored base data, the category and both stock levels are null. Errors: SALES_CHANNEL_ID_INVALID (400, malformed sales channel id), SCX_SALES_CHANNEL_NOT_FOUND (404, unknown, deleted, deactivated or non-SCX sales channel), SCX_ITEM_NOT_FOUND (404, the item does not exist).



**query** `GetScxItemSalesChannelDataByItemId(salesChannelId: String!, itemId: ID!): ScxItemSalesChannelData!`

## Arguments

**`salesChannelId`**: `String!` (required)

---

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

## Returns

`ScxItemSalesChannelData!`

**`salesChannelId`**: `ID!`

Id of the sales channel (the seller account) the base data belongs to. Opaque, tenant-local composite identifier (not a UUID).

---

**`itemId`**: `ID!`

ID of the item.

---

**`channelCategoryId`**: `ID`

ID of the channel category the item is assigned to on this sales channel, or null if the item has no category on this sales channel.

---

**`minimumStockLevel`**: `Decimal`

Minimum stock level of the item on this sales channel, or null when no base data has been stored for the item yet; a stored value, including 0, is returned as stored.

---

**`maximumStockLevel`**: `Decimal`

Maximum stock level of the item on this sales channel, or null when no base data has been stored for the item yet; a stored value, including 0, is returned as stored.

## Examples

```graphql Query
query GetScxItemSalesChannelDataByItemId($salesChannelId: String!, $itemId: ID!) {
  GetScxItemSalesChannelDataByItemId(salesChannelId: $salesChannelId, itemId: $itemId) {
    salesChannelId
    itemId
    channelCategoryId
    minimumStockLevel
    maximumStockLevel
  }
}
```

```json Variables
{
  "salesChannelId": "string",
  "itemId": "id"
}
```

```json Response
{
  "data": {
    "GetScxItemSalesChannelDataByItemId": {
      "salesChannelId": "id",
      "itemId": "id",
      "channelCategoryId": "id",
      "minimumStockLevel": "value",
      "maximumStockLevel": "value"
    }
  }
}
```
