> For the complete documentation index, see [llms.txt](https://ajuda.consistem.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.consistem.com.br/consistem-api/consistem-erp-api/componentes/componentes-v1.0/controle-de-alteracoes-para-sincronismo-de-informacoes-eventos.md).

# Controle de alterações para sincronismo de informações (Eventos)

evento

## GET /evento

> Obter listagem de eventos para sincronizar

```json
{"openapi":"3.1.1","info":{"title":"Componentes","version":"1.0"},"tags":[{"name":"Controle de alterações para sincronismo de informações (Eventos)","description":"evento"}],"servers":[{"url":"https://localhost/componentes/v10"},{"url":"http://localhost/componentes/v10"}],"security":[{"csw_auth":[]}],"components":{"securitySchemes":{"csw_auth":{"type":"apiKey","name":"Authorization","in":"header"}},"schemas":{"ListaItens":{"type":"object","properties":{"continuationToken":{"type":"string"},"agrupadores":{"type":"array","items":{"$ref":"#/components/schemas/Agrupadores"}},"data":{"type":"array","items":{"$ref":"#/components/schemas/Item"}}}},"Agrupadores":{"type":"object","required":["dataAgrupador","codAgrupador"],"properties":{"dataAgrupador":{"type":"string","description":"Data do Agrupador"},"codAgrupador":{"type":"integer","description":"Código do Agrupador"}}},"Item":{"type":"object","required":["id","tipoEvento","operacao","item","dadosItem"],"properties":{"id":{"type":"string","description":"Identificador interno da integração"},"tipoEvento":{"type":"string","description":"Indica o tipo de evento que teve alteração"},"operacao":{"type":"string","description":"M-Inclusão/Alteração, D-Exclusão","enum":["M","D"]},"item":{"type":"string"},"dadosItem":{"type":"array","items":{"$ref":"#/components/schemas/DadosItem"}},"objEvento":{"type":"string"}}},"DadosItem":{"type":"object","required":["chave","valor"],"properties":{"chave":{"type":"string","description":"Chave"},"valor":{"type":"string","description":"Valor"}}},"Erro":{"type":"object","properties":{"mensagem":{"type":"string"}}}}},"paths":{"/evento":{"get":{"tags":["Controle de alterações para sincronismo de informações (Eventos)"],"summary":"Obter listagem de eventos para sincronizar","operationId":"ObterItensEvento","parameters":[{"schema":{"type":"string"},"name":"evento","in":"header","description":"Identificador do Evento","required":true},{"schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":false,"name":"tipoEventos (Descontinuado)","in":"query","required":false,"description":"Lista de Tipo de Eventos"},{"schema":{"type":"boolean"},"name":"incluirObjEvento","in":"query","description":"Envia objeto no evento","required":false},{"schema":{"type":"string"},"name":"continuationToken","in":"query","description":"Identificador da paginação da consulta","required":false}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListaItens"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Erro"}}}}},"429":{"description":"Too Many Requests"},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Erro"}}}}}}}}}
```

## POST /evento

> Confirmar sincronização dos eventos

```json
{"openapi":"3.1.1","info":{"title":"Componentes","version":"1.0"},"tags":[{"name":"Controle de alterações para sincronismo de informações (Eventos)","description":"evento"}],"servers":[{"url":"https://localhost/componentes/v10"},{"url":"http://localhost/componentes/v10"}],"security":[{"csw_auth":[]}],"components":{"securitySchemes":{"csw_auth":{"type":"apiKey","name":"Authorization","in":"header"}},"schemas":{"Erro":{"type":"object","properties":{"mensagem":{"type":"string"}}},"ListaIdentificadores":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Identificador"}}}},"Identificador":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"Identificador interno de integração que foi recebido"},"tipoEvento":{"type":"string","description":"Indica o tipo de evento que teve alteração"},"item":{"type":"string"}}}}},"paths":{"/evento":{"post":{"tags":["Controle de alterações para sincronismo de informações (Eventos)"],"summary":"Confirmar sincronização dos eventos","operationId":"ConfirmarIdentificadoresEvento","parameters":[{"schema":{"type":"string"},"name":"evento","in":"header","description":"Identificador do Evento","required":true}],"responses":{"200":{"description":"OK"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Erro"}}}}},"429":{"description":"Too Many Requests"},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Erro"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListaIdentificadores"}}},"description":"Listagem dos identificadores internos que foram obtidos com sucesso. Conforme as propriedades forem preenchidas, serão eliminados os eventos passados até o identificador repassado.","required":true}}}}}
```

## POST /evento/{dataAgrupador}/{codAgrupador}

> Confirmar sincronização por Agrupador

```json
{"openapi":"3.1.1","info":{"title":"Componentes","version":"1.0"},"tags":[{"name":"Controle de alterações para sincronismo de informações (Eventos)","description":"evento"}],"servers":[{"url":"https://localhost/componentes/v10"},{"url":"http://localhost/componentes/v10"}],"security":[{"csw_auth":[]}],"components":{"securitySchemes":{"csw_auth":{"type":"apiKey","name":"Authorization","in":"header"}},"schemas":{"Erro":{"type":"object","properties":{"mensagem":{"type":"string"}}}}},"paths":{"/evento/{dataAgrupador}/{codAgrupador}":{"post":{"tags":["Controle de alterações para sincronismo de informações (Eventos)"],"summary":"Confirmar sincronização por Agrupador","operationId":"ConfirmarIdentificadorAgrupadorEvento","parameters":[{"schema":{"type":"string"},"name":"evento","in":"header","description":"Identificador do Evento","required":true},{"schema":{"type":"string","format":"date"},"name":"dataAgrupador","in":"path","description":"Data do Agrupador (YYYY-MM-DD)","required":true},{"schema":{"type":"integer"},"name":"codAgrupador","in":"path","description":"Código do Agrupador","required":true}],"responses":{"200":{"description":"OK"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Erro"}}}}},"429":{"description":"Too Many Requests"},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Erro"}}}}}}}}}
```

## POST /cargaCompleta

> Inicia Sincronização completa

```json
{"openapi":"3.1.1","info":{"title":"Componentes","version":"1.0"},"tags":[{"name":"Controle de alterações para sincronismo de informações (Eventos)","description":"evento"}],"servers":[{"url":"https://localhost/componentes/v10"},{"url":"http://localhost/componentes/v10"}],"security":[{"csw_auth":[]}],"components":{"securitySchemes":{"csw_auth":{"type":"apiKey","name":"Authorization","in":"header"}},"schemas":{"Erro":{"type":"object","properties":{"mensagem":{"type":"string"}}}}},"paths":{"/cargaCompleta":{"post":{"tags":["Controle de alterações para sincronismo de informações (Eventos)"],"summary":"Inicia Sincronização completa","operationId":"CargaCompleta","parameters":[{"schema":{"type":"string"},"name":"evento","in":"query","description":"Identificador do Evento","required":true},{"schema":{"type":"string"},"name":"tipoEventos","in":"query","required":true}],"responses":{"200":{"description":"OK"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Erro"}}}}},"429":{"description":"Too Many Requests"},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Erro"}}}}}}}}}
```


---

# 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.consistem.com.br/consistem-api/consistem-erp-api/componentes/componentes-v1.0/controle-de-alteracoes-para-sincronismo-de-informacoes-eventos.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.
