# Ativar integração com Omie

Ao integrar sua conta da Omie, você pode gerenciar suas vendas e emitir ou cancelar notas fiscais de forma automatizada.

Para ativar a integração, você deve acessar a sua conta da Omie para obter sua chave de Api Key e Token, em seguida, informá-las na Hubla.

{% hint style="warning" %}
**Antes de começar você precisa:**

* Ter uma conta ativa na Omie.
* Ser usuário ***administrador*** ***ou ter permissão*** para realizar as ações a seguir.
  {% endhint %}

***

## Passo 1 - Obter Api Key e Token?

Para obter as credenciais de integração para ser informado na Hubla, você deve seguir as seguintes etapas:

1. Acesse a sua conta da Omie, e posteriormente acesse o [Portal do Desenvolvedor](https://developer.omie.com.br/my-apps/)
2. Acesse no menu superior, Aplicativos. Encontre o aplicativo referente a sua empresa e copie os valores de **App Key** e **App Secret. I**mportente não compartilhar suas credenciais, mantenha elas em segurança.

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

***

## Passo 2 - Conectando a Omie na Hubla

Para conectar a Omie na Hubla você deve seguir as seguintes etapas:

1. Acesse a sua conta na plataforma da Hubla, e no menu lateral, clique em **Integrações**

<div align="center"><figure><img src="/files/po1xqzyzYNb23kifPKc2" alt="" width="127"><figcaption></figcaption></figure></div>

2. Desça a tela até a seção **Notas Fiscais**, clique em **Omie**

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

3. Já na tela da integração **Omie**, clique em **Ativar Integração**

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

4. No formulário adicione no campo **API Key** a **App Key** e **Token** a **App Secret** obtida anteriormente. [Passo 1 - Obter token de API?](#passo-1-obter-api-key-e-token) e clique em **Confirmar**

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

4. Conexão realizada com sucesso!

<figure><img src="/files/1YpIwlfZysponOTC94ef" alt=""><figcaption></figcaption></figure>

***

## Configurando regra de vendas

Agora que já temos uma integração ativa com a Omie, precisamos configurar as regras de vendas para emissões de notas fiscais efetuando um mapeamento dos produtos na Hubla com a Omie.

\
:track\_next: Próximo passo: Configurar regras de vendas


---

# 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://hubla.gitbook.io/docs/integracoes/omie/ativar-integracao-com-omie.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.
