# Consulta de Itens

Pode haver dúvida sobre para quais itens de um pedido foi aberto um SAC. Neste caso é necessário utilizar o endpoint `/items`.

## GET - Consultando itens de um pedido de SAC

Para consultar o item de um pedido que possui SAC é necessário utilizar o método GET para o endpoint abaixo:&#x20;

```
https://api.skyhub.com.br/sac/{order_code}/items
```

#### **Request headers:**

| Key                  | Value                                       |
| -------------------- | ------------------------------------------- |
| X-User-Email         | email\_de\_usuario                          |
| X-Api-Key            | token\_de\_integracao de sua conta SkyHub   |
| X-Accountmanager-Key | token\_account único de cada Plataforma/ERP |
| Accept               | application/json                            |
| Content-Type         | application/json                            |

#### **Example request:**

```
curl --location --request GET 'https://api.skyhub.com.br/sac/Lojas Americanas-298765432198761/items' \
--header 'X-User-Email: email_de_usuario' \
--header 'X-Api-Key: token_de_integracao de sua conta SkyHub' \
--header 'X-Accountmanager-Key: token_account único de cada Plataforma/ERP' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json'
```

#### **Response esperado:**

{% hint style="success" %}
200 \[Success] - OK: Como resposta serão listados os itens presentes no pedido que gerou SAC:
{% endhint %}

```
{
    "items": [
        {
            "id": "298765432198761-1",
            "name": "Liquidificador Preto 1000W",
            "product_id": "12345678",
            "quantity": 1,
            "sku_id": "18765432"
        }
    ]
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://desenvolvedores.skyhub.com.br/sac/items.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
