---
title: "Gerar nota fiscal do pedido"
method: POST
path: "/pedidos/{idPedido}/gerar-nota-fiscal"
tags: ["Pedidos"]
---

# Gerar nota fiscal do pedido

`POST /pedidos/{idPedido}/gerar-nota-fiscal`

## Request

- Base URL: `https://api.tiny.com.br/public-api/v3`
- URL: `https://api.tiny.com.br/public-api/v3/pedidos/{idPedido}/gerar-nota-fiscal`
- Auth: HTTP bearer

## Path parameters

- `idPedido` integer, required

## Request body

- GerarNotaFiscalPedidoRequestModel: 
  - `modelo` 55 | 65: Modelo da nota fiscal - 55 - NFe - 65 - NFCe

## Response `200`

OK

- GerarNotaFiscalPedidoModelResponse: 
  - `id` integer
  - `numero` integer
  - `serie` integer

## Other responses

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

---

[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)
