PUT api/ListaPrecios/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

LISTAPRECIOS
NameDescriptionTypeAdditional information
Id

decimal number

None.

ProductoId

decimal number

None.

Precio

decimal number

None.

Estado

string

None.

VigenciaInicial

date

None.

VigenciaFinal

date

None.

PRODUCTOS

PRODUCTOS

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1.0,
  "ProductoId": 2.0,
  "Precio": 3.0,
  "Estado": "sample string 4",
  "VigenciaInicial": "2025-12-11T08:13:39.4283351-05:00",
  "VigenciaFinal": "2025-12-11T08:13:39.4283351-05:00",
  "PRODUCTOS": {
    "$id": "2",
    "ProductoId": 1.0,
    "CategoriaId": "sample string 2",
    "Descripcion": "sample string 3",
    "Nombre": "sample string 4",
    "Imagen": "QEA=",
    "Codigo": "sample string 5",
    "Estado": "sample string 6",
    "DETALLEFACTURA": [
      {
        "$id": "3",
        "DetalleId": 1.0,
        "FacturaId": 2.0,
        "ProductoId": 3.0,
        "ValorUnitario": 4.0,
        "Cantidad": 5,
        "ValorTotal": 1.0,
        "Impuesto": 1.0,
        "Estado": "sample string 6",
        "FACTURAS": {
          "$id": "4",
          "FacturaId": 1.0,
          "NumeroFactura": "sample string 2",
          "ClienteId": "sample string 3",
          "Fecha": "2025-12-11T08:13:39.4283351-05:00",
          "Subtotal": 5.0,
          "Total": 6.0,
          "Estado": "sample string 7",
          "MedioPago": "sample string 8",
          "CLIENTES": {
            "$id": "5",
            "ClienteId": "sample string 1",
            "Telefono": "sample string 2",
            "Direccion": "sample string 3",
            "Correo": "sample string 4",
            "PERSONAS": {
              "$id": "6",
              "PersonaId": "sample string 1",
              "TipoDocumentoId": "sample string 2",
              "NumeroDocumento": "sample string 3",
              "Primernombre": "sample string 4",
              "SegundoNombre": "sample string 5",
              "PrimerApellido": "sample string 6",
              "SegundoApellido": "sample string 7",
              "NombreCompleto": "sample string 8",
              "Telefono": "sample string 9",
              "Direccion": "sample string 10",
              "FechaNacimiento": "2025-12-11T08:13:39.4283351-05:00",
              "TipoPersona": "sample string 11",
              "DigitoChequeo": "sample string 12",
              "CLIENTES": {
                "$ref": "5"
              },
              "SEUSUARIOS": {
                "$id": "7",
                "UsuarioId": "sample string 1",
                "Login": "sample string 2",
                "CorreoElectronico": "sample string 3",
                "Clave": "sample string 4",
                "Inicializa": true,
                "Estado": "sample string 6",
                "FechaCreacion": "2025-12-11T08:13:39.4283351-05:00",
                "UsuarioRegistro": "sample string 8",
                "CodigoRol": "sample string 9",
                "PERSONAS": {
                  "$ref": "6"
                }
              }
            },
            "FACTURAS": [
              {
                "$ref": "4"
              },
              {
                "$ref": "4"
              }
            ]
          },
          "DETALLEFACTURA": [
            {
              "$ref": "3"
            },
            {
              "$ref": "3"
            }
          ]
        },
        "PRODUCTOS": {
          "$ref": "2"
        }
      },
      {
        "$ref": "3"
      }
    ],
    "DETALLEORDEN": [
      {
        "$id": "8",
        "DetalleId": 1.0,
        "OrdenId": 2.0,
        "ProductoId": 3.0,
        "Cantidad": 4,
        "Observaciones": "sample string 5",
        "ORDEN": {
          "$id": "9",
          "OrdenId": 1.0,
          "MesaId": 2.0,
          "Fecha": "2025-12-11T08:13:39.4283351-05:00",
          "MeseroId": 4.0,
          "Estado": "sample string 5",
          "DETALLEORDEN": [
            {
              "$ref": "8"
            },
            {
              "$ref": "8"
            }
          ],
          "MESAS": {
            "$id": "10",
            "MesaId": 1.0,
            "Nombre": "sample string 2",
            "Capacidad": 1,
            "Estado": "sample string 3",
            "Ocupacion": true,
            "Zona": "sample string 4",
            "ORDEN": [
              {
                "$ref": "9"
              },
              {
                "$ref": "9"
              }
            ]
          }
        },
        "PRODUCTOS": {
          "$ref": "2"
        }
      },
      {
        "$ref": "8"
      }
    ],
    "LISTAPRECIOS": [
      {
        "$ref": "1"
      },
      {
        "$ref": "1"
      }
    ]
  }
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'LISTAPRECIOS'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.