POST api/InsertarDetDocErp

Request Information

URI Parameters

None.

Body Parameters

Collection of DetDocERP
NameDescriptionTypeAdditional information
idDetalleNotaVenta

integer

None.

idNotaVentaLinea

integer

None.

codigo

string

None.

categoria

string

None.

descripcion

string

None.

cantidad

integer

None.

valorVenta

decimal number

None.

totalLinea

decimal number

None.

valorCompra

decimal number

None.

costoTotal

decimal number

None.

tipo

integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "idDetalleNotaVenta": 1,
    "idNotaVentaLinea": 2,
    "codigo": "sample string 3",
    "categoria": "sample string 4",
    "descripcion": "sample string 5",
    "cantidad": 6,
    "valorVenta": 7.1,
    "totalLinea": 8.1,
    "valorCompra": 9.1,
    "costoTotal": 10.1,
    "tipo": 11
  },
  {
    "idDetalleNotaVenta": 1,
    "idNotaVentaLinea": 2,
    "codigo": "sample string 3",
    "categoria": "sample string 4",
    "descripcion": "sample string 5",
    "cantidad": 6,
    "valorVenta": 7.1,
    "totalLinea": 8.1,
    "valorCompra": 9.1,
    "costoTotal": 10.1,
    "tipo": 11
  }
]

application/xml, text/xml

Sample:
<ArrayOfDetDocERP xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/apiVentas.Models">
  <DetDocERP>
    <cantidad>6</cantidad>
    <categoria>sample string 4</categoria>
    <codigo>sample string 3</codigo>
    <costoTotal>10.1</costoTotal>
    <descripcion>sample string 5</descripcion>
    <idDetalleNotaVenta>1</idDetalleNotaVenta>
    <idNotaVentaLinea>2</idNotaVentaLinea>
    <tipo>11</tipo>
    <totalLinea>8.1</totalLinea>
    <valorCompra>9.1</valorCompra>
    <valorVenta>7.1</valorVenta>
  </DetDocERP>
  <DetDocERP>
    <cantidad>6</cantidad>
    <categoria>sample string 4</categoria>
    <codigo>sample string 3</codigo>
    <costoTotal>10.1</costoTotal>
    <descripcion>sample string 5</descripcion>
    <idDetalleNotaVenta>1</idDetalleNotaVenta>
    <idNotaVentaLinea>2</idNotaVentaLinea>
    <tipo>11</tipo>
    <totalLinea>8.1</totalLinea>
    <valorCompra>9.1</valorCompra>
    <valorVenta>7.1</valorVenta>
  </DetDocERP>
</ArrayOfDetDocERP>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Object

None.

Response Formats

application/json, text/json

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />