> For the complete documentation index, see [llms.txt](https://ajuda.pdvlegal.com.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ajuda.pdvlegal.com.br/integracoes/integracao-com-repediu.md).

# Integração com Repediu

Ative a integração no OEM, localize as credenciais e permita a consulta do histórico de vendas do restaurante pela Repediu.

> Use esta integração quando o restaurante quiser disponibilizar seu histórico de vendas para a **Repediu**.
>
> A integração é ativada pelo canal no **OEM**. A Repediu recebe as credenciais pela revenda responsável pelo cliente.

### Como funciona

1. O cliente solicita a integração à **Repediu**.
2. A Repediu solicita os dados de acesso à integração.
3. O canal ativa a integração no **OEM**.
4. O canal localiza o **Client ID** e o **Client Secret** no OEM.
5. A Repediu solicita as credenciais à revenda que atende o cliente.
6. A revenda informa as credenciais à Repediu.

Com as credenciais, a Repediu consulta o histórico de vendas do restaurante.

### Ativar a integração

{% stepper %}
{% step %}

### Confirmar a solicitação

* Confirme que o cliente solicitou a integração à **Repediu**.
* Identifique a revenda responsável pelo atendimento do restaurante.
  {% endstep %}

{% step %}

### Ativar no OEM

1. No **OEM**, acesse **Minhas Licenças**.
2. Localize a licença do cliente pelo nome, código ou CNPJ.
3. Clique em **Editar** na licença desejada.
4. Abra a aba **Filiais**.
5. Localize a filial que utilizará a integração.
6. Clique em **Editar Filial**.
7. Ative a opção de integração com a **Repediu**.
8. Clique em **Gravar Licenciamento**.

<figure><img src="https://1320237751-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLaIVEmahy7qwD0rmQzED%2Fuploads%2FYqdzPP6ZCJlNNdRmwFZm%2Fimage.png?alt=media&amp;token=b7b43081-382d-4b20-9868-ee57caca672b" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
Confirme que a integração permaneceu ativa após gravar.
{% endhint %}
{% endstep %}

{% step %}

### Localizar as credenciais

1. Após ativar a integração, permaneça no **OEM**.
2. Abra **Dados do Licenciamento**.
3. Localize o campo **Código**. Este é o **Client ID**.
4. Localize o campo **Token**. Este é o **Client Secret**.
5. Copie os dois dados para informar à Repediu.
   {% endstep %}

{% step %}

### Informar a Repediu

* A Repediu entra em contato com a revenda responsável.
* A revenda informa o **Client ID** e o **Client Secret**.
* Confirme o envio das credenciais para concluir o fluxo.
  {% endstep %}
  {% endstepper %}

{% hint style="warning" %}
O **Client Secret** é uma credencial confidencial. Compartilhe-o somente com a Repediu.
{% endhint %}

### Responsabilidades

* **Cliente:** solicita a integração à Repediu.
* **Canal:** ativa a integração no OEM e localiza as credenciais.
* **Revenda:** entrega as credenciais à Repediu.
* **Repediu:** usa as credenciais para consultar o histórico de vendas do restaurante.

{% hint style="success" %}
Após receber as credenciais, a Repediu pode iniciar a consulta dos dados de vendas do restaurante.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://ajuda.pdvlegal.com.br/integracoes/integracao-com-repediu.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
