POST api/VentaAPI

Request Information

URI Parameters

None.

Body Parameters

Venta
NameDescriptionTypeAdditional information
IdVenta

integer

None.

Fecha

date

None.

Cliente

string

None.

Total

decimal number

None.

PagoCon

decimal number

None.

Vuelto

decimal number

None.

detalles

Collection of VentaDetalle

None.

Request Formats

application/json, text/json

Sample:
{
  "IdVenta": 1,
  "Fecha": "2025-12-31T15:48:43.8142297-08:00",
  "Cliente": "sample string 3",
  "Total": 4.0,
  "PagoCon": 5.0,
  "Vuelto": 6.0,
  "detalles": [
    {
      "IdVenta": 1,
      "IdArticulo": 2,
      "Cantidad": 3.0,
      "PrecioCompra": 4.0,
      "PrecioVenta": 5.0,
      "Importe": 15.0,
      "NombreArticulo": "sample string 6"
    },
    {
      "IdVenta": 1,
      "IdArticulo": 2,
      "Cantidad": 3.0,
      "PrecioCompra": 4.0,
      "PrecioVenta": 5.0,
      "Importe": 15.0,
      "NombreArticulo": "sample string 6"
    }
  ]
}

application/xml, text/xml

Sample:
<Venta xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebGOMarketV2.Models">
  <Cliente>sample string 3</Cliente>
  <Fecha>2025-12-31T15:48:43.8142297-08:00</Fecha>
  <IdVenta>1</IdVenta>
  <PagoCon>5</PagoCon>
  <Total>4</Total>
  <Vuelto>6</Vuelto>
  <detalles>
    <VentaDetalle>
      <Cantidad>3</Cantidad>
      <IdArticulo>2</IdArticulo>
      <IdVenta>1</IdVenta>
      <NombreArticulo>sample string 6</NombreArticulo>
      <PrecioCompra>4</PrecioCompra>
      <PrecioVenta>5</PrecioVenta>
    </VentaDetalle>
    <VentaDetalle>
      <Cantidad>3</Cantidad>
      <IdArticulo>2</IdArticulo>
      <IdVenta>1</IdVenta>
      <NombreArticulo>sample string 6</NombreArticulo>
      <PrecioCompra>4</PrecioCompra>
      <PrecioVenta>5</PrecioVenta>
    </VentaDetalle>
  </detalles>
</Venta>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>