← HomeFleetPay / API

Update vehicle fiscal data

Parameters, data structure and responses from the versioned contract.

PUT/fiscal/veiculos/{id}/dados-fiscais
updateVehicleFiscalDataSandbox 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

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

Parameters

idpath · integerRequired

Integer vehicle ID.

Constraints
{
  "type": "integer",
  "minimum": 1
}

Request Body

Required

application/json

brandstring | nullOptional
maxLength40
modelstring | nullOptional
maxLength60
vehicle_kindinteger | nullOptional
1 · 2
axlesinteger | nullOptional
minimum1
maximum255
km_per_liter_modelnumber | nullOptional
minimum0
maximum999.99
km_per_liter_vehiclenumber | nullOptional
minimum0
maximum999.99
tare_kginteger | nullOptional
minimum1
maximum999999
wheel_typestring | nullOptional
"01" · "02" · "03" · "04" · "05" · "06"
body_typestring | nullOptional
"00" · "01" · "02" · "03" · "04" · "05"
owner_iestring | nullOptional
maxLength20
owner_statestring | nullOptional
minLength2
maxLength2

Responses

200 HTTP Response

Vehicle updated.

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.

404 HTTP Response

Resource not found in the authenticated tenant.

application/json

Headers

X-Request-Id

Call correlation identifier.

422 HTTP Response

Invalid payload, outstanding requirement or business rule.

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": [
    "Veículos"
  ],
  "summary": "Atualizar dados fiscais do veículo",
  "operationId": "updateVehicleFiscalData",
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/VehicleFiscalInput"
        }
      }
    }
  },
  "responses": {
    "200": {
      "$ref": "#/components/responses/VehicleOk"
    },
    "401": {
      "$ref": "#/components/responses/Unauthorized"
    },
    "403": {
      "$ref": "#/components/responses/Forbidden"
    },
    "404": {
      "$ref": "#/components/responses/NotFound"
    },
    "422": {
      "$ref": "#/components/responses/ValidationOrBusinessRuleFailed"
    },
    "429": {
      "$ref": "#/components/responses/RateLimited"
    },
    "500": {
      "$ref": "#/components/responses/InternalError"
    }
  },
  "method": "PUT",
  "path": "/fiscal/veiculos/{id}/dados-fiscais",
  "parameters": [
    {
      "$ref": "#/components/parameters/VehicleId"
    }
  ]
}