DELETE TeleventaApi/Pedido?id={id}&idLocal={idLocal}
Borramos el pedido según su identificador
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Identificador del pedido |
integer |
Required |
| idLocal |
Identificador del local del pedido |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Cierto si ha sido borrado
PedidoTeleventaDto| Name | Description | Type | Additional 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>