# Integração DEPS

deps

## POST /pedido

> Automação de Pedido Deps. - Integração Reversa

```json
{"openapi":"3.0.1","info":{"title":"Integração Deps","version":"1.0"},"tags":[{"name":"Integração DEPS","description":"deps"}],"servers":[{"url":"https://localhost/deps/v10"},{"url":"http://localhost/deps/v10"}],"security":[{"csw_auth":[]}],"components":{"securitySchemes":{"csw_auth":{"type":"apiKey","name":"Authorization","in":"header"}},"schemas":{"Pedido":{"required":["codPedido","situacaoPedido"],"type":"object","properties":{"situacaoPedido":{"type":"string","description":"Situação do Pedido"},"codPedido":{"type":"string","description":"Código do Pedido"},"usuario":{"type":"string","description":"Usuário do Bloqueio"},"motivosBloqueio":{"type":"string","description":"Motivos do Bloqueio"},"dadosCustomizados":{"type":"array","items":{"$ref":"#/components/schemas/DadosCustomizados"}}}},"DadosCustomizados":{"required":["campo","valor"],"type":"object","properties":{"campo":{"type":"string"},"valor":{"type":"string"}}},"Erro":{"type":"object","properties":{"mensagem":{"type":"string"}}}}},"paths":{"/pedido":{"post":{"tags":["Integração DEPS"],"summary":"Automação de Pedido Deps. - Integração Reversa","operationId":"AtualizarPedidoDeps","requestBody":{"description":"Dados do Pedido","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Pedido"}}},"required":true},"responses":{"200":{"description":"OK","content":{}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Erro"}}}},"429":{"description":"Too Many Requests","content":{}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Erro"}}}}}}}}}
```

## POST /cliente/limite

> Automação de Limite de Crédito de Cliente

```json
{"openapi":"3.0.1","info":{"title":"Integração Deps","version":"1.0"},"tags":[{"name":"Integração DEPS","description":"deps"}],"servers":[{"url":"https://localhost/deps/v10"},{"url":"http://localhost/deps/v10"}],"security":[{"csw_auth":[]}],"components":{"securitySchemes":{"csw_auth":{"type":"apiKey","name":"Authorization","in":"header"}},"schemas":{"LimiteCliente":{"required":["cnpjCpf"],"type":"object","properties":{"cnpjCpf":{"type":"string","description":"Código do CPF/CNPJ"},"valorLimiteCredito":{"multipleOf":0.01,"type":"number","description":"Valor do Limite de Crédito"},"usuario":{"type":"string","description":"Código do Usuário do Limite"},"dataVencimento":{"type":"string","description":"Data de Vencimento (YYYY-MM-DD)","format":"date"},"dadosCustomizados":{"type":"array","items":{"$ref":"#/components/schemas/DadosCustomizados"}}}},"DadosCustomizados":{"required":["campo","valor"],"type":"object","properties":{"campo":{"type":"string"},"valor":{"type":"string"}}},"Erro":{"type":"object","properties":{"mensagem":{"type":"string"}}}}},"paths":{"/cliente/limite":{"post":{"tags":["Integração DEPS"],"summary":"Automação de Limite de Crédito de Cliente","operationId":"AtualizarLimiteCredito","parameters":[{"name":"empresa","in":"header","description":"Código da Empresa","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Dados de Limite de Crédito do Cliente","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LimiteCliente"}}},"required":true},"responses":{"200":{"description":"OK","content":{}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Erro"}}}},"429":{"description":"Too Many Requests","content":{}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Erro"}}}}}}}}}
```

## POST /grupoCliente

> Atualização de Grupos de Cliente

```json
{"openapi":"3.0.1","info":{"title":"Integração Deps","version":"1.0"},"tags":[{"name":"Integração DEPS","description":"deps"}],"servers":[{"url":"https://localhost/deps/v10"},{"url":"http://localhost/deps/v10"}],"security":[{"csw_auth":[]}],"components":{"securitySchemes":{"csw_auth":{"type":"apiKey","name":"Authorization","in":"header"}},"schemas":{"GrupoCliente":{"required":["codGrupo"],"type":"object","properties":{"codGrupo":{"type":"string","description":"Código do Grupo de Clientes"},"listaClienteGrupo":{"type":"array","description":"Clientes do Grupo","items":{"$ref":"#/components/schemas/ClienteGrupo"}},"dadosCustomizados":{"type":"array","items":{"$ref":"#/components/schemas/DadosCustomizados"}}}},"ClienteGrupo":{"type":"object","properties":{"documento":{"type":"string","description":"Documento do Cliente"},"codigoSistemaGestao":{"type":"string","description":"Documento do Sistema de Gestão"},"tipoPessoa":{"type":"string","description":"Tipo de Pessoa"},"operacao":{"type":"string","description":"Operação (I - Incluir, E - Excluir, M - Manter)","enum":["I","E","M"]},"dadosCustomizados":{"type":"array","items":{"$ref":"#/components/schemas/DadosCustomizados"}}}},"DadosCustomizados":{"required":["campo","valor"],"type":"object","properties":{"campo":{"type":"string"},"valor":{"type":"string"}}},"Erro":{"type":"object","properties":{"mensagem":{"type":"string"}}}}},"paths":{"/grupoCliente":{"post":{"tags":["Integração DEPS"],"summary":"Atualização de Grupos de Cliente","operationId":"AtualizarGrupoCliente","parameters":[{"name":"empresa","in":"header","description":"Código da Empresa","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Dados do Grupo de Cliente","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrupoCliente"}}},"required":true},"responses":{"200":{"description":"OK","content":{}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Erro"}}}},"429":{"description":"Too Many Requests","content":{}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Erro"}}}}}}}}}
```

## POST /grupoCliente/limite

> Automação de Limite de Crédito de Grupo de Cliente

```json
{"openapi":"3.0.1","info":{"title":"Integração Deps","version":"1.0"},"tags":[{"name":"Integração DEPS","description":"deps"}],"servers":[{"url":"https://localhost/deps/v10"},{"url":"http://localhost/deps/v10"}],"security":[{"csw_auth":[]}],"components":{"securitySchemes":{"csw_auth":{"type":"apiKey","name":"Authorization","in":"header"}},"schemas":{"LimiteGrupo":{"required":["codGrupo"],"type":"object","properties":{"codGrupo":{"type":"string","description":"Código do Grupo de Clientes"},"valorLimiteCredito":{"multipleOf":0.01,"type":"number","description":"Valor do Limite de Crédito"},"usuario":{"type":"string","description":"Código do Usuário do Limite"},"dataVencimento":{"type":"string","description":"Data de Vencimento (YYYY-MM-DD)","format":"date"},"dadosCustomizados":{"type":"array","items":{"$ref":"#/components/schemas/DadosCustomizados"}}}},"DadosCustomizados":{"required":["campo","valor"],"type":"object","properties":{"campo":{"type":"string"},"valor":{"type":"string"}}},"Erro":{"type":"object","properties":{"mensagem":{"type":"string"}}}}},"paths":{"/grupoCliente/limite":{"post":{"tags":["Integração DEPS"],"summary":"Automação de Limite de Crédito de Grupo de Cliente","operationId":"AtualizarLimiteCreditoGrupo","parameters":[{"name":"empresa","in":"header","description":"Código da Empresa","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Dados de Limite de Crédito de Grupo de Cliente","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LimiteGrupo"}}},"required":true},"responses":{"200":{"description":"OK","content":{}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Erro"}}}},"429":{"description":"Too Many Requests","content":{}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Erro"}}}}}}}}}
```


---

# 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://ajuda.consistem.com.br/consistem-api/consistem-erp-api/comercial/integracao-deps-v1.0/integracao-deps.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.
