POST api/CalcularMonto

Request Information

URI Parameters

None.

Body Parameters

CalcularMontoRequest
NameDescriptionTypeAdditional information
CodigoPostalRemitente

string

None.

CodigoPostalDestinatario

string

None.

Bultos

integer

None.

Peso

decimal number

None.

ValorDeclarado

integer

None.

M3

decimal number

None.

Alto

Collection of decimal number

None.

Ancho

Collection of decimal number

None.

Largo

Collection of decimal number

None.

ModalidadEntregaID

integer

None.

servicio

ServicioRequest

None.

logueo

LogueoRequest

None.

CodigoAgrupacion

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "CodigoPostalRemitente": "sample string 1",
  "CodigoPostalDestinatario": "sample string 2",
  "Bultos": 1,
  "Peso": 1.1,
  "ValorDeclarado": 1,
  "M3": 1.1,
  "Alto": [
    1.1,
    2.1
  ],
  "Ancho": [
    1.1,
    2.1
  ],
  "Largo": [
    1.1,
    2.1
  ],
  "ModalidadEntregaID": 1,
  "servicio": {
    "EsFletePagoDestino": true,
    "EsRemitoconformado": true
  },
  "logueo": {
    "Usuario": "sample string 1",
    "Clave": "sample string 2",
    "CodigoCliente": "sample string 3"
  },
  "CodigoAgrupacion": 3
}

application/xml, text/xml

Sample:
<CalcularMontoRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/apiAndesmar.Request">
  <Alto xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:double>1.1</d2p1:double>
    <d2p1:double>2.1</d2p1:double>
  </Alto>
  <Ancho xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:double>1.1</d2p1:double>
    <d2p1:double>2.1</d2p1:double>
  </Ancho>
  <Bultos>1</Bultos>
  <CodigoAgrupacion>3</CodigoAgrupacion>
  <CodigoPostalDestinatario>sample string 2</CodigoPostalDestinatario>
  <CodigoPostalRemitente>sample string 1</CodigoPostalRemitente>
  <Largo xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:double>1.1</d2p1:double>
    <d2p1:double>2.1</d2p1:double>
  </Largo>
  <M3>1.1</M3>
  <ModalidadEntregaID>1</ModalidadEntregaID>
  <Peso>1.1</Peso>
  <ValorDeclarado>1</ValorDeclarado>
  <logueo>
    <Clave>sample string 2</Clave>
    <CodigoCliente>sample string 3</CodigoCliente>
    <Usuario>sample string 1</Usuario>
  </logueo>
  <servicio>
    <EsFletePagoDestino>true</EsFletePagoDestino>
    <EsRemitoconformado>true</EsRemitoconformado>
  </servicio>
</CalcularMontoRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CalcularMontoRequest'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.