← HomeFleetPay / API

List received CT-e documents

Parameters, data structure and responses from the versioned contract.

GET/fiscal/cte-subcontratacao
listInboundCteSandbox Base: https://api.fleetpay.site/v1

Technical descriptions are translated from the versioned contract. Original identifiers and JSON are preserved; data examples are omitted.

The carrier's inbox: CT-e documents issued by other companies and received by this carrier. This differs from GET /fiscal/cte, which lists documents issued by your company.

Authentication

[
  {
    "oauth2": []
  },
  {
    "chaveApi": []
  }
]
Availability depends on the environment, enabled scopes and provider. This reference does not execute requests or collect credentials.

Parameters

searchquery · stringOptional

Matches the access key, the issuer's CNPJ or its legal name.

Constraints
{
  "type": "string"
}
carrier_rolequery · Optional

Filter by your company's role in the document.

Constraints
{
  "$ref": "#/components/schemas/InboundCteCarrierRole"
}
statusquery · Optional
Constraints
{
  "$ref": "#/components/schemas/InboundCteStatus"
}
fromquery · stringOptional

Start date of RECEIPT (not issuance).

Constraints
{
  "type": "string",
  "format": "date"
}
toquery · stringOptional

End date of RECEIPT (not issuance).

Constraints
{
  "type": "string",
  "format": "date"
}
pagequery · integerOptional
Constraints
{
  "type": "integer",
  "minimum": 1,
  "default": 1
}
per_pagequery · integerOptional
Constraints
{
  "type": "integer",
  "minimum": 1,
  "maximum": 100,
  "default": 25
}

Responses

200 HTTP Response

Received CT-e result page.

application/json

Headers

X-Request-Id

Call correlation identifier.

401 HTTP Response

FleetPay API key missing or invalid.

application/json

Headers

X-Request-Id

Call correlation identifier.

403 HTTP Response

Fiscal scope disabled for the key, or no active carrier associated with the key.

application/json

Headers

X-Request-Id

Call correlation identifier.

429 HTTP Response

Per-carrier limit exceeded.

application/json

Headers

X-Request-Id

Call correlation identifier.

Retry-After

Seconds until another attempt.

500 HTTP Response

Internal failure without operational integration details.

application/json

Headers

X-Request-Id

Call correlation identifier.

Complete Operation Definition
{
  "tags": [
    "CT-e de subcontratação"
  ],
  "summary": "Listar CT-e recebidos",
  "description": "A caixa de entrada da transportadora: os CT-e que **outras empresas** emitiram e que\nchegaram até ela. Não confundir com `GET /fiscal/cte`, que lista o que a sua empresa\nemite.\n",
  "operationId": "listInboundCte",
  "parameters": [
    {
      "name": "search",
      "in": "query",
      "description": "Casa com a chave de acesso, o CNPJ do emitente ou a razão social dele.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "carrier_role",
      "in": "query",
      "description": "Filtra pelo papel da sua empresa no documento.",
      "schema": {
        "$ref": "#/components/schemas/InboundCteCarrierRole"
      }
    },
    {
      "name": "status",
      "in": "query",
      "schema": {
        "$ref": "#/components/schemas/InboundCteStatus"
      }
    },
    {
      "name": "from",
      "in": "query",
      "description": "Data inicial do RECEBIMENTO (não da emissão).",
      "schema": {
        "type": "string",
        "format": "date"
      }
    },
    {
      "name": "to",
      "in": "query",
      "description": "Data final do RECEBIMENTO (não da emissão).",
      "schema": {
        "type": "string",
        "format": "date"
      }
    },
    {
      "$ref": "#/components/parameters/Page"
    },
    {
      "$ref": "#/components/parameters/PerPage"
    }
  ],
  "responses": {
    "200": {
      "$ref": "#/components/responses/InboundCteListOk"
    },
    "401": {
      "$ref": "#/components/responses/Unauthorized"
    },
    "403": {
      "$ref": "#/components/responses/Forbidden"
    },
    "429": {
      "$ref": "#/components/responses/RateLimited"
    },
    "500": {
      "$ref": "#/components/responses/InternalError"
    }
  },
  "method": "GET",
  "path": "/fiscal/cte-subcontratacao"
}