PUT TeleventaApi/Pedido/ModificarArticuloPedido

Modificamos una línea de un pedido

Request Information

URI Parameters

None.

Body Parameters

Datos necesarios para añadir el artículo al pedido

PedidoModArticuloTeleventaDto
NameDescriptionTypeAdditional information
IdPedido

integer

Required

IdLocalPedido

integer

Required

IdLinea

integer

Required

IdLocalLinea

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:
{
  "IdPedido": 1,
  "IdLocalPedido": 2,
  "IdLinea": 3,
  "IdLocalLinea": 4,
  "IdVendedor": 5,
  "IdArticulo": 6,
  "Cantidad": 7.0,
  "Precio": 8.0,
  "Descuento": 9.0
}

application/x-www-form-urlencoded

Sample:

Sample not available.

application/xml, text/xml

Sample:
<PedidoModArticuloTeleventaDto 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>7</Cantidad>
  <Descuento>9</Descuento>
  <IdArticulo>6</IdArticulo>
  <IdLinea>3</IdLinea>
  <IdLocalLinea>4</IdLocalLinea>
  <IdLocalPedido>2</IdLocalPedido>
  <IdPedido>1</IdPedido>
  <IdVendedor>5</IdVendedor>
  <Precio>8</Precio>
</PedidoModArticuloTeleventaDto>

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>