shipper_cnpjstring | nullOptionalShipper CNPJ when applicable.
Parameters, data structure and responses from the versioned contract.
/servicos/importTechnical descriptions are translated from the versioned contract. Original identifiers and JSON are preserved; data examples are omitted.
Receives a JSON batch of services/documents for asynchronous processing in the authenticated company's operational rail.
operacao — Operations[
{
"oauth2": []
},
{
"chaveApi": []
}
]No parameters declared for this operation.
Required
List of service items for batch creation.
application/jsonshipper_cnpjstring | nullOptionalShipper CNPJ when applicable.
itemsarrayRequiredBatch service items.
202 HTTP ResponseBatch received for asynchronous processing.
application/jsondata—Optionalmetaobject | nullOptionaladditionalPropertiestrueambientestringOptional"homologacao" · "producao"401 HTTP ResponseMissing, invalid or cross-environment credential.
403 HTTP ResponseDashboard scope not enabled or resource outside company scope.
422 HTTP ResponseBatch structural validation error.
{
"tags": [
"Parcelas"
],
"operationId": "importarServicosEmLote",
"summary": "Importar serviços e documentos em lote",
"description": "Recebe lote JSON de serviços/documentos para processamento assíncrono no trilho operacional da company autenticada.",
"requestBody": {
"required": true,
"description": "Lista de itens de serviço para criação em lote.",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"items"
],
"properties": {
"shipper_cnpj": {
"type": [
"string",
"null"
],
"description": "CNPJ do embarcador quando aplicável."
},
"items": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
},
"description": "Itens de serviço do lote."
}
}
}
}
}
},
"responses": {
"202": {
"description": "Lote recebido para processamento assíncrono.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"data": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
}
]
},
"meta": {
"type": [
"object",
"null"
],
"additionalProperties": true
},
"ambiente": {
"type": "string",
"enum": [
"homologacao",
"producao"
]
}
}
}
}
}
},
"401": {
"description": "Credencial ausente, inválida ou de outro ambiente."
},
"403": {
"description": "Escopo do painel não habilitado ou recurso fora do escopo da company."
},
"422": {
"description": "Falha de validação estrutural do lote."
}
},
"x-fleetpay-scope": "operacao",
"x-fleetpay-module": "repasses-comprovantes",
"x-fleetpay-profiles": [
"gestor",
"agregado_empresarial",
"transportador_frotista"
],
"method": "POST",
"path": "/servicos/import",
"parameters": []
}