# Códigos de status e erros

## Códigos de Erro da Loja

As consultas de API, além de retornarem códigos de status HTTP também podem retornar código de erro "**error\_code**" relacionados a loja Tray.

### <mark style="color:red;">`1000`</mark>  Loja ativa com o token expirado

A chave de acesso utilizada não é válida ou teve o prazo expirado, é necessário realizar uma [requisição para atualizar a chaves](broken://pages/vigvwsidLXeIw2jesuw6#atualizar-chave-de-acesso).

### <mark style="color:red;">`1001`</mark>  Loja bloqueada

Sua loja está bloqueada

### <mark style="color:red;">`1002`</mark>  Loja inativa

Sua loja pode ter um problema com o pagamento entre em contato com o financeiro da Tray.

### <mark style="color:red;">`1003`</mark>  Loja cancelada

### <mark style="color:red;">**`1099`**</mark>**&#x20; Motivo desconhecidos**

{% code title="Exemplo de Resposta com error\_code" %}

```json
{
    "code": 401,
    "url": "//orders",
    "name": "Unauthorized access",
    "error_code": 1000,
    "causes": [
        "Token inválido ou expirado"
    ]
}
```

{% endcode %}


---

# 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://partners.tray.com.br/loja-de-aplicativos/comece-por-aqui/codigos-de-status-e-erros.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.
