> For the complete documentation index, see [llms.txt](https://docs.vrsoft.com.br/vrmaster/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.vrsoft.com.br/vrmaster/manual-do-sistema/manual-do-sistema-vr-gerenciador-smarket/vrgerenciadorsmarket-instalacao.md).

# Instalação e Configuração

## **INSTALAÇÃO**

Para que a execução do VRGerenciador possa ser executada de forma automática, é necessário que seja configurado um arquivo de execução `.bat`. Também é necessário utilizar o `Java 11`. Abaixo há um exemplo de criação do arquivo:

```

    cd /d C:\vr\
 
    :loop
    java -jar -Dfile.encoding=UTF-8 C:\vr\exec\VRGerenciadorSmarket.jar
    timeout /t 600
    goto loop
    
    pause
    END

```

## **CONFIGURAÇÃO**

Para que o VRGerenciadorSmarket seja configurado com **URL**, **Token** e demais parâmetros, será necessário que ele seja executado através do comando `java -jar VRGerenciadorSmarket.jar -config`, aonde será solicitada a senha `ADMLOJA[id da loja]`.

Não deve ser aberto um VRGerenciadorSmarket em cada loja, tem que ser apenas um para todas as lojas.

![](/files/GCfPjSOEwPS9xvNMMBI7)

* **URL**: Deverá ser informada a Url de comunicação com a Smarket, cada mercado possuí a sua própria Url, e deverá ser inserida da seguinte forma: `https://{nome_do_supermercado}.smarketsolutions.com.br/publico/`
* **Token**: Deverá ser informado o Token de autenticação fornecido pela Smarket. Ex.: `siel9dad4rrn4i903qwdfcsvw4ezarug72zcq74g`

![](/files/IadAH4zPyY8bQeUgOE5Z)

* **Utilizar dias retroativos para a consulta de promoções**: Ao ser habilitado passará a verificar as Campanhas e Ofertas lançadas no site da Smarket a partir da quantidade de dias retroativos definidos no parâmetro **Quantidade dias retroativos**.
* **Quantidade dias retroativos**: Quantidade de dias retroativos que o VRGerenciadorSmarket irá consultar se há Campanhas e Ofertas lançadas no site da Smarket.

![](/files/YOMDuyIDevfaNw0arEVI)

* Código do fornecedor utilizado para a geração da Verba Sell Out ao realizar a importação das Campanhas que possuam valores a ser lançado. Por padrão o VRGerenciadorSmarket irá criar um fornecedor.


---

# 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://docs.vrsoft.com.br/vrmaster/manual-do-sistema/manual-do-sistema-vr-gerenciador-smarket/vrgerenciadorsmarket-instalacao.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.
