POST api/erp/Comandas
Información de la solicitud (Request)
Parámetros URI
Parámetros cuerpo (Body)
AgregarComandaRequest| Nombre | Descripción | Tipo | Información adicional |
|---|---|---|---|
| Id | GUID | ||
| idEntidad | texto | ||
| idUsuario | GUID | ||
| Nombre | texto | ||
| Partidas | Collección de ComandaPartida | ||
| Fecha | fecha |
Request Formats
application/json, text/json
Ejemplo:
{
"Id": "36de52e5-e9e1-4c10-87d2-a11085ea6043",
"idEntidad": "sample string 2",
"idUsuario": "fac91886-891e-4e56-949b-fd347f06340f",
"Nombre": "sample string 4",
"Partidas": [
{
"idProducto": "sample string 1",
"Precio": 2.0,
"Cantidad": 3.0
},
{
"idProducto": "sample string 1",
"Precio": 2.0,
"Cantidad": 3.0
}
],
"Fecha": "2026-11-26T03:27:44.3616929-06:00"
}
application/xml, text/xml
Ejemplo:
<AgregarComandaRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SimanG8.WebAPI.API.ERP.Comandas">
<Fecha>2026-11-26T03:27:44.3616929-06:00</Fecha>
<Id>36de52e5-e9e1-4c10-87d2-a11085ea6043</Id>
<Nombre>sample string 4</Nombre>
<Partidas>
<AgregarComandaRequest.ComandaPartida>
<Cantidad>3</Cantidad>
<Precio>2</Precio>
<idProducto>sample string 1</idProducto>
</AgregarComandaRequest.ComandaPartida>
<AgregarComandaRequest.ComandaPartida>
<Cantidad>3</Cantidad>
<Precio>2</Precio>
<idProducto>sample string 1</idProducto>
</AgregarComandaRequest.ComandaPartida>
</Partidas>
<idEntidad>sample string 2</idEntidad>
<idUsuario>fac91886-891e-4e56-949b-fd347f06340f</idUsuario>
</AgregarComandaRequest>
application/x-www-form-urlencoded
Ejemplo:
Respuesta
Modelo
HttpResponseMessage| Nombre | Descripción | Tipo | Información adicional |
|---|---|---|---|
| Version | Version | ||
| Content | HttpContent | ||
| StatusCode | HttpStatusCode | ||
| ReasonPhrase | texto | ||
| Headers | Collección de Object | ||
| RequestMessage | HttpRequestMessage | ||
| IsSuccessStatusCode | boleano |