POST api/guardarCompra
Request Information
URI Parameters
None.
Body Parameters
Compra| Name | Description | Type | Additional information |
|---|---|---|---|
| propiedad | integer |
None. |
|
| idCompra | integer |
None. |
|
| consecutivo | string |
None. |
|
| proveedor | integer |
None. |
|
| producto | integer |
None. |
|
| cantidad | integer |
None. |
|
| valorUnitario | decimal number |
None. |
|
| total | decimal number |
None. |
|
| formaPago | integer |
None. |
|
| usuario | integer |
None. |
|
| ProveedorText | string |
None. |
|
| ProductoText | string |
None. |
|
| FormaPagoText | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"propiedad": 1,
"idCompra": 2,
"consecutivo": "sample string 3",
"proveedor": 4,
"producto": 5,
"cantidad": 6,
"valorUnitario": 7.0,
"total": 8.0,
"formaPago": 9,
"usuario": 10,
"ProveedorText": "sample string 11",
"ProductoText": "sample string 12",
"FormaPagoText": "sample string 13"
}
application/xml, text/xml
Sample:
<Compra xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/mvfwebapi.Models"> <FormaPagoText>sample string 13</FormaPagoText> <ProductoText>sample string 12</ProductoText> <ProveedorText>sample string 11</ProveedorText> <cantidad>6</cantidad> <consecutivo>sample string 3</consecutivo> <formaPago>9</formaPago> <idCompra>2</idCompra> <producto>5</producto> <propiedad>1</propiedad> <proveedor>4</proveedor> <total>8</total> <usuario>10</usuario> <valorUnitario>7</valorUnitario> </Compra>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |