POST api/registrarPedido

Request Information

URI Parameters

None.

Body Parameters

Pedidos
NameDescriptionTypeAdditional information
Id

integer

None.

Fecha

date

None.

Vendedor_Id

integer

None.

Cliente_Id

integer

None.

Total

decimal number

None.

SubTotal

decimal number

None.

DetallePedido

Collection of DetallePedidos

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Fecha": "2025-06-16T23:30:22.946366-05:00",
  "Vendedor_Id": 2,
  "Cliente_Id": 3,
  "Total": 4.1,
  "SubTotal": 5.1,
  "DetallePedido": [
    {
      "Id": 1,
      "Articulo_Id": 1,
      "Cantidad": 1,
      "PrecioVenta": 2.0
    },
    {
      "Id": 1,
      "Articulo_Id": 1,
      "Cantidad": 1,
      "PrecioVenta": 2.0
    }
  ]
}

application/xml, text/xml

Sample:
<Pedidos xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApiPedidos.Models">
  <Cliente_Id>3</Cliente_Id>
  <DetallePedido>
    <DetallePedidos>
      <Articulo_Id>1</Articulo_Id>
      <Cantidad>1</Cantidad>
      <Id>1</Id>
      <PrecioVenta>2</PrecioVenta>
    </DetallePedidos>
    <DetallePedidos>
      <Articulo_Id>1</Articulo_Id>
      <Cantidad>1</Cantidad>
      <Id>1</Id>
      <PrecioVenta>2</PrecioVenta>
    </DetallePedidos>
  </DetallePedido>
  <Fecha>2025-06-16T23:30:22.946366-05:00</Fecha>
  <Id>1</Id>
  <SubTotal>5.1</SubTotal>
  <Total>4.1</Total>
  <Vendedor_Id>2</Vendedor_Id>
</Pedidos>

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.