POST api/juego/grabajuego

Request Information

URI Parameters

None.

Body Parameters

FacturaDTO
NameDescriptionTypeAdditional information
VentaId

decimal number

None.

Fecha

date

None.

cliente

string

None.

celular

string

None.

VerdedorId

string

None.

Vendedor

VendedorDTO

None.

Detalles

Collection of DetalleFacturaDTO

None.

Request Formats

application/json, text/json

Sample:
{
  "VentaId": 1.0,
  "Fecha": "2025-11-08T08:12:43.4612012-05:00",
  "cliente": "sample string 3",
  "celular": "sample string 4",
  "VerdedorId": "sample string 5",
  "Vendedor": {
    "$id": "2",
    "VerdedorId": "sample string 1",
    "NombreVendedor": "sample string 2",
    "TelefonoVenderor": "sample string 3",
    "CodigoVendedor": "sample string 4",
    "Porcentaje": 1,
    "ClaveVenderor": "sample string 5",
    "Estado": "sample string 6",
    "CoordinadorId": "sample string 7",
    "Coordinadores": {
      "$id": "3",
      "CoordinadorId": "sample string 1",
      "NombreCoordinador": "sample string 2",
      "CodgCoordinador": "sample string 3",
      "TelefonoCoordinador": "sample string 4",
      "Estado": "sample string 5",
      "CodgDeprtmnt": "sample string 6",
      "Porcentaje": 1,
      "gedeprtmnt": {
        "$id": "4",
        "decod": "sample string 1",
        "denombre": "sample string 2"
      }
    }
  },
  "Detalles": [
    {
      "$id": "5",
      "detalleid": 1.0,
      "VentaId": 2.0,
      "loteriaId": 3,
      "numero": "sample string 4",
      "combinado": true,
      "ApuestaNumero": 6.1,
      "ApuestaCombinado": 7.1,
      "Factura": {
        "$ref": "1"
      }
    },
    {
      "$ref": "5"
    }
  ]
}

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 'FacturaDTO'.

Response Information

Resource Description

JuegoResponseDTO
NameDescriptionTypeAdditional information
NumeroJuego

string

None.

valorVenta

decimal number

None.

Mensaje

string

None.

venta

FacturaResponseDTO

None.

Response Formats

application/json, text/json

Sample:
{
  "NumeroJuego": "sample string 1",
  "valorVenta": 2.1,
  "Mensaje": "sample string 3",
  "venta": {
    "$id": "2",
    "VentaId": 1.0,
    "Fecha": "2025-11-08T08:12:43.5817166-05:00",
    "cliente": "sample string 3",
    "celular": "sample string 4",
    "Detalles": [
      {
        "$id": "3",
        "VentaId": 1.0,
        "loteriaAbrev": "sample string 2",
        "numero": "sample string 3",
        "combinado": true,
        "ApuestaNumero": 5.1,
        "ApuestaCombinado": 6.1,
        "Factura": {
          "$ref": "2"
        }
      },
      {
        "$ref": "3"
      }
    ]
  }
}