# Cancelamento de Nota Fiscal

cancelamentoNota

## POST /cancelamentoNota

> Cancelamento de Nota Fiscal

```json
{"openapi":"3.0.1","info":{"title":"Loja","version":"1.0"},"tags":[{"name":"Cancelamento de Nota Fiscal","description":"cancelamentoNota"}],"servers":[{"url":"https://localhost/loja/v10"},{"url":"http://localhost/loja/v10"}],"security":[{"csw_auth":[]}],"components":{"securitySchemes":{"csw_auth":{"type":"apiKey","in":"header","name":"Authorization"}},"schemas":{"Erro":{"type":"object","properties":{"mensagem":{"type":"string"}}},"ListaNotaCancelamentoPut":{"type":"object","properties":{"notasCancelamento":{"type":"array","items":{"$ref":"#/components/schemas/NotaCancelamentoPut"}}}},"NotaCancelamentoPut":{"type":"object","required":["dataEmissao","numeroDocumento","tipoDocumento","codECF"],"properties":{"dataEmissao":{"type":"string","format":"date","description":"Data de emissão (YYYY-MM-DD)"},"numeroDocumento":{"type":"integer","maximum":999999999,"description":"Número do documento"},"tipoDocumento":{"type":"integer","description":"Tipo do documento (1-NF, 2-ECF)","enum":[1,2]},"codECF":{"type":"integer","maximum":999999999,"description":"Código do ECF"},"serieFiscal":{"type":"integer","maximum":999,"description":"Série Fiscal"},"motivoCancelamento":{"type":"string","maxLength":30,"description":"Motivo do cancelamento"},"dadosCustomizados":{"type":"array","items":{"$ref":"#/components/schemas/DadosCustomizados"}}}},"DadosCustomizados":{"type":"object","required":["campo","valor"],"properties":{"campo":{"type":"string"},"valor":{"type":"string"}}}}},"paths":{"/cancelamentoNota":{"post":{"summary":"Cancelamento de Nota Fiscal","operationId":"CancelamentoNotaFiscal","tags":["Cancelamento de Nota Fiscal"],"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"}}}}},"parameters":[{"name":"empresa","in":"header","description":"Empresa para Importação do Cancelamento","required":true,"schema":{"type":"integer","minimum":1,"maximum":99999}}],"requestBody":{"description":"notaFiscal","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListaNotaCancelamentoPut"}}}}}}}}
```


---

# 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/loja-v1.0/cancelamento-de-nota-fiscal.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.
