POST TeleventaApi/Pedido/CrearPedido

Creamos un pedido nuevo

Request Information

URI Parameters

None.

Body Parameters

Datos necesarios para crear el pedido

PedidoCrearTeleventaDto
NameDescriptionTypeAdditional information
IdCliente

integer

Required

IdLocalCliente

integer

Required

IdDireccionEnvio

integer

Required

IdVendedor

integer

Required

IdArticulo

integer

Required

Cantidad

decimal number

Required

Precio

decimal number

None.

Descuento

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "IdCliente": 1,
  "IdLocalCliente": 2,
  "IdDireccionEnvio": 3,
  "IdVendedor": 4,
  "IdArticulo": 5,
  "Cantidad": 6.0,
  "Precio": 7.0,
  "Descuento": 8.0
}

application/x-www-form-urlencoded

Sample:

Sample not available.

application/xml, text/xml

Sample:
<PedidoCrearTeleventaDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" z:Id="1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" xmlns="http://schemas.datacontract.org/2004/07/Sofycom.Sofygest.Service.Application.Models.Dtos.Televenta">
  <Cantidad>6</Cantidad>
  <Descuento>8</Descuento>
  <IdArticulo>5</IdArticulo>
  <IdCliente>1</IdCliente>
  <IdDireccionEnvio>3</IdDireccionEnvio>
  <IdLocalCliente>2</IdLocalCliente>
  <IdVendedor>4</IdVendedor>
  <Precio>7</Precio>
</PedidoCrearTeleventaDto>

Response Information

Resource Description

PedidoTeleventaDto

PedidoTeleventaDto
NameDescriptionTypeAdditional information
Id

integer

None.

IdLocal

integer

None.

Base

decimal number

None.

Cuota

decimal number

None.

Total

decimal number

None.

ListaLineasPedido

Collection of LineaPedidoTeleventaDto

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "IdLocal": 2,
  "Base": 3.0,
  "Cuota": 4.0,
  "Total": 5.0,
  "ListaLineasPedido": {
    "$id": "2",
    "$values": [
      {
        "$id": "3",
        "Id": 1,
        "IdLocal": 2,
        "Seccion": {
          "$id": "4",
          "Id": 1,
          "IdLocal": 2,
          "Nombre": "sample string 3",
          "Orden": 4
        },
        "Familia": {
          "$ref": "4"
        },
        "Articulo": {
          "$ref": "4"
        },
        "CodigoArticulo": "sample string 3",
        "ReferenciaProveedor": "sample string 4",
        "Descripcion": "sample string 5",
        "Cantidad": 6.0,
        "Precio": 7.0,
        "Descuento": 8.0,
        "Total": 9.0
      },
      {
        "$ref": "3"
      }
    ]
  }
}

application/xml, text/xml

Sample:
<PedidoTeleventaDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" z:Id="1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" xmlns="http://schemas.datacontract.org/2004/07/Sofycom.Sofygest.Service.Application.Models.Dtos.Televenta">
  <Base>3</Base>
  <Cuota>4</Cuota>
  <Id>1</Id>
  <IdLocal>2</IdLocal>
  <ListaLineasPedido z:Id="2" z:Size="2">
    <LineaPedidoTeleventaDto z:Id="3">
      <Articulo xmlns:d4p1="http://schemas.datacontract.org/2004/07/Sofycom.Sofygest.Service.Application.Models.Dtos.Comunes" z:Id="4">
        <d4p1:Id>1</d4p1:Id>
        <d4p1:IdLocal>2</d4p1:IdLocal>
        <d4p1:Nombre z:Id="5">sample string 3</d4p1:Nombre>
        <d4p1:Orden>4</d4p1:Orden>
      </Articulo>
      <Cantidad>6</Cantidad>
      <CodigoArticulo z:Id="6">sample string 3</CodigoArticulo>
      <Descripcion z:Id="7">sample string 5</Descripcion>
      <Descuento>8</Descuento>
      <Familia xmlns:d4p1="http://schemas.datacontract.org/2004/07/Sofycom.Sofygest.Service.Application.Models.Dtos.Comunes" z:Ref="4" i:nil="true" />
      <Id>1</Id>
      <IdLocal>2</IdLocal>
      <Precio>7</Precio>
      <ReferenciaProveedor z:Id="8">sample string 4</ReferenciaProveedor>
      <Seccion xmlns:d4p1="http://schemas.datacontract.org/2004/07/Sofycom.Sofygest.Service.Application.Models.Dtos.Comunes" z:Ref="4" i:nil="true" />
      <Total>9</Total>
    </LineaPedidoTeleventaDto>
    <LineaPedidoTeleventaDto z:Ref="3" i:nil="true" />
  </ListaLineasPedido>
  <Total>5</Total>
</PedidoTeleventaDto>