POST api/guardarVentaProductos

Request Information

URI Parameters

None.

Body Parameters

Venta
NameDescriptionTypeAdditional information
propiedad

integer

None.

idVenta

integer

None.

consecutivo

string

None.

idCliente

integer

None.

clienteNombre

string

None.

ventaTotal

decimal number

None.

usuario

integer

None.

listadoDetalles

Collection of Detalles

None.

Request Formats

application/json, text/json

Sample:
{
  "propiedad": 1,
  "idVenta": 2,
  "consecutivo": "sample string 3",
  "idCliente": 1,
  "clienteNombre": "sample string 4",
  "ventaTotal": 5.0,
  "usuario": 6,
  "listadoDetalles": [
    {
      "idVentaDetalle": 1,
      "producto": 2,
      "productoText": "sample string 3",
      "presentacion": 4,
      "cantidad": 5,
      "valorUnidad": 6.0,
      "descuento": 7.0,
      "total": 8.0
    },
    {
      "idVentaDetalle": 1,
      "producto": 2,
      "productoText": "sample string 3",
      "presentacion": 4,
      "cantidad": 5,
      "valorUnidad": 6.0,
      "descuento": 7.0,
      "total": 8.0
    }
  ]
}

application/xml, text/xml

Sample:
<Venta xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/mvfwebapi.Models">
  <clienteNombre>sample string 4</clienteNombre>
  <consecutivo>sample string 3</consecutivo>
  <idCliente>1</idCliente>
  <idVenta>2</idVenta>
  <listadoDetalles>
    <Venta.Detalles>
      <cantidad>5</cantidad>
      <descuento>7</descuento>
      <idVentaDetalle>1</idVentaDetalle>
      <presentacion>4</presentacion>
      <producto>2</producto>
      <productoText>sample string 3</productoText>
      <total>8</total>
      <valorUnidad>6</valorUnidad>
    </Venta.Detalles>
    <Venta.Detalles>
      <cantidad>5</cantidad>
      <descuento>7</descuento>
      <idVentaDetalle>1</idVentaDetalle>
      <presentacion>4</presentacion>
      <producto>2</producto>
      <productoText>sample string 3</productoText>
      <total>8</total>
      <valorUnidad>6</valorUnidad>
    </Venta.Detalles>
  </listadoDetalles>
  <propiedad>1</propiedad>
  <usuario>6</usuario>
  <ventaTotal>5</ventaTotal>
</Venta>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.