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": "cabcbfa3-fe19-46dd-bae1-6d39f7dc0ae9",
"idEntidad": "sample string 2",
"idUsuario": "2fc188b5-a845-4a0c-a660-a12bd19d0c8d",
"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-09-29T06:08:02.1927898-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-09-29T06:08:02.1927898-06:00</Fecha>
<Id>cabcbfa3-fe19-46dd-bae1-6d39f7dc0ae9</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>2fc188b5-a845-4a0c-a660-a12bd19d0c8d</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 |