Skip to content
Light
English

Meu ERP Online integration setup

Configuration is in Integração Meu ERP Online, under the integration cadastros menu.

Select the correct company before you create or edit the record.

On the list you will find:

  • Buscar dados do ERP (down arrow) — schedules fetch in the background
  • Enviar dados para o ERP (up arrow) — schedules customer and order send
  • Shortcuts to Logs de integração and Tabelas de Integração
Field Purpose
Token da Empresa no Meu ERP Online Auth token from Meu ERP Online (required)
Timeout Request timeout in seconds (minimum 15)
Observação Internal notes; not sent to the API
Ativar busca automática Fetch every 30 minutes
Ativar envio automático Send customers and orders every 30 minutes
Ativar log detalhado Also stores detailed logs on success (failures are always logged)
Ativo Enables or disables the company integration

The data fetch also uses the company token in Demander. It is in Company Settings, Integração tab, Token field.

This token is the Demander API token, used to send and receive data. If it is empty, the fetch stops with the message: “Token da empresa não configurado. Configure o token na tela Configurações da Empresa para enviar arquivos ao importador Demander.”

Sending to Meu ERP Online still uses Token da Empresa no Meu ERP Online, from the Geral tab. The message above appears on the fetch, not on the send.

Used when sending orders. Fill it in before you enable automatic send.

Field Purpose
Usuário no Meu ERP Online User email. Consultar fills the ID sent as idUsuario and idUsuarioAbertura
ID do local de estoque Sent on each order item (idLocalEstoque)
Série Fixed value sent as serie on the document. When blank, the send keeps serie empty
Configuração JSON de Pedido Order type mapping (modelo) and document status mapping in the ERP
Código status pedido exportado Demander status after a successful send
Código status pedido timeout Status when the API times out
Status pedido com erro na exportação Status after the failure limit is reached
Número limite de tentativas falhas How many attempts before the order is marked with error
{
"deParaTipoPedido": {
"padrao": "PV",
"dePara": [
{ "codTipoPedido": 1, "valor": "PA" },
{ "codTipoPedido": 5, "valor": "OC" }
]
},
"deParaStatus": {
"padrao": "R",
"dePara": [
{ "codStatus": 2, "valor": "E" },
{ "codStatus": 5, "valor": "C" }
]
}
}
  • deParaTipoPedido → document modelo in the ERP
  • deParaStatus → document status letter in the ERP (R draft, E issued, C cancelled, V sent, I voided, O checked, X deleted, Z contingency)

Only orders whose type and status in Demander have Send return to ERP enabled are sent (those flags are not listed on this screen).

In Tabelas de Integração Meu ERP Online each row is a fetch. Método defines how it runs.

  • POST runs the SQL query and imports through the webservice, in layout column order.
  • GET calls an API path and saves directly, without the webservice. Today the only path with an import is the product photo.
  • The file name uses the layout prefix (e.g. 09_LISTASPRECO).
  • Import is positional: column order in the SELECT must match the layout field order. Column names in the API response are ignored when building the file.
  • Testar query appears only on POST. It runs one page and shows the total, without importing.
  • You can run fetch for a single table from the grid button.

On GET the query is hidden. The screen asks for the path and the request parameters. The execution schedule applies to POST and GET.

Field Use
Path API path, without the host. For the photo: api/mercadoria/fotos/principais/v1
Parâmetros da requisição Example: limit=10 or limit=10&page=10
Horários de execução da importação JSON with the hours, from 0 to 23. Example: [1, 4]

The photo uses the API code idMercadoriaVariacao as the product code in this company. The image is saved on the product. If the product already has the same image, it is not replaced.

  • With page in the parameters, the import starts on that page and continues. Without page, it starts on page 1.
  • Without limit, each page brings 10 photos.
  • Another GET path is not imported. The fetch records that the path has no direct import.
  • The grid button runs immediately and ignores the schedule. The schedule applies only to the automatic fetch. With no hours, the table runs on every cycle. In the same hour, the automatic fetch does not repeat the table.

In the detailed log, the page response includes the API JSON with the photo shortened and, at the end, informacoesDemander:

Field Meaning
recebidas Photos the API sent on the page
atualizadas Saved because the image changed or the product had no photo
semAlteracao The product already had the same image
semProduto The code does not exist in this company
semFoto The item came without an image
falhas Saving failed

What is typically fetched: What Demander fetches.

Logs de integração Meu ERP Online lists fetch and send runs. The magnifier opens the detailed log (request, response, and per-record errors).

After a manual trigger, Demander schedules the job in the background and redirects here. Wait a few moments and reload to see the result.