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

# GetScxOfferAttributes

> Delivers the attribute values in effect for a single offer, each with the scope it originates from, and the required attributes that are still missing. The request fails as not found if no offer with the given ID exists or if no seller that has not been deleted can be determined for the offer. It fails as a conflict if more than one seller that has not been deleted matches the offer.



**query** `GetScxOfferAttributes(offerId: ID!): ScxOfferAttributes!`

## Arguments

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

ID of the offer whose attributes are to be retrieved.

## Returns

`ScxOfferAttributes!`

**`offerId`**: `ID!`

ID of the offer.

---

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

Sales channel id of the seller the offer belongs to. Opaque, tenant-local composite identifier (not a UUID).

---

**`categoryId`**: `ID`

Category stored for the item of the offer, or null when the offer has no item or no category.

---

**`attributes`**: `[ScxOfferAttribute!]!`

Values in effect for the offer, ordered ordinally by attribute code and then by reference group. Empty when the offer has no mapped value.

---

**`missingRequiredAttributes`**: `[ScxOfferMissingAttribute!]!`

Required attributes without a mapped value, ordered ordinally by attribute code. Required variation dimensions are never reported here, so an empty list does not mean that every required attribute has a value.

## Examples

```graphql Query
query GetScxOfferAttributes($offerId: ID!) {
  GetScxOfferAttributes(offerId: $offerId) {
    offerId
    salesChannelId
    categoryId
    attributes {
      attributeCode
      displayName
      origin
      value
      name
      isTemplate
    }
    missingRequiredAttributes {
      attributeCode
      displayName
      definedBy
      section
      subSection
    }
  }
}
```

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

```json Response
{
  "data": {
    "GetScxOfferAttributes": {
      "offerId": "id",
      "salesChannelId": "id",
      "categoryId": "id",
      "attributes": [
        {
          "attributeCode": "string",
          "displayName": "string",
          "origin": "SELLER",
          "value": "string",
          "name": "string",
          "isTemplate": true
        }
      ],
      "missingRequiredAttributes": [
        {
          "attributeCode": "string",
          "displayName": "string",
          "definedBy": "SELLER",
          "section": "string",
          "subSection": "string"
        }
      ]
    }
  }
}
```
