POST api/Tienda/CrearPedido
Request Information
URI Parameters
None.
Body Parameters
Pedido| Name | Description | Type | Additional information |
|---|---|---|---|
| id_empre | integer |
None. |
|
| id_pedido | integer |
None. |
|
| id_bodega | integer |
None. |
|
| id_user | integer |
None. |
|
| id_fpago | integer |
None. |
|
| id_cliente | integer |
None. |
|
| tx_cliente | string |
None. |
|
| tx_direccion | string |
None. |
|
| tx_telefono | string |
None. |
|
| fe_ing | date |
None. |
|
| va_subiva | decimal number |
None. |
|
| va_subiva0 | decimal number |
None. |
|
| va_iva | decimal number |
None. |
|
| va_total | decimal number |
None. |
|
| va_comi | decimal number |
None. |
|
| tx_obs | string |
None. |
|
| tx_estado | string |
None. |
|
| isBusy | boolean |
None. |
|
| bd_est | integer |
None. |
|
| id_user_asignado | integer |
None. |
|
| tx_ruta_pdf | string |
None. |
|
| listaProductos | Collection of ClassProducto |
None. |
Request Formats
application/json, text/json
Sample:
{
"id_empre": 1,
"id_pedido": 2,
"id_bodega": 3,
"id_user": 4,
"id_fpago": 5,
"id_cliente": 6,
"tx_cliente": "sample string 7",
"tx_direccion": "sample string 8",
"tx_telefono": "sample string 9",
"fe_ing": "2025-10-26T18:54:09.0978666-05:00",
"va_subiva": 11.0,
"va_subiva0": 12.0,
"va_iva": 13.0,
"va_total": 14.0,
"va_comi": 1.0,
"tx_obs": "sample string 15",
"tx_estado": "sample string 16",
"isBusy": true,
"bd_est": 18,
"id_user_asignado": 1,
"tx_ruta_pdf": "sample string 19",
"listaProductos": [
{
"$id": "2",
"id_empre": 1,
"id_arti": 2,
"id_tipo": 3,
"co_etiq": "sample string 4",
"tx_producto": "sample string 5",
"id_subgrupo": 6,
"tx_subgrupo": "sample string 7",
"id_grupo": 8,
"id_categoria": 9,
"tx_grupo": "sample string 10",
"tx_categoria": "sample string 11",
"nu_stoc": 12.1,
"va_pvp": 13.0,
"po_iva": 14.0,
"Cantidad": 15.0,
"Stock": 16.0,
"va_subIva12": 195.0,
"va_subIva0": 0.0,
"va_iva": 27.3,
"Total": 222.3,
"tx_foto_principal": "sample string 17",
"Fotos": [
{
"$id": "3",
"id_empre": 1,
"id_arti": 2,
"tx_foto": "sample string 3",
"nu_orden": 4
},
{
"$ref": "3"
}
]
},
{
"$ref": "2"
}
]
}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample:
Sample not available.