---
updatedAt: 2025-02-17T18:02:35.000Z
agentTools:
  projectIndex: https://dev.rodonaves.com.br/llms.txt
---

# Pesquisa de rastreio de mercadorias em lotes

Retorna uma lista de rastreios de mercadorias

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "1.6.8.0",
    "title": "Rodonaves.Tracking"
  },
  "paths": {
    "/api/v1/tracking/batch": {
      "get": {
        "tags": [
          "Rastreio"
        ],
        "summary": "Pesquisa de rastreio de mercadorias em lotes",
        "description": "Retorna uma lista de rastreios de mercadorias",
        "operationId": "ApiV1TrackingBatchGet",
        "parameters": [
          {
            "name": "TaxIdRegistration",
            "in": "query",
            "description": "CPF/CNPJ",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "CTeNumber",
            "in": "query",
            "description": "Número do CT-e",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "StartDate",
            "in": "query",
            "description": "Data inicial para a pesquisa",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "EndDate",
            "in": "query",
            "description": "Data final para pesquisa",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "Page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "AmountByPage",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "text/plain": {
                "schema": {
                  "uniqueItems": false,
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TrackingResponse"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "uniqueItems": false,
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TrackingResponse"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "uniqueItems": false,
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TrackingResponse"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "500": {
            "description": "Internal Server Error"
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    }
  },
  "x-readme": {
    "samples-languages": [
      "csharp",
      "node",
      "php",
      "javascript",
      "python",
      "java",
      "curl"
    ],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "servers": [
    {
      "url": "//tracking-apigateway.rte.com.br"
    }
  ],
  "components": {
    "securitySchemes": {
      "Bearer": {
        "name": "Authorization",
        "in": "header",
        "type": "apiKey",
        "description": "Autenticação por JWT usando o schema Bearer . Exemplo: \"Bearer {token}\""
      }
    },
    "schemas": {
      "TrackingResponse": {
        "description": "Rastreio",
        "type": "object",
        "properties": {
          "ProtocolNumber": {
            "description": "Número do protocolo",
            "type": "string"
          },
          "BillOfLadingId": {
            "format": "int32",
            "description": "Código do CT-e Novo TMS",
            "type": "integer"
          },
          "CTeNumber": {
            "description": "Número do CT-e",
            "type": "string"
          },
          "SenderDescription": {
            "description": "Nome / Razão Social do Remetente",
            "type": "string"
          },
          "SenderTaxIdRegistration": {
            "description": "CPF / CNPJ do Remetente",
            "type": "string"
          },
          "RecipientDescription": {
            "description": "Nome / Razão Social do Destinatário",
            "type": "string"
          },
          "RecipientTaxIdRegistration": {
            "description": "CPF / CNPJ do Destinatário",
            "type": "string"
          },
          "ExpectedDeliveryDays": {
            "format": "int32",
            "description": "Previsão de entrega.",
            "type": "integer"
          },
          "EmissionDate": {
            "format": "date-time",
            "description": "Data emissão",
            "type": "string"
          },
          "FiscalDocumentNumber": {
            "description": "Número documento fiscal",
            "type": "string"
          },
          "ListFiscalDocument": {
            "description": "Lista com número documento fiscal",
            "uniqueItems": false,
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "SerialCTE": {
            "description": "Número série CTE",
            "type": "string"
          },
          "UnitEmi": {
            "description": "Unidade emissorora",
            "type": "string"
          },
          "Events": {
            "description": "Lista de eventos da mercadoria.",
            "uniqueItems": false,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TrackingEventResponse"
            }
          },
          "IsDeliveryReceiptBlocked": {
            "description": "Comprovante de entrega bloqueado ou não",
            "type": "boolean"
          }
        }
      },
      "TrackingEventResponse": {
        "description": "Eventos",
        "type": "object",
        "properties": {
          "Date": {
            "format": "date-time",
            "description": "Data / Hora - DateTime",
            "type": "string"
          },
          "Description": {
            "description": "Evento (Texto) - string",
            "type": "string"
          },
          "EventCode": {
            "description": "Código do Evendo - string",
            "type": "string"
          },
          "ProcedaCode": {
            "description": "Código Proceda",
            "type": "string"
          },
          "HistoricId": {
            "format": "int32",
            "description": "Sequencia historico",
            "type": "integer"
          }
        }
      }
    }
  }
}
```