← HomeFleetPay / API

Reprocess failed batch items without duplicating valid items

Parameters, data structure and responses from the versioned contract.

POST/embarcador/solicitacoes-transporte/lotes/{batchId}/reprocessar
reprocessarLoteSolicitacoesTransporteEmbarcadorSandbox Base: https://api.fleetpay.site/v1

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

Authentication

Required Scope
operacao — Operations
Module
Direct Contracting (Shipper)
Target Profiles
Shipper · Transport Manager · Dedicated Fleet Contractor
Schemes
OAuth2 client_credentials (POST /oauth/token) or API Key via Authorization: Bearer / X-Api-Key
[
  {
    "oauth2": []
  },
  {
    "chaveApi": []
  }
]
Availability depends on the environment, enabled scopes and provider. This reference does not execute requests or collect credentials.

Parameters

batchIdpath · stringRequired
Constraints
{
  "type": "string"
}

Request Body

Optional

application/json

itemsarrayOptional

Corrections indexed by item_index of failed items.

Responses

200 HTTP Response

Batch reprocessed without duplicating previously valid items

application/json

successbooleanOptional
dataobjectOptional
404 HTTP Response

Batch not found

application/json

errorobjectOptional
Complete Operation Definition
{
  "tags": [
    "Solicitações e Contratação de Transporte (Embarcador)"
  ],
  "summary": "Reprocessar itens com falha de um lote sem duplicar itens válidos",
  "operationId": "reprocessarLoteSolicitacoesTransporteEmbarcador",
  "parameters": [
    {
      "name": "batchId",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "requestBody": {
    "required": false,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "items": {
              "type": "array",
              "description": "Correções indexadas pelo `item_index` dos itens com falha.",
              "items": {
                "type": "object",
                "required": [
                  "item_index",
                  "payload"
                ],
                "properties": {
                  "item_index": {
                    "type": "integer"
                  },
                  "payload": {
                    "type": "object"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "responses": {
    "200": {
      "description": "Lote reprocessado sem duplicação dos itens anteriormente válidos",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/LoteSolicitacoesTransporteResponse"
          }
        }
      }
    },
    "404": {
      "description": "Lote não encontrado",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Erro"
          }
        }
      }
    }
  },
  "x-fleetpay-scope": "operacao",
  "x-fleetpay-module": "contratacao-direta",
  "x-fleetpay-profiles": [
    "embarcador",
    "gestor",
    "agregado_empresarial"
  ],
  "method": "POST",
  "path": "/embarcador/solicitacoes-transporte/lotes/{batchId}/reprocessar"
}