POST api/Ventas

Request Information

URI Parameters

None.

Body Parameters

Tb_Ventas
NameDescriptionTypeAdditional information
Fecha_Ventas

date

None.

Fecha_Apertura

date

None.

Fecha_Cierre

date

None.

Valor_Ventas

decimal number

None.

Cierre_Ventas

string

None.

Observaciones

string

None.

Id_Usuario_Abre

decimal number

None.

Id_Usuario_Cierra

decimal number

None.

ValidacionBase

decimal number

None.

ObservBase

string

None.

Id_compania

decimal number

None.

Cierre_Parcial

string

None.

Ultima_Factura

string

None.

Id_Ventas

decimal number

None.

Id_CentroCostos

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "Fecha_Ventas": "2025-12-29T07:16:28.4326883-05:00",
  "Fecha_Apertura": "2025-12-29T07:16:28.4326883-05:00",
  "Fecha_Cierre": "2025-12-29T07:16:28.4326883-05:00",
  "Valor_Ventas": 1.0,
  "Cierre_Ventas": "sample string 3",
  "Observaciones": "sample string 4",
  "Id_Usuario_Abre": 5.0,
  "Id_Usuario_Cierra": 1.0,
  "ValidacionBase": 1.0,
  "ObservBase": "sample string 6",
  "Id_compania": 1.0,
  "Cierre_Parcial": "sample string 7",
  "Ultima_Factura": "sample string 8",
  "Id_Ventas": 9.0,
  "Id_CentroCostos": 1.0
}

application/xml, text/xml

Sample:
<Tb_Ventas xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Softmarket_Api.Models">
  <Cierre_Parcial>sample string 7</Cierre_Parcial>
  <Cierre_Ventas>sample string 3</Cierre_Ventas>
  <Fecha_Apertura>2025-12-29T07:16:28.4326883-05:00</Fecha_Apertura>
  <Fecha_Cierre>2025-12-29T07:16:28.4326883-05:00</Fecha_Cierre>
  <Fecha_Ventas>2025-12-29T07:16:28.4326883-05:00</Fecha_Ventas>
  <Id_CentroCostos>1</Id_CentroCostos>
  <Id_Usuario_Abre>5</Id_Usuario_Abre>
  <Id_Usuario_Cierra>1</Id_Usuario_Cierra>
  <Id_Ventas>9</Id_Ventas>
  <Id_compania>1</Id_compania>
  <ObservBase>sample string 6</ObservBase>
  <Observaciones>sample string 4</Observaciones>
  <Ultima_Factura>sample string 8</Ultima_Factura>
  <ValidacionBase>1</ValidacionBase>
  <Valor_Ventas>1</Valor_Ventas>
</Tb_Ventas>

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 'Tb_Ventas'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.