---
title: "Estornar estoque da nota fiscal"
method: POST
path: "/notas/{idNota}/estornar-estoque"
tags: ["Notas"]
---

# Estornar estoque da nota fiscal

`POST /notas/{idNota}/estornar-estoque`

## Request

- Base URL: `https://api.tiny.com.br/public-api/v3`
- URL: `https://api.tiny.com.br/public-api/v3/notas/{idNota}/estornar-estoque`
- Auth: HTTP bearer

Estorna o estoque lançado pela nota fiscal. Retorna 400 quando não existe estoque lançado pela nota, quando o estoque foi lançado pela origem (venda, ordem de serviço etc.) ou se possui lotes de produtos já utilizados na saída.

## Path parameters

- `idNota` integer, required

## Response `204`

No Content

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `500`: Internal Server Error
- `503`: Service Unavailable

## Changes

- **2026-11-03** `107f8d039de2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/olist/apis/olist-erp-api-v3/changes/notas/:idNota/estornar-estoque/post.md)

---

[API](https://skmtc.dev/olist/apis/olist-erp-api-v3.md) - [All operations](https://skmtc.dev/olist/apis/olist-erp-api-v3/llms.txt) - [OpenAPI document](https://skmtc.dev/olist/apis/olist-erp-api-v3/revisions/107f8d039de2?raw)
