> For the complete documentation index, see [llms.txt](https://mobile-calendar.gitbook.io/v1/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mobile-calendar.gitbook.io/v1/rest-api/reservations.md).

# Reservations

Create, read, update, and delete operations for reservations/locks.

## GET /reservations

> List reservations (paginated)

```json
{"openapi":"3.0.0","info":{"title":"Public REST API v1 – mobile-calendar.com","version":"1.0.0"},"tags":[{"name":"reservations","description":"Create, read, update, and delete operations for reservations/locks."}],"servers":[{"url":"https://api.mobile-calendar.com/v1/public","description":"Production"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","description":"Pass the token in header: Authorization: Bearer <JWT>","bearerFormat":"JWT","scheme":"bearer"}},"parameters":{"PageParam":{"name":"page","in":"query","description":"Page number (>=1)","required":false,"schema":{"type":"integer","default":1,"minimum":1}},"LimitParam":{"name":"limit","in":"query","description":"Page size (1–200)","required":false,"schema":{"type":"integer","default":25,"maximum":200,"minimum":1}}},"schemas":{"ReservationListResponse":{"description":"List of reservations and/or locks","required":["data","meta"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Reservation"}},"meta":{"$ref":"#/components/schemas/MetaWithPagination"}},"type":"object"},"Reservation":{"description":"Universal reservation object - can be lock, single reservation or group reservation based on 'type' field","required":["type","reservationId","addDate","editDate"],"properties":{"type":{"type":"string","enum":["LOCK","SINGLE","GROUP"]},"reservationId":{"type":"integer"},"employeeId":{"type":"integer","nullable":true},"sourceId":{"type":"integer"},"additionalInfo":{"type":"string","nullable":true},"addDate":{"type":"string","format":"date-time"},"editDate":{"type":"string","format":"date-time"},"client":{"oneOf":[{"$ref":"#/components/schemas/Client"}],"nullable":true,"description":"Full client object - present for SINGLE/GROUP types, null for LOCK"},"reservationNo":{"type":"integer","nullable":true},"otaReservationId":{"description":"Reservation number from the OTA channel. Booking.com: `{bookingId}-{roomReservationId}` (main number before the dash; the suffix identifies the room reservation when a client books more than one room). Null for direct reservations.","type":"string","nullable":true},"groupId":{"type":"integer","nullable":true},"arrival":{"description":"Required for SINGLE/GROUP types","type":"string","format":"date","nullable":true},"departure":{"description":"Required for SINGLE/GROUP types","type":"string","format":"date","nullable":true},"roomId":{"type":"integer","nullable":true},"checkIn":{"type":"string","pattern":"^[0-2][0-9]:[0-5][0-9]$","nullable":true},"checkOut":{"type":"string","pattern":"^[0-2][0-9]:[0-5][0-9]$","nullable":true},"adults":{"type":"integer","nullable":true},"children":{"type":"integer","nullable":true},"kidsAge":{"type":"array","items":{"type":"integer"},"nullable":true},"registration":{"type":"string","enum":["CHECKED_IN","CHECKED_OUT","NONE"],"nullable":true},"doorCode":{"type":"string","nullable":true},"prepayment":{"type":"number","format":"float","nullable":true},"prepaymentDeadline":{"type":"string","format":"date","nullable":true},"paymentStatus":{"type":"string","enum":["NO_PAYMENT","PREPAYMENT_PAID","PAID_ALL"],"nullable":true},"paymentType":{"type":"string","enum":["NONE","CASH_PAYMENT","BANK_TRANSFER_PAYMENT","CREDIT_CARD_PAYMENT","VIRTUAL_CARD_PAYMENT","ONLINE_PAYMENT"],"nullable":true},"currency":{"type":"string","nullable":true},"meal":{"type":"string","enum":["OV","BB","HB","FB","AI","DINNER","BREAKFAST_SUPPER","DINNER_SUPPER","SUPPER"],"nullable":true},"adultsPortion":{"type":"integer","nullable":true},"childrenPortion":{"type":"integer","nullable":true},"additionalServices":{"type":"array","items":{"properties":{"additionalServiceId":{"type":"integer"},"status":{"type":"integer","enum":[0,1]},"price":{"type":"number","format":"float"},"quantity":{"type":"integer","nullable":true}},"type":"object"},"nullable":true},"color":{"type":"string","nullable":true},"price":{"type":"number","format":"float","nullable":true},"pricePerRoom":{"type":"number","format":"float","nullable":true},"pricePerMeal":{"type":"number","format":"float","nullable":true},"discount":{"type":"number","format":"float","nullable":true},"discountType":{"description":"0 - percentage, 1 - fixed amount","type":"integer","enum":[0,1],"nullable":true},"rateId":{"type":"integer","nullable":true},"groupConfig":{"description":"Optional configuration for GROUP type only. For SINGLE and LOCK this field is ALWAYS null. For GROUP: can be null or array of objects with roomId (integer), adults (integer), children (integer), and optional kidsAge (array of integers). Must include all rooms from roomId array. Total adults and children must match main reservation values.","nullable":true}},"type":"object"},"Client":{"description":"Client information","required":["clientId","name"],"properties":{"clientId":{"type":"integer"},"forename":{"type":"string"},"name":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string","format":"email"},"companyName":{"type":"string","nullable":true},"taxId":{"type":"string","nullable":true},"personalId":{"type":"string","nullable":true},"idCard":{"type":"string","nullable":true},"clientType":{"type":"string","enum":["NONE","REGULAR","UNWANTED"]},"address":{"type":"string","nullable":true},"comments":{"type":"string","nullable":true},"vehicleRegistrationNumber":{"type":"string","nullable":true},"countryId":{"type":"integer","nullable":true},"lang":{"description":"Language preference (ISO 639-1)","type":"string"},"addDate":{"description":"Client creation date with timezone","type":"string","format":"date-time"},"editDate":{"description":"Last modification date with timezone","type":"string","format":"date-time","nullable":true}},"type":"object"},"MetaWithPagination":{"description":"Pagination parameters with request tracking in list responses.","required":["totalItems","currentPage","totalPages","itemsPerPage","ruid"],"properties":{"totalItems":{"type":"integer","minimum":0},"currentPage":{"type":"integer","minimum":1},"totalPages":{"type":"integer","minimum":0},"itemsPerPage":{"type":"integer","minimum":1},"ruid":{"description":"Request Unique ID","type":"string","format":"uuid"}},"type":"object"},"ApiProblem401":{"description":"Missing authentication or invalid credentials.","allOf":[{"$ref":"#/components/schemas/ApiProblemBase"},{"properties":{"type":{"description":"401 Unauthorized","type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"instance":{"type":"string"}},"type":"object"}]},"ApiProblemBase":{"description":"RFC 7807 Problem Details (base schema).","required":["type","title","status","detail","instance"],"properties":{"type":{"description":"RFC 7807 base — DO NOT use directly in endpoints.\nIn endpoints reference ApiProblem400/401/403/409/422/429/500.","type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"instance":{"type":"string"}},"type":"object"},"ApiProblem422":{"description":"Input data validation error.","allOf":[{"$ref":"#/components/schemas/ApiProblemBase"},{"properties":{"type":{"description":"422 Unprocessable Entity (validation)","type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"instance":{"type":"string"},"errors":{"description":"Map: field name → error message(s)","type":"object","additionalProperties":{"$ref":"#/components/schemas/ErrorValue"}}},"type":"object"}]},"ErrorValue":{"description":"Single error message or list of messages.","oneOf":[{"description":"Error value in error map can be:\n- single string, or\n- array of strings (multiple messages for one field).","type":"string"},{"type":"array","items":{"type":"string"}}]}}},"paths":{"/reservations":{"get":{"tags":["reservations"],"summary":"List reservations (paginated)","operationId":"listReservations","parameters":[{"$ref":"#/components/parameters/PageParam"},{"$ref":"#/components/parameters/LimitParam"},{"name":"includeLocks","in":"query","description":"Include locks (0,1)","required":false,"schema":{"type":"boolean"}},{"name":"from","in":"query","description":"Filter by arrival date from (YYYY-MM-DD)","required":false,"schema":{"type":"string","format":"date"}},{"name":"to","in":"query","description":"Filter by departure date to (YYYY-MM-DD)","required":false,"schema":{"type":"string","format":"date"}},{"name":"arrival","in":"query","description":"Filter by exact arrival date (YYYY-MM-DD)","required":false,"schema":{"type":"string","format":"date"}},{"name":"departure","in":"query","description":"Filter by exact departure date (YYYY-MM-DD)","required":false,"schema":{"type":"string","format":"date"}},{"name":"addDate","in":"query","description":"Filter by reservation creation date (YYYY-MM-DD)","required":false,"schema":{"type":"string","format":"date"}},{"name":"editDate","in":"query","description":"Filter by last modification date (YYYY-MM-DD)","required":false,"schema":{"type":"string","format":"date"}},{"name":"lastEdit","in":"query","description":"Filter reservations modified since Unix timestamp(6) (int)","required":false,"schema":{"type":"integer"}},{"name":"paymentStatus","in":"query","description":"Filter by payment status - array of statuses","required":false,"schema":{"type":"array","items":{"type":"string","enum":["NO_PAYMENT","PREPAYMENT_PAID","PAID_ALL"]}}},{"name":"sourceId","in":"query","description":"Filter by booking source ID","required":false,"schema":{"type":"integer"}},{"name":"reservationId","in":"query","description":"Filter by specific reservation IDs (array)","required":false,"schema":{"type":"array","items":{"type":"integer"}}},{"name":"roomId","in":"query","description":"Filter by room ID","required":false,"schema":{"type":"integer"}},{"name":"orderBy","in":"query","description":"Sort field","required":false,"schema":{"type":"string","default":"reservationId","enum":["reservationId","arrival","departure","addDate","editDate"]}},{"name":"orderType","in":"query","description":"Sort direction","required":false,"schema":{"type":"string","default":"ASC","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"List of reservations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationListResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiProblem401"}}}},"422":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiProblem422"}}}}}}}}}
```

## POST /reservations

> Create reservation

```json
{"openapi":"3.0.0","info":{"title":"Public REST API v1 – mobile-calendar.com","version":"1.0.0"},"tags":[{"name":"reservations","description":"Create, read, update, and delete operations for reservations/locks."}],"servers":[{"url":"https://api.mobile-calendar.com/v1/public","description":"Production"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","description":"Pass the token in header: Authorization: Bearer <JWT>","bearerFormat":"JWT","scheme":"bearer"}},"schemas":{"ReservationCreateRequest":{"description":"Create reservation, group reservation or lock based on type field","required":["type","arrival","departure","roomId"],"properties":{"type":{"description":"Type of reservation to create","type":"string","enum":["SINGLE","GROUP","LOCK"]},"arrival":{"type":"string","format":"date"},"departure":{"type":"string","format":"date"},"roomId":{"type":"integer"},"sourceId":{"description":"Booking source ID (optional)","type":"integer","nullable":true},"adults":{"type":"integer"},"children":{"type":"integer"},"kidsAge":{"type":"array","items":{"type":"integer"}},"client":{"description":"Client object - REQUIRED for SINGLE/GROUP types, null for LOCK. If clientId is provided, existing client will be updated with provided data. If clientId is not provided, new client will be created (name is required for new clients)","properties":{"clientId":{"description":"Optional - if provided, will update existing client","type":"integer","nullable":true},"forename":{"type":"string","nullable":true},"name":{"description":"Required when creating new client","type":"string","nullable":true},"phone":{"type":"string","nullable":true},"email":{"type":"string","format":"email","nullable":true},"companyName":{"type":"string","nullable":true},"taxId":{"type":"string","nullable":true},"personalId":{"type":"string","nullable":true},"idCard":{"type":"string","nullable":true},"clientType":{"type":"string","enum":["NONE","REGULAR","UNWANTED"],"nullable":true},"address":{"type":"string","nullable":true},"comments":{"type":"string","nullable":true},"vehicleRegistrationNumber":{"type":"string","nullable":true},"countryId":{"type":"integer","nullable":true},"lang":{"type":"string","nullable":true}},"type":"object","nullable":true},"checkIn":{"type":"string","pattern":"^[0-2][0-9]:[0-5][0-9]$"},"checkOut":{"type":"string","pattern":"^[0-2][0-9]:[0-5][0-9]$"},"additionalInfo":{"type":"string","nullable":true},"currency":{"type":"string"},"meal":{"type":"string","enum":["OV","BB","HB","FB","AI","DINNER","BREAKFAST_SUPPER","DINNER_SUPPER","SUPPER"]},"doorCode":{"type":"string"},"prepayment":{"type":"number","format":"float"},"prepaymentDeadline":{"type":"string","format":"date","nullable":true},"paymentStatus":{"type":"string","enum":["NO_PAYMENT","PREPAYMENT_PAID","PAID_ALL"]},"paymentType":{"type":"string","enum":["NONE","CASH_PAYMENT","BANK_TRANSFER_PAYMENT","CREDIT_CARD_PAYMENT","VIRTUAL_CARD_PAYMENT","ONLINE_PAYMENT"]},"registration":{"type":"string","enum":["CHECKED_IN","CHECKED_OUT","NONE"],"nullable":true},"adultsPortion":{"type":"integer"},"childrenPortion":{"type":"integer"},"additionalServices":{"type":"array","items":{"properties":{"additionalServiceId":{"type":"integer"},"status":{"type":"integer","enum":[0,1]},"price":{"type":"number","format":"float"},"quantity":{"type":"integer","nullable":true}},"type":"object"},"nullable":true},"color":{"type":"string","nullable":true},"pricePerRoom":{"type":"number","format":"float"},"pricePerMeal":{"type":"number","format":"float"},"discount":{"type":"number","format":"float"},"discountType":{"type":"integer","enum":[0,1]},"rateId":{"type":"integer","nullable":true},"groupConfig":{"description":"Optional: For GROUP type only. Ignored for SINGLE and LOCK. Array of objects with roomId (int), adults (int), children (int), and optional kidsAge (int[]). Must include all roomIds from main roomId array. Total adults/children must match main reservation values.","nullable":true}},"type":"object"},"Reservation":{"description":"Universal reservation object - can be lock, single reservation or group reservation based on 'type' field","required":["type","reservationId","addDate","editDate"],"properties":{"type":{"type":"string","enum":["LOCK","SINGLE","GROUP"]},"reservationId":{"type":"integer"},"employeeId":{"type":"integer","nullable":true},"sourceId":{"type":"integer"},"additionalInfo":{"type":"string","nullable":true},"addDate":{"type":"string","format":"date-time"},"editDate":{"type":"string","format":"date-time"},"client":{"oneOf":[{"$ref":"#/components/schemas/Client"}],"nullable":true,"description":"Full client object - present for SINGLE/GROUP types, null for LOCK"},"reservationNo":{"type":"integer","nullable":true},"otaReservationId":{"description":"Reservation number from the OTA channel. Booking.com: `{bookingId}-{roomReservationId}` (main number before the dash; the suffix identifies the room reservation when a client books more than one room). Null for direct reservations.","type":"string","nullable":true},"groupId":{"type":"integer","nullable":true},"arrival":{"description":"Required for SINGLE/GROUP types","type":"string","format":"date","nullable":true},"departure":{"description":"Required for SINGLE/GROUP types","type":"string","format":"date","nullable":true},"roomId":{"type":"integer","nullable":true},"checkIn":{"type":"string","pattern":"^[0-2][0-9]:[0-5][0-9]$","nullable":true},"checkOut":{"type":"string","pattern":"^[0-2][0-9]:[0-5][0-9]$","nullable":true},"adults":{"type":"integer","nullable":true},"children":{"type":"integer","nullable":true},"kidsAge":{"type":"array","items":{"type":"integer"},"nullable":true},"registration":{"type":"string","enum":["CHECKED_IN","CHECKED_OUT","NONE"],"nullable":true},"doorCode":{"type":"string","nullable":true},"prepayment":{"type":"number","format":"float","nullable":true},"prepaymentDeadline":{"type":"string","format":"date","nullable":true},"paymentStatus":{"type":"string","enum":["NO_PAYMENT","PREPAYMENT_PAID","PAID_ALL"],"nullable":true},"paymentType":{"type":"string","enum":["NONE","CASH_PAYMENT","BANK_TRANSFER_PAYMENT","CREDIT_CARD_PAYMENT","VIRTUAL_CARD_PAYMENT","ONLINE_PAYMENT"],"nullable":true},"currency":{"type":"string","nullable":true},"meal":{"type":"string","enum":["OV","BB","HB","FB","AI","DINNER","BREAKFAST_SUPPER","DINNER_SUPPER","SUPPER"],"nullable":true},"adultsPortion":{"type":"integer","nullable":true},"childrenPortion":{"type":"integer","nullable":true},"additionalServices":{"type":"array","items":{"properties":{"additionalServiceId":{"type":"integer"},"status":{"type":"integer","enum":[0,1]},"price":{"type":"number","format":"float"},"quantity":{"type":"integer","nullable":true}},"type":"object"},"nullable":true},"color":{"type":"string","nullable":true},"price":{"type":"number","format":"float","nullable":true},"pricePerRoom":{"type":"number","format":"float","nullable":true},"pricePerMeal":{"type":"number","format":"float","nullable":true},"discount":{"type":"number","format":"float","nullable":true},"discountType":{"description":"0 - percentage, 1 - fixed amount","type":"integer","enum":[0,1],"nullable":true},"rateId":{"type":"integer","nullable":true},"groupConfig":{"description":"Optional configuration for GROUP type only. For SINGLE and LOCK this field is ALWAYS null. For GROUP: can be null or array of objects with roomId (integer), adults (integer), children (integer), and optional kidsAge (array of integers). Must include all rooms from roomId array. Total adults and children must match main reservation values.","nullable":true}},"type":"object"},"Client":{"description":"Client information","required":["clientId","name"],"properties":{"clientId":{"type":"integer"},"forename":{"type":"string"},"name":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string","format":"email"},"companyName":{"type":"string","nullable":true},"taxId":{"type":"string","nullable":true},"personalId":{"type":"string","nullable":true},"idCard":{"type":"string","nullable":true},"clientType":{"type":"string","enum":["NONE","REGULAR","UNWANTED"]},"address":{"type":"string","nullable":true},"comments":{"type":"string","nullable":true},"vehicleRegistrationNumber":{"type":"string","nullable":true},"countryId":{"type":"integer","nullable":true},"lang":{"description":"Language preference (ISO 639-1)","type":"string"},"addDate":{"description":"Client creation date with timezone","type":"string","format":"date-time"},"editDate":{"description":"Last modification date with timezone","type":"string","format":"date-time","nullable":true}},"type":"object"},"MetaWithRuid":{"description":"Metadata with request tracking.","required":["ruid"],"properties":{"ruid":{"description":"Request Unique ID","type":"string","format":"uuid"}},"type":"object"},"ApiProblem400":{"description":"Request syntax/format error.","allOf":[{"$ref":"#/components/schemas/ApiProblemBase"},{"properties":{"type":{"description":"400 Bad Request","type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"instance":{"type":"string"}},"type":"object"}]},"ApiProblemBase":{"description":"RFC 7807 Problem Details (base schema).","required":["type","title","status","detail","instance"],"properties":{"type":{"description":"RFC 7807 base — DO NOT use directly in endpoints.\nIn endpoints reference ApiProblem400/401/403/409/422/429/500.","type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"instance":{"type":"string"}},"type":"object"},"ApiProblem401":{"description":"Missing authentication or invalid credentials.","allOf":[{"$ref":"#/components/schemas/ApiProblemBase"},{"properties":{"type":{"description":"401 Unauthorized","type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"instance":{"type":"string"}},"type":"object"}]},"ApiProblem422":{"description":"Input data validation error.","allOf":[{"$ref":"#/components/schemas/ApiProblemBase"},{"properties":{"type":{"description":"422 Unprocessable Entity (validation)","type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"instance":{"type":"string"},"errors":{"description":"Map: field name → error message(s)","type":"object","additionalProperties":{"$ref":"#/components/schemas/ErrorValue"}}},"type":"object"}]},"ErrorValue":{"description":"Single error message or list of messages.","oneOf":[{"description":"Error value in error map can be:\n- single string, or\n- array of strings (multiple messages for one field).","type":"string"},{"type":"array","items":{"type":"string"}}]}}},"paths":{"/reservations":{"post":{"tags":["reservations"],"summary":"Create reservation","operationId":"createReservation","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationCreateRequest"}}}},"responses":{"201":{"description":"Created","headers":{"Location":{"description":"URL of the new resource","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Reservation"},"meta":{"$ref":"#/components/schemas/MetaWithRuid"}},"type":"object"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiProblem400"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiProblem401"}}}},"422":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiProblem422"}}}}}}}}}
```

## GET /reservations/{id}

> Get reservation by ID

```json
{"openapi":"3.0.0","info":{"title":"Public REST API v1 – mobile-calendar.com","version":"1.0.0"},"tags":[{"name":"reservations","description":"Create, read, update, and delete operations for reservations/locks."}],"servers":[{"url":"https://api.mobile-calendar.com/v1/public","description":"Production"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","description":"Pass the token in header: Authorization: Bearer <JWT>","bearerFormat":"JWT","scheme":"bearer"}},"schemas":{"Reservation":{"description":"Universal reservation object - can be lock, single reservation or group reservation based on 'type' field","required":["type","reservationId","addDate","editDate"],"properties":{"type":{"type":"string","enum":["LOCK","SINGLE","GROUP"]},"reservationId":{"type":"integer"},"employeeId":{"type":"integer","nullable":true},"sourceId":{"type":"integer"},"additionalInfo":{"type":"string","nullable":true},"addDate":{"type":"string","format":"date-time"},"editDate":{"type":"string","format":"date-time"},"client":{"oneOf":[{"$ref":"#/components/schemas/Client"}],"nullable":true,"description":"Full client object - present for SINGLE/GROUP types, null for LOCK"},"reservationNo":{"type":"integer","nullable":true},"otaReservationId":{"description":"Reservation number from the OTA channel. Booking.com: `{bookingId}-{roomReservationId}` (main number before the dash; the suffix identifies the room reservation when a client books more than one room). Null for direct reservations.","type":"string","nullable":true},"groupId":{"type":"integer","nullable":true},"arrival":{"description":"Required for SINGLE/GROUP types","type":"string","format":"date","nullable":true},"departure":{"description":"Required for SINGLE/GROUP types","type":"string","format":"date","nullable":true},"roomId":{"type":"integer","nullable":true},"checkIn":{"type":"string","pattern":"^[0-2][0-9]:[0-5][0-9]$","nullable":true},"checkOut":{"type":"string","pattern":"^[0-2][0-9]:[0-5][0-9]$","nullable":true},"adults":{"type":"integer","nullable":true},"children":{"type":"integer","nullable":true},"kidsAge":{"type":"array","items":{"type":"integer"},"nullable":true},"registration":{"type":"string","enum":["CHECKED_IN","CHECKED_OUT","NONE"],"nullable":true},"doorCode":{"type":"string","nullable":true},"prepayment":{"type":"number","format":"float","nullable":true},"prepaymentDeadline":{"type":"string","format":"date","nullable":true},"paymentStatus":{"type":"string","enum":["NO_PAYMENT","PREPAYMENT_PAID","PAID_ALL"],"nullable":true},"paymentType":{"type":"string","enum":["NONE","CASH_PAYMENT","BANK_TRANSFER_PAYMENT","CREDIT_CARD_PAYMENT","VIRTUAL_CARD_PAYMENT","ONLINE_PAYMENT"],"nullable":true},"currency":{"type":"string","nullable":true},"meal":{"type":"string","enum":["OV","BB","HB","FB","AI","DINNER","BREAKFAST_SUPPER","DINNER_SUPPER","SUPPER"],"nullable":true},"adultsPortion":{"type":"integer","nullable":true},"childrenPortion":{"type":"integer","nullable":true},"additionalServices":{"type":"array","items":{"properties":{"additionalServiceId":{"type":"integer"},"status":{"type":"integer","enum":[0,1]},"price":{"type":"number","format":"float"},"quantity":{"type":"integer","nullable":true}},"type":"object"},"nullable":true},"color":{"type":"string","nullable":true},"price":{"type":"number","format":"float","nullable":true},"pricePerRoom":{"type":"number","format":"float","nullable":true},"pricePerMeal":{"type":"number","format":"float","nullable":true},"discount":{"type":"number","format":"float","nullable":true},"discountType":{"description":"0 - percentage, 1 - fixed amount","type":"integer","enum":[0,1],"nullable":true},"rateId":{"type":"integer","nullable":true},"groupConfig":{"description":"Optional configuration for GROUP type only. For SINGLE and LOCK this field is ALWAYS null. For GROUP: can be null or array of objects with roomId (integer), adults (integer), children (integer), and optional kidsAge (array of integers). Must include all rooms from roomId array. Total adults and children must match main reservation values.","nullable":true}},"type":"object"},"Client":{"description":"Client information","required":["clientId","name"],"properties":{"clientId":{"type":"integer"},"forename":{"type":"string"},"name":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string","format":"email"},"companyName":{"type":"string","nullable":true},"taxId":{"type":"string","nullable":true},"personalId":{"type":"string","nullable":true},"idCard":{"type":"string","nullable":true},"clientType":{"type":"string","enum":["NONE","REGULAR","UNWANTED"]},"address":{"type":"string","nullable":true},"comments":{"type":"string","nullable":true},"vehicleRegistrationNumber":{"type":"string","nullable":true},"countryId":{"type":"integer","nullable":true},"lang":{"description":"Language preference (ISO 639-1)","type":"string"},"addDate":{"description":"Client creation date with timezone","type":"string","format":"date-time"},"editDate":{"description":"Last modification date with timezone","type":"string","format":"date-time","nullable":true}},"type":"object"},"MetaWithRuid":{"description":"Metadata with request tracking.","required":["ruid"],"properties":{"ruid":{"description":"Request Unique ID","type":"string","format":"uuid"}},"type":"object"},"ApiProblem401":{"description":"Missing authentication or invalid credentials.","allOf":[{"$ref":"#/components/schemas/ApiProblemBase"},{"properties":{"type":{"description":"401 Unauthorized","type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"instance":{"type":"string"}},"type":"object"}]},"ApiProblemBase":{"description":"RFC 7807 Problem Details (base schema).","required":["type","title","status","detail","instance"],"properties":{"type":{"description":"RFC 7807 base — DO NOT use directly in endpoints.\nIn endpoints reference ApiProblem400/401/403/409/422/429/500.","type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"instance":{"type":"string"}},"type":"object"},"ApiProblem404":{"description":"Resource specified in the request was not found.","allOf":[{"$ref":"#/components/schemas/ApiProblemBase"},{"properties":{"type":{"description":"404 Not Found","type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"instance":{"type":"string"}},"type":"object"}]}}},"paths":{"/reservations/{id}":{"get":{"tags":["reservations"],"summary":"Get reservation by ID","operationId":"getReservation","parameters":[{"name":"id","in":"path","description":"Reservation ID","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Reservation"},"meta":{"$ref":"#/components/schemas/MetaWithRuid"}},"type":"object"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiProblem401"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiProblem404"}}}}}}}}}
```

## DELETE /reservations/{id}

> Delete reservation

```json
{"openapi":"3.0.0","info":{"title":"Public REST API v1 – mobile-calendar.com","version":"1.0.0"},"tags":[{"name":"reservations","description":"Create, read, update, and delete operations for reservations/locks."}],"servers":[{"url":"https://api.mobile-calendar.com/v1/public","description":"Production"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","description":"Pass the token in header: Authorization: Bearer <JWT>","bearerFormat":"JWT","scheme":"bearer"}},"schemas":{"ApiProblem401":{"description":"Missing authentication or invalid credentials.","allOf":[{"$ref":"#/components/schemas/ApiProblemBase"},{"properties":{"type":{"description":"401 Unauthorized","type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"instance":{"type":"string"}},"type":"object"}]},"ApiProblemBase":{"description":"RFC 7807 Problem Details (base schema).","required":["type","title","status","detail","instance"],"properties":{"type":{"description":"RFC 7807 base — DO NOT use directly in endpoints.\nIn endpoints reference ApiProblem400/401/403/409/422/429/500.","type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"instance":{"type":"string"}},"type":"object"},"ApiProblem404":{"description":"Resource specified in the request was not found.","allOf":[{"$ref":"#/components/schemas/ApiProblemBase"},{"properties":{"type":{"description":"404 Not Found","type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"instance":{"type":"string"}},"type":"object"}]}}},"paths":{"/reservations/{id}":{"delete":{"tags":["reservations"],"summary":"Delete reservation","operationId":"deleteReservation","parameters":[{"name":"id","in":"path","description":"Reservation ID","required":true,"schema":{"type":"integer"}},{"name":"deleteAllGroup","in":"query","description":"Delete all reservations in the group (if part of a group) `0 | 1`","required":false,"schema":{"type":"bool"}}],"responses":{"204":{"description":"Deleted successfully","headers":{"RUID":{"description":"Request unique identifier","required":true,"schema":{"type":"string"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiProblem401"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiProblem404"}}}}}}}}}
```

## PATCH /reservations/{id}

> Update reservation

```json
{"openapi":"3.0.0","info":{"title":"Public REST API v1 – mobile-calendar.com","version":"1.0.0"},"tags":[{"name":"reservations","description":"Create, read, update, and delete operations for reservations/locks."}],"servers":[{"url":"https://api.mobile-calendar.com/v1/public","description":"Production"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","description":"Pass the token in header: Authorization: Bearer <JWT>","bearerFormat":"JWT","scheme":"bearer"}},"schemas":{"ReservationUpdateRequest":{"description":"Update reservation, group reservation or lock. All fields are optional - send only fields you want to change. Note: type cannot be changed after creation.","properties":{"arrival":{"type":"string","format":"date"},"departure":{"type":"string","format":"date"},"roomId":{"type":"integer"},"sourceId":{"description":"Booking source ID (optional)","type":"integer","nullable":true},"adults":{"type":"integer"},"children":{"type":"integer"},"kidsAge":{"type":"array","items":{"type":"integer"}},"client":{"description":"Client object - can contain clientId to update existing client data, or full client data to create new client","properties":{"clientId":{"type":"integer","nullable":true},"forename":{"type":"string","nullable":true},"name":{"type":"string","nullable":true},"phone":{"type":"string","nullable":true},"email":{"type":"string","format":"email","nullable":true},"companyName":{"type":"string","nullable":true},"taxId":{"type":"string","nullable":true},"personalId":{"type":"string","nullable":true},"idCard":{"type":"string","nullable":true},"clientType":{"type":"string","enum":["NONE","REGULAR","UNWANTED"],"nullable":true},"address":{"type":"string","nullable":true},"comments":{"type":"string","nullable":true},"vehicleRegistrationNumber":{"type":"string","nullable":true},"countryId":{"type":"integer","nullable":true},"lang":{"type":"string","nullable":true}},"type":"object","nullable":true},"checkIn":{"type":"string","pattern":"^[0-2][0-9]:[0-5][0-9]$"},"checkOut":{"type":"string","pattern":"^[0-2][0-9]:[0-5][0-9]$"},"additionalInfo":{"type":"string","nullable":true},"currency":{"type":"string"},"meal":{"type":"string","enum":["OV","BB","HB","FB","AI","DINNER","BREAKFAST_SUPPER","DINNER_SUPPER","SUPPER"]},"doorCode":{"type":"string"},"prepayment":{"type":"number","format":"float"},"prepaymentDeadline":{"type":"string","format":"date","nullable":true},"paymentStatus":{"type":"string","enum":["NO_PAYMENT","PREPAYMENT_PAID","PAID_ALL"]},"paymentType":{"type":"string","enum":["NONE","CASH_PAYMENT","BANK_TRANSFER_PAYMENT","CREDIT_CARD_PAYMENT","VIRTUAL_CARD_PAYMENT","ONLINE_PAYMENT"]},"registration":{"type":"string","enum":["CHECKED_IN","CHECKED_OUT","NONE"],"nullable":true},"adultsPortion":{"type":"integer"},"childrenPortion":{"type":"integer"},"additionalServices":{"type":"array","items":{"properties":{"additionalServiceId":{"type":"integer"},"status":{"type":"integer","enum":[0,1]},"price":{"type":"number","format":"float"},"quantity":{"type":"integer","nullable":true}},"type":"object"},"nullable":true},"color":{"type":"string","nullable":true},"pricePerRoom":{"type":"number","format":"float"},"pricePerMeal":{"type":"number","format":"float"},"discount":{"type":"number","format":"float"},"discountType":{"type":"integer","enum":[0,1]},"rateId":{"type":"integer","nullable":true},"groupConfig":{"description":"Optional: For GROUP type only. Ignored for SINGLE and LOCK. Array of objects with roomId (int), adults (int), children (int), and optional kidsAge (int[]). Must include all roomIds from main roomId array. Total adults/children must match main reservation values.","nullable":true}},"type":"object"},"Reservation":{"description":"Universal reservation object - can be lock, single reservation or group reservation based on 'type' field","required":["type","reservationId","addDate","editDate"],"properties":{"type":{"type":"string","enum":["LOCK","SINGLE","GROUP"]},"reservationId":{"type":"integer"},"employeeId":{"type":"integer","nullable":true},"sourceId":{"type":"integer"},"additionalInfo":{"type":"string","nullable":true},"addDate":{"type":"string","format":"date-time"},"editDate":{"type":"string","format":"date-time"},"client":{"oneOf":[{"$ref":"#/components/schemas/Client"}],"nullable":true,"description":"Full client object - present for SINGLE/GROUP types, null for LOCK"},"reservationNo":{"type":"integer","nullable":true},"otaReservationId":{"description":"Reservation number from the OTA channel. Booking.com: `{bookingId}-{roomReservationId}` (main number before the dash; the suffix identifies the room reservation when a client books more than one room). Null for direct reservations.","type":"string","nullable":true},"groupId":{"type":"integer","nullable":true},"arrival":{"description":"Required for SINGLE/GROUP types","type":"string","format":"date","nullable":true},"departure":{"description":"Required for SINGLE/GROUP types","type":"string","format":"date","nullable":true},"roomId":{"type":"integer","nullable":true},"checkIn":{"type":"string","pattern":"^[0-2][0-9]:[0-5][0-9]$","nullable":true},"checkOut":{"type":"string","pattern":"^[0-2][0-9]:[0-5][0-9]$","nullable":true},"adults":{"type":"integer","nullable":true},"children":{"type":"integer","nullable":true},"kidsAge":{"type":"array","items":{"type":"integer"},"nullable":true},"registration":{"type":"string","enum":["CHECKED_IN","CHECKED_OUT","NONE"],"nullable":true},"doorCode":{"type":"string","nullable":true},"prepayment":{"type":"number","format":"float","nullable":true},"prepaymentDeadline":{"type":"string","format":"date","nullable":true},"paymentStatus":{"type":"string","enum":["NO_PAYMENT","PREPAYMENT_PAID","PAID_ALL"],"nullable":true},"paymentType":{"type":"string","enum":["NONE","CASH_PAYMENT","BANK_TRANSFER_PAYMENT","CREDIT_CARD_PAYMENT","VIRTUAL_CARD_PAYMENT","ONLINE_PAYMENT"],"nullable":true},"currency":{"type":"string","nullable":true},"meal":{"type":"string","enum":["OV","BB","HB","FB","AI","DINNER","BREAKFAST_SUPPER","DINNER_SUPPER","SUPPER"],"nullable":true},"adultsPortion":{"type":"integer","nullable":true},"childrenPortion":{"type":"integer","nullable":true},"additionalServices":{"type":"array","items":{"properties":{"additionalServiceId":{"type":"integer"},"status":{"type":"integer","enum":[0,1]},"price":{"type":"number","format":"float"},"quantity":{"type":"integer","nullable":true}},"type":"object"},"nullable":true},"color":{"type":"string","nullable":true},"price":{"type":"number","format":"float","nullable":true},"pricePerRoom":{"type":"number","format":"float","nullable":true},"pricePerMeal":{"type":"number","format":"float","nullable":true},"discount":{"type":"number","format":"float","nullable":true},"discountType":{"description":"0 - percentage, 1 - fixed amount","type":"integer","enum":[0,1],"nullable":true},"rateId":{"type":"integer","nullable":true},"groupConfig":{"description":"Optional configuration for GROUP type only. For SINGLE and LOCK this field is ALWAYS null. For GROUP: can be null or array of objects with roomId (integer), adults (integer), children (integer), and optional kidsAge (array of integers). Must include all rooms from roomId array. Total adults and children must match main reservation values.","nullable":true}},"type":"object"},"Client":{"description":"Client information","required":["clientId","name"],"properties":{"clientId":{"type":"integer"},"forename":{"type":"string"},"name":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string","format":"email"},"companyName":{"type":"string","nullable":true},"taxId":{"type":"string","nullable":true},"personalId":{"type":"string","nullable":true},"idCard":{"type":"string","nullable":true},"clientType":{"type":"string","enum":["NONE","REGULAR","UNWANTED"]},"address":{"type":"string","nullable":true},"comments":{"type":"string","nullable":true},"vehicleRegistrationNumber":{"type":"string","nullable":true},"countryId":{"type":"integer","nullable":true},"lang":{"description":"Language preference (ISO 639-1)","type":"string"},"addDate":{"description":"Client creation date with timezone","type":"string","format":"date-time"},"editDate":{"description":"Last modification date with timezone","type":"string","format":"date-time","nullable":true}},"type":"object"},"MetaWithRuid":{"description":"Metadata with request tracking.","required":["ruid"],"properties":{"ruid":{"description":"Request Unique ID","type":"string","format":"uuid"}},"type":"object"},"ApiProblem400":{"description":"Request syntax/format error.","allOf":[{"$ref":"#/components/schemas/ApiProblemBase"},{"properties":{"type":{"description":"400 Bad Request","type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"instance":{"type":"string"}},"type":"object"}]},"ApiProblemBase":{"description":"RFC 7807 Problem Details (base schema).","required":["type","title","status","detail","instance"],"properties":{"type":{"description":"RFC 7807 base — DO NOT use directly in endpoints.\nIn endpoints reference ApiProblem400/401/403/409/422/429/500.","type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"instance":{"type":"string"}},"type":"object"},"ApiProblem401":{"description":"Missing authentication or invalid credentials.","allOf":[{"$ref":"#/components/schemas/ApiProblemBase"},{"properties":{"type":{"description":"401 Unauthorized","type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"instance":{"type":"string"}},"type":"object"}]},"ApiProblem404":{"description":"Resource specified in the request was not found.","allOf":[{"$ref":"#/components/schemas/ApiProblemBase"},{"properties":{"type":{"description":"404 Not Found","type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"instance":{"type":"string"}},"type":"object"}]},"ApiProblem422":{"description":"Input data validation error.","allOf":[{"$ref":"#/components/schemas/ApiProblemBase"},{"properties":{"type":{"description":"422 Unprocessable Entity (validation)","type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"instance":{"type":"string"},"errors":{"description":"Map: field name → error message(s)","type":"object","additionalProperties":{"$ref":"#/components/schemas/ErrorValue"}}},"type":"object"}]},"ErrorValue":{"description":"Single error message or list of messages.","oneOf":[{"description":"Error value in error map can be:\n- single string, or\n- array of strings (multiple messages for one field).","type":"string"},{"type":"array","items":{"type":"string"}}]}}},"paths":{"/reservations/{id}":{"patch":{"tags":["reservations"],"summary":"Update reservation","operationId":"updateReservation","parameters":[{"name":"id","in":"path","description":"Reservation ID","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationUpdateRequest"}}}},"responses":{"200":{"description":"Updated successfully","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Reservation"},"meta":{"$ref":"#/components/schemas/MetaWithRuid"}},"type":"object"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiProblem400"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiProblem401"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiProblem404"}}}},"422":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiProblem422"}}}}}}}}}
```

## POST /reservations/{id}/restore

> Restore deleted reservation

```json
{"openapi":"3.0.0","info":{"title":"Public REST API v1 – mobile-calendar.com","version":"1.0.0"},"tags":[{"name":"reservations","description":"Create, read, update, and delete operations for reservations/locks."}],"servers":[{"url":"https://api.mobile-calendar.com/v1/public","description":"Production"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","description":"Pass the token in header: Authorization: Bearer <JWT>","bearerFormat":"JWT","scheme":"bearer"}},"schemas":{"ReservationRestoreResponse":{"description":"Restored reservation or lock response with metadata","required":["data","meta"],"properties":{"data":{"$ref":"#/components/schemas/Reservation"},"meta":{"$ref":"#/components/schemas/MetaWithRuid"}},"type":"object"},"Reservation":{"description":"Universal reservation object - can be lock, single reservation or group reservation based on 'type' field","required":["type","reservationId","addDate","editDate"],"properties":{"type":{"type":"string","enum":["LOCK","SINGLE","GROUP"]},"reservationId":{"type":"integer"},"employeeId":{"type":"integer","nullable":true},"sourceId":{"type":"integer"},"additionalInfo":{"type":"string","nullable":true},"addDate":{"type":"string","format":"date-time"},"editDate":{"type":"string","format":"date-time"},"client":{"oneOf":[{"$ref":"#/components/schemas/Client"}],"nullable":true,"description":"Full client object - present for SINGLE/GROUP types, null for LOCK"},"reservationNo":{"type":"integer","nullable":true},"otaReservationId":{"description":"Reservation number from the OTA channel. Booking.com: `{bookingId}-{roomReservationId}` (main number before the dash; the suffix identifies the room reservation when a client books more than one room). Null for direct reservations.","type":"string","nullable":true},"groupId":{"type":"integer","nullable":true},"arrival":{"description":"Required for SINGLE/GROUP types","type":"string","format":"date","nullable":true},"departure":{"description":"Required for SINGLE/GROUP types","type":"string","format":"date","nullable":true},"roomId":{"type":"integer","nullable":true},"checkIn":{"type":"string","pattern":"^[0-2][0-9]:[0-5][0-9]$","nullable":true},"checkOut":{"type":"string","pattern":"^[0-2][0-9]:[0-5][0-9]$","nullable":true},"adults":{"type":"integer","nullable":true},"children":{"type":"integer","nullable":true},"kidsAge":{"type":"array","items":{"type":"integer"},"nullable":true},"registration":{"type":"string","enum":["CHECKED_IN","CHECKED_OUT","NONE"],"nullable":true},"doorCode":{"type":"string","nullable":true},"prepayment":{"type":"number","format":"float","nullable":true},"prepaymentDeadline":{"type":"string","format":"date","nullable":true},"paymentStatus":{"type":"string","enum":["NO_PAYMENT","PREPAYMENT_PAID","PAID_ALL"],"nullable":true},"paymentType":{"type":"string","enum":["NONE","CASH_PAYMENT","BANK_TRANSFER_PAYMENT","CREDIT_CARD_PAYMENT","VIRTUAL_CARD_PAYMENT","ONLINE_PAYMENT"],"nullable":true},"currency":{"type":"string","nullable":true},"meal":{"type":"string","enum":["OV","BB","HB","FB","AI","DINNER","BREAKFAST_SUPPER","DINNER_SUPPER","SUPPER"],"nullable":true},"adultsPortion":{"type":"integer","nullable":true},"childrenPortion":{"type":"integer","nullable":true},"additionalServices":{"type":"array","items":{"properties":{"additionalServiceId":{"type":"integer"},"status":{"type":"integer","enum":[0,1]},"price":{"type":"number","format":"float"},"quantity":{"type":"integer","nullable":true}},"type":"object"},"nullable":true},"color":{"type":"string","nullable":true},"price":{"type":"number","format":"float","nullable":true},"pricePerRoom":{"type":"number","format":"float","nullable":true},"pricePerMeal":{"type":"number","format":"float","nullable":true},"discount":{"type":"number","format":"float","nullable":true},"discountType":{"description":"0 - percentage, 1 - fixed amount","type":"integer","enum":[0,1],"nullable":true},"rateId":{"type":"integer","nullable":true},"groupConfig":{"description":"Optional configuration for GROUP type only. For SINGLE and LOCK this field is ALWAYS null. For GROUP: can be null or array of objects with roomId (integer), adults (integer), children (integer), and optional kidsAge (array of integers). Must include all rooms from roomId array. Total adults and children must match main reservation values.","nullable":true}},"type":"object"},"Client":{"description":"Client information","required":["clientId","name"],"properties":{"clientId":{"type":"integer"},"forename":{"type":"string"},"name":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string","format":"email"},"companyName":{"type":"string","nullable":true},"taxId":{"type":"string","nullable":true},"personalId":{"type":"string","nullable":true},"idCard":{"type":"string","nullable":true},"clientType":{"type":"string","enum":["NONE","REGULAR","UNWANTED"]},"address":{"type":"string","nullable":true},"comments":{"type":"string","nullable":true},"vehicleRegistrationNumber":{"type":"string","nullable":true},"countryId":{"type":"integer","nullable":true},"lang":{"description":"Language preference (ISO 639-1)","type":"string"},"addDate":{"description":"Client creation date with timezone","type":"string","format":"date-time"},"editDate":{"description":"Last modification date with timezone","type":"string","format":"date-time","nullable":true}},"type":"object"},"MetaWithRuid":{"description":"Metadata with request tracking.","required":["ruid"],"properties":{"ruid":{"description":"Request Unique ID","type":"string","format":"uuid"}},"type":"object"},"ApiProblem401":{"description":"Missing authentication or invalid credentials.","allOf":[{"$ref":"#/components/schemas/ApiProblemBase"},{"properties":{"type":{"description":"401 Unauthorized","type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"instance":{"type":"string"}},"type":"object"}]},"ApiProblemBase":{"description":"RFC 7807 Problem Details (base schema).","required":["type","title","status","detail","instance"],"properties":{"type":{"description":"RFC 7807 base — DO NOT use directly in endpoints.\nIn endpoints reference ApiProblem400/401/403/409/422/429/500.","type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"instance":{"type":"string"}},"type":"object"},"ApiProblem404":{"description":"Resource specified in the request was not found.","allOf":[{"$ref":"#/components/schemas/ApiProblemBase"},{"properties":{"type":{"description":"404 Not Found","type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"instance":{"type":"string"}},"type":"object"}]},"ApiProblem409":{"description":"Conflict with resource state or integrity constraints.","allOf":[{"$ref":"#/components/schemas/ApiProblemBase"},{"properties":{"type":{"description":"409 Conflict","type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"instance":{"type":"string"}},"type":"object"}]}}},"paths":{"/reservations/{id}/restore":{"post":{"tags":["reservations"],"summary":"Restore deleted reservation","operationId":"restoreReservation","parameters":[{"name":"id","in":"path","description":"Reservation ID","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Reservation restored successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationRestoreResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiProblem401"}}}},"404":{"description":"Reservation not found or not deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiProblem404"}}}},"409":{"description":"Conflict - reservation cannot be restored","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiProblem409"}}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://mobile-calendar.gitbook.io/v1/rest-api/reservations.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
