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

# QueryScxOffers

> Delivers a paged list of SCX offers. The optional "SalesChannelId" restricts the list to a single sales channel: if it is omitted or empty, the offers of all sales channels are returned; a valid id of an unknown sales channel returns an empty list; an invalid id is rejected as invalid input (error code SALES_CHANNEL_ID_INVALID). Supports projection, sorting and filtering.



**query** `QueryScxOffers(salesChannelId: String, first: Int, after: String, last: Int, before: String, where: ScxOfferFilterInput, order: [ScxOfferSortInput!]): QueryScxOffersConnection`

## Arguments

**`salesChannelId`**: `String`

---

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

---

**`where`**: `ScxOfferFilterInput`

---

**`order`**: `[ScxOfferSortInput!]`

## Returns

`QueryScxOffersConnection`

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

Information to aid in pagination.

---

**`edges`**: `[QueryScxOffersEdge!]`

A list of edges.

---

**`nodes`**: `[ScxOffer!]`

A flattened list of the nodes.

---

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

Identifies the total count of items in the connection.

## Examples

```graphql Query
query QueryScxOffers {
  QueryScxOffers {
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
    edges {
      cursor
      node {
        id
        salesChannelId
        salesChannelName
        channelId
        channel
        channelDisplayName
      }
    }
    nodes {
      id
      salesChannelId
      salesChannelName
      channelId
      channel
      channelDisplayName
    }
    totalCount
  }
}
```

```json Response
{
  "data": {
    "QueryScxOffers": {
      "pageInfo": {
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "string",
        "endCursor": "string"
      },
      "edges": [
        {
          "cursor": "string",
          "node": {
            "id": "id",
            "salesChannelId": "id",
            "salesChannelName": "string",
            "channelId": "id",
            "channel": "string",
            "channelDisplayName": "string"
          }
        }
      ],
      "nodes": [
        {
          "id": "id",
          "salesChannelId": "id",
          "salesChannelName": "string",
          "channelId": "id",
          "channel": "string",
          "channelDisplayName": "string"
        }
      ],
      "totalCount": 1
    }
  }
}
```
