Skip to main content
GET
/
api
/
v1
/
ventanas
/
:id
Get Ventana
curl --request GET \
  --url https://api.example.com/api/v1/ventanas/:id
{
  "success": true,
  "data": {
    "id": "660e8400-e29b-41d4-a716-446655440000",
    "bancaId": "550e8400-e29b-41d4-a716-446655440000",
    "name": "Ventana Norte",
    "code": "VN001",
    "commissionMarginX": 1.5,
    "address": "789 North Avenue",
    "phone": "+1-234-567-8910",
    "email": "[email protected]",
    "isActive": true,
    "settings": {
      "print": {
        "name": "Receipt Printer",
        "phone": "+1-234-567-8910",
        "width": 58,
        "footer": "Thank you for your business!",
        "barcode": true,
        "bluetoothMacAddress": "AA:BB:CC:DD:EE:FF"
      },
      "theme": "light"
    },
    "deletedAt": null,
    "deletedBy": null,
    "deletedReason": null,
    "createdAt": "2024-03-15T11:00:00Z",
    "updatedAt": "2024-03-15T11:00:00Z"
  }
}

Overview

Retrieves detailed information about a specific ventana (betting window).

Authorization

Required: Valid JWT token (all authenticated users)

Path Parameters

id
string
required
UUID of the ventana to retrieve

Response

success
boolean
Indicates if the request was successful
data
object
The ventana object
{
  "success": true,
  "data": {
    "id": "660e8400-e29b-41d4-a716-446655440000",
    "bancaId": "550e8400-e29b-41d4-a716-446655440000",
    "name": "Ventana Norte",
    "code": "VN001",
    "commissionMarginX": 1.5,
    "address": "789 North Avenue",
    "phone": "+1-234-567-8910",
    "email": "[email protected]",
    "isActive": true,
    "settings": {
      "print": {
        "name": "Receipt Printer",
        "phone": "+1-234-567-8910",
        "width": 58,
        "footer": "Thank you for your business!",
        "barcode": true,
        "bluetoothMacAddress": "AA:BB:CC:DD:EE:FF"
      },
      "theme": "light"
    },
    "deletedAt": null,
    "deletedBy": null,
    "deletedReason": null,
    "createdAt": "2024-03-15T11:00:00Z",
    "updatedAt": "2024-03-15T11:00:00Z"
  }
}

Notes

  • ID must be a valid UUID format
  • Returns 404 if ventana is soft-deleted
  • Response may include related banca information
  • Implementation: src/api/v1/controllers/ventana.controller.ts:40-43

Build docs developers (and LLMs) love