# Integrando a Shoppub

Para integrar a Shoppub com a Troque e Devolva, você precisará criar um Token para nossa integração.

## Criando o token de acesso na Shoppub

Acesse o admin da sua loja Shoppub. **No menu lateral**, selecione **Integrações > "API's e Webhooks":**

<figure><img src="/files/u5vffPPMtAxWlORvOnOE" alt=""><figcaption><p>Menu Shoppub</p></figcaption></figure>

Depois, acesse **Tokens API**:

<figure><img src="/files/E3BJFPfr8Z6NbzvY9mFB" alt=""><figcaption></figcaption></figure>

Na tela de Tokens API, clique em **Adicionar:**

<figure><img src="/files/Mn4JD8ni3Rmtun1Lt9nM" alt=""><figcaption></figcaption></figure>

Insira o nome **Troque e Devolva** e selecione sua loja e seller (se aplicável):

<figure><img src="/files/bsPz64brRitJrgKpe3WZ" alt=""><figcaption></figcaption></figure>

Forneça ainda **as permissões necessárias** para: **pedidos,  produtos, clientes e cupons de desconto.**

<figure><img src="/files/2tg7lu6fNGrJMOW2gAup" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/tgD5Z3BmoiWvGngwUdOy" alt=""><figcaption></figcaption></figure>

Clique em **salvar e voltar à lista** e você vai visualizar o **token de integração**. Copie esse dado.&#x20;

## Configurando a Shoppub dentro do painel Troque e Devolva

Com o token criado e com as permissões corretas, acesse o painel <https://app.troqueedevolva.com.br>

Acesse **Configurações > Integrações.** Na tela apresentada, selecione **Shoppub**.&#x20;

Insira o **token** e a url do seu site, algo como <https://www.seusite.com.br/>

**Pronto. A integração está realizada.**


---

# 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://docs.troqueedevolva.com.br/integracao-conexao-de-dados/plataformas-de-e-commerce/shoppub/integrando-a-shoppub.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.
