---
title: "Incluir nota fiscal de consumidor por XML"
method: POST
path: "/notas/nota-fiscal-consumidor/xml"
tags: ["Notas"]
---

# Incluir nota fiscal de consumidor por XML

`POST /notas/nota-fiscal-consumidor/xml`

## Request

- Base URL: `https://api.tiny.com.br/public-api/v3`
- URL: `https://api.tiny.com.br/public-api/v3/notas/nota-fiscal-consumidor/xml`
- Auth: HTTP bearer

## Request body `multipart/form-data`

- IncluirXmlNotaFiscalRequestModel: 
  - `xml` string, binary
  - `numeroPedido` integer, nullable
  - `lancarContas` 'S' | 'N', nullable: - S - Sim - N - Não
  - `lancarEstoque` 'S' | 'N', nullable: - S - Sim - N - Não

## Response `200`

OK

- IncluirXmlNotaFiscalResponseModel: 
  - `idNota` 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)
