← HomeFleetPay / API

List issuance authorizations

Parameters, data structure and responses from the versioned contract.

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

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

Both sides of issuance authorization between carriers: concedidas (this company, as subcontractor, authorized these contracting carriers to request counter-CT-e issuance on its behalf) and recebidas (these subcontractors authorized this company). The contracting carrier checks here on whose behalf it may issue before sending subcontratada.cnpj in a batch.

Authentication

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

Parameters

No parameters declared for this operation.

Responses

200 HTTP Response

Active authorizations in both directions.

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 autorizações de emissão (concedidas e recebidas)",
  "operationId": "listEmissionGrants",
  "description": "Os dois lados da autorização de emissão entre transportadoras: `concedidas` (esta empresa,\ncomo subcontratada, autorizou estas contratantes a disparar contra-CT-e em nome dela) e\n`recebidas` (estas subcontratadas autorizaram esta empresa). A contratante consulta aqui\npor quem pode emitir antes de mandar `subcontratada.cnpj` no lote.\n",
  "responses": {
    "200": {
      "description": "As autorizações ativas, nos dois sentidos.",
      "headers": {
        "X-Request-Id": {
          "$ref": "#/components/headers/RequestId"
        }
      },
      "content": {
        "application/json": {}
      }
    },
    "403": {
      "$ref": "#/components/responses/Forbidden"
    },
    "429": {
      "$ref": "#/components/responses/RateLimited"
    },
    "500": {
      "$ref": "#/components/responses/InternalError"
    }
  },
  "method": "GET",
  "path": "/fiscal/cte-subcontratacao/autorizacoes",
  "parameters": []
}