# Motivo Segunda Qualidade

Motivo Segunda Qualidade

## GET /motivoSegundaQualidade

> Obter Listagem de Motivos de Segunda Qualidade

```json
{"openapi":"3.0.1","info":{"title":"PPCP Confecção","version":"1.0"},"tags":[{"name":"Motivo Segunda Qualidade","description":"Motivo Segunda Qualidade"}],"servers":[{"url":"https://localhost/ppcpconfeccao/v10"},{"url":"http://localhost/ppcpconfeccao/v10"}],"security":[{"csw_auth":[]}],"components":{"securitySchemes":{"csw_auth":{"type":"apiKey","name":"Authorization","in":"header"}},"schemas":{"ListaMotivoSegundaQualidade":{"type":"object","properties":{"continuationToken":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/MotivoSegundaQualidade"}}}},"MotivoSegundaQualidade":{"type":"object","properties":{"codMotivo":{"type":"integer","description":"Código do Motivo"},"descMotivo":{"type":"string","description":"Descrição do Motivo"},"codOrigem":{"type":"integer","description":"Código da Origem"},"descOrigem":{"type":"string","description":"Descrição da Origem"},"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":{"/motivoSegundaQualidade":{"get":{"tags":["Motivo Segunda Qualidade"],"summary":"Obter Listagem de Motivos de Segunda Qualidade","operationId":"ObterMotivosSegundaQualidade","parameters":[{"name":"continuationToken","in":"query","description":"Identificador da Paginação da Consulta","schema":{"type":"string"}},{"name":"empresas","in":"query","description":"Código das Empresas","required":true,"style":"form","explode":false,"schema":{"type":"array","items":{"type":"integer"}}},{"name":"motivos","in":"query","description":"Código dos Motivos","style":"form","explode":false,"schema":{"type":"array","items":{"type":"integer"}}},{"name":"origens","in":"query","description":"Código das Origens","style":"form","explode":false,"schema":{"type":"array","items":{"type":"integer"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListaMotivoSegundaQualidade"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Erro"}}}}},"429":{"description":"Too Many Requests","content":{}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Erro"}}}}}}}}}
```

## GET /motivoSegundaQualidade/{id}

> Obter Motivo Segunda Qualidade

```json
{"openapi":"3.0.1","info":{"title":"PPCP Confecção","version":"1.0"},"tags":[{"name":"Motivo Segunda Qualidade","description":"Motivo Segunda Qualidade"}],"servers":[{"url":"https://localhost/ppcpconfeccao/v10"},{"url":"http://localhost/ppcpconfeccao/v10"}],"security":[{"csw_auth":[]}],"components":{"securitySchemes":{"csw_auth":{"type":"apiKey","name":"Authorization","in":"header"}},"schemas":{"MotivoSegundaQualidade":{"type":"object","properties":{"codMotivo":{"type":"integer","description":"Código do Motivo"},"descMotivo":{"type":"string","description":"Descrição do Motivo"},"codOrigem":{"type":"integer","description":"Código da Origem"},"descOrigem":{"type":"string","description":"Descrição da Origem"},"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":{"/motivoSegundaQualidade/{id}":{"get":{"tags":["Motivo Segunda Qualidade"],"summary":"Obter Motivo Segunda Qualidade","operationId":"ObterMotivoSegundaQualidade","parameters":[{"name":"empresa","in":"header","description":"Código da Empresa","required":true,"schema":{"type":"integer"}},{"name":"id","in":"path","description":"Código do Motivo","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MotivoSegundaQualidade"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"array","items":{"$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/industrial/ppcp-confeccao-v1.0/motivo-segunda-qualidade.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.
