POST api/Cargas/Subir

Request Information

URI Parameters

None.

Body Parameters

CargaMovil
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

IdVehiculo

integer

None.

IdConductor

integer

None.

IdCentroCostos

integer

None.

TipoCombustible

TiposCombustible

None.

Odometro

integer

None.

OdometroOcr

integer

None.

Litros

decimal number

None.

CostoTotal

decimal number

None.

EsTanqueLleno

boolean

None.

Latitud

decimal number

None.

Longitud

decimal number

None.

FechaCaptura

date

None.

FotoTicket

Collection of byte

None.

FotoOdometro

Collection of byte

None.

Token

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "a5f98019-3475-44c9-843b-4a66f8f182ee",
  "IdVehiculo": 2,
  "IdConductor": 3,
  "IdCentroCostos": 4,
  "TipoCombustible": 0,
  "Odometro": 5,
  "OdometroOcr": 1,
  "Litros": 6.0,
  "CostoTotal": 7.0,
  "EsTanqueLleno": true,
  "Latitud": 1.1,
  "Longitud": 1.1,
  "FechaCaptura": "2026-10-23T22:09:28.4086992-06:00",
  "FotoTicket": "QEA=",
  "FotoOdometro": "QEA=",
  "Token": "sample string 10"
}

application/xml, text/xml

Sample:
<CargaMovil xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FlotApp.Api.Controllers">
  <Token>sample string 10</Token>
  <CostoTotal>7</CostoTotal>
  <EsTanqueLleno>true</EsTanqueLleno>
  <FechaCaptura>2026-10-23T22:09:28.4086992-06:00</FechaCaptura>
  <FotoOdometro>QEA=</FotoOdometro>
  <FotoTicket>QEA=</FotoTicket>
  <Id>a5f98019-3475-44c9-843b-4a66f8f182ee</Id>
  <IdCentroCostos>4</IdCentroCostos>
  <IdConductor>3</IdConductor>
  <IdVehiculo>2</IdVehiculo>
  <Latitud>1.1</Latitud>
  <Litros>6</Litros>
  <Longitud>1.1</Longitud>
  <Odometro>5</Odometro>
  <OdometroOcr>1</OdometroOcr>
  <TipoCombustible>Ninguno</TipoCombustible>
</CargaMovil>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.