> ## Documentation Index
> Fetch the complete documentation index at: https://api-docs.erp.olist.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Atualizar Código de Rastreamento de Nota Fiscal

> Serviço para cadastrar código de rastreamento em uma nota fiscal.

## Endpoint

```
POST https://api.tiny.com.br/api2/nota.fiscal.atualizar.rastreamento.php
```

## Parâmetros

| Parâmetro            | Tipo   | Ocorrência  | Descrição                                 |
| -------------------- | ------ | ----------- | ----------------------------------------- |
| token                | string | obrigatório | Chave gerada para identificar sua empresa |
| formato              | string | obrigatório | Formato do retorno (json)                 |
| id                   | int    | obrigatório | ID da nota fiscal                         |
| codigo\_rastreamento | string | obrigatório | Código de rastreamento                    |
| url\_rastreamento    | string | opcional    | URL para rastreamento                     |

## Exemplo de chamada

```bash theme={null}
curl -X POST https://api.tiny.com.br/api2/nota.fiscal.atualizar.rastreamento.php \
  -d "token=SEU_TOKEN&formato=json&id=654321&codigo_rastreamento=BR123456789BR"
```
