Download OpenAPI specification:
The UNIFIED API documentation
Retrieve bookings based on a specific pcode
| pcode required | number |
| value | string |
| roomTypeId | number |
| status | string Enum: "ready" "tentative" "cancelled" "no-show" |
| offset | number |
| end | string Example: end=YYYY-MM-DD |
| start | string Example: start=YYYY-MM-DD |
| x-api-key required | string API Key for accessing this endpoint |
{- "data": [
- {
- "id": 1,
- "pcode": 123456,
- "groupId": 1,
- "groupPrice": 200,
- "groupQuantity": 2,
- "start": "2025-10-01",
- "end": "2025-10-05",
- "arrivalHour": "14:00",
- "departureHour": "12:00",
- "nights": 4,
- "createdAt": "2025-09-30",
- "resource": "Room 101",
- "price": 100,
- "paid": 100,
- "totalExtras": 20,
- "locked": false,
- "color": "#FF5733",
- "imported": false,
- "board": "nb",
- "policy": "4",
- "room": {
- "id": { },
- "roomTypeId": 1,
- "originalRoomTypeId": 1
}, - "locator": "string",
- "customer": {
- "id": 1,
- "name": "John Doe",
- "surname": "Doe",
- "documentType": "D",
- "documentNumber": "A12345678",
- "sex": "M",
- "address": "123 Main St",
- "city": "New York",
- "postalCode": "10001",
- "country": "ESP",
- "province": "madrid",
- "email": "john.doe@example.com",
- "phone": "+1 (555) 123-4567",
- "language": "es",
- "notes": "VIP customer",
- "relationship": "HJ"
}, - "companyId": 0,
- "notes": {
- "request": "Please prepare the room for a VIP guest",
- "internal": "Guest prefers a quiet room",
- "flat": "No special requests"
}, - "occupancy": {
- "adults": 2,
- "children": 2,
- "babies": 1,
- "total": 4
}, - "groupOccupancy": {
- "adults": 2,
- "children": 2,
- "babies": 1,
- "total": 4
}, - "otaId": 0,
- "checkInStatus": "string",
- "bookingStatus": "string",
- "releaseDateTentative": "2025-10-01",
- "virtualPayment": {
- "type": "directPayment",
- "amount": 100
}, - "paymentStatus": "no-paid",
- "bookingType": {
- "label": "string",
- "type": "bloqued-out-order",
- "typeV2": "blocked-out-order"
}, - "toDos": {
- "data": [
- {
- "id": 1,
- "pcode": 123456,
- "name": "Sample ToDo",
- "active": "2025-01-01",
- "start": "2025-01-01",
- "end": "2025-01-02",
- "bookingId": 1,
- "checked": true
}
], - "pendings": 5,
- "total": 10
}, - "guests": [
- {
- "id": 1,
- "name": "John Doe",
- "surname": "Doe",
- "documentType": "D",
- "documentNumber": "A12345678",
- "sex": "M",
- "address": "123 Main St",
- "city": "New York",
- "postalCode": "10001",
- "country": "ESP",
- "province": "madrid",
- "email": "john.doe@example.com",
- "phone": "+1 (555) 123-4567",
- "language": "es",
- "notes": "VIP customer",
- "relationship": "HJ"
}
], - "isSaleDirect": true,
- "housekeeping": {
- "dateToClean": "2025-10-01",
- "quantityNightsClean": 2,
- "weekDaysClean": {
- "mon": true,
- "tue": true,
- "wed": true,
- "thu": true,
- "fri": true,
- "sat": true,
- "sun": true
}
}
}
], - "total": 10
}Retrieve bookings based on a specific pcode and not groups
| pcode required | number |
| value | string |
| roomTypeId | number |
| status | string Enum: "ready" "tentative" "cancelled" "no-show" |
| offset | number |
| end | string Example: end=YYYY-MM-DD |
| start | string Example: start=YYYY-MM-DD |
| x-api-key required | string API Key for accessing this endpoint |
{- "data": [
- {
- "id": 1,
- "pcode": 123456,
- "groupId": 1,
- "groupPrice": 200,
- "groupQuantity": 2,
- "start": "2025-10-01",
- "end": "2025-10-05",
- "arrivalHour": "14:00",
- "departureHour": "12:00",
- "nights": 4,
- "createdAt": "2025-09-30",
- "resource": "Room 101",
- "price": 100,
- "paid": 100,
- "totalExtras": 20,
- "locked": false,
- "color": "#FF5733",
- "imported": false,
- "board": "nb",
- "policy": "4",
- "room": {
- "id": { },
- "roomTypeId": 1,
- "originalRoomTypeId": 1
}, - "locator": "string",
- "customer": {
- "id": 1,
- "name": "John Doe",
- "surname": "Doe",
- "documentType": "D",
- "documentNumber": "A12345678",
- "sex": "M",
- "address": "123 Main St",
- "city": "New York",
- "postalCode": "10001",
- "country": "ESP",
- "province": "madrid",
- "email": "john.doe@example.com",
- "phone": "+1 (555) 123-4567",
- "language": "es",
- "notes": "VIP customer",
- "relationship": "HJ"
}, - "companyId": 0,
- "notes": {
- "request": "Please prepare the room for a VIP guest",
- "internal": "Guest prefers a quiet room",
- "flat": "No special requests"
}, - "occupancy": {
- "adults": 2,
- "children": 2,
- "babies": 1,
- "total": 4
}, - "groupOccupancy": {
- "adults": 2,
- "children": 2,
- "babies": 1,
- "total": 4
}, - "otaId": 0,
- "checkInStatus": "string",
- "bookingStatus": "string",
- "releaseDateTentative": "2025-10-01",
- "virtualPayment": {
- "type": "directPayment",
- "amount": 100
}, - "paymentStatus": "no-paid",
- "bookingType": {
- "label": "string",
- "type": "bloqued-out-order",
- "typeV2": "blocked-out-order"
}, - "toDos": {
- "data": [
- {
- "id": 1,
- "pcode": 123456,
- "name": "Sample ToDo",
- "active": "2025-01-01",
- "start": "2025-01-01",
- "end": "2025-01-02",
- "bookingId": 1,
- "checked": true
}
], - "pendings": 5,
- "total": 10
}, - "guests": [
- {
- "id": 1,
- "name": "John Doe",
- "surname": "Doe",
- "documentType": "D",
- "documentNumber": "A12345678",
- "sex": "M",
- "address": "123 Main St",
- "city": "New York",
- "postalCode": "10001",
- "country": "ESP",
- "province": "madrid",
- "email": "john.doe@example.com",
- "phone": "+1 (555) 123-4567",
- "language": "es",
- "notes": "VIP customer",
- "relationship": "HJ"
}
], - "isSaleDirect": true,
- "housekeeping": {
- "dateToClean": "2025-10-01",
- "quantityNightsClean": 2,
- "weekDaysClean": {
- "mon": true,
- "tue": true,
- "wed": true,
- "thu": true,
- "fri": true,
- "sat": true,
- "sun": true
}
}
}
], - "total": 10
}Retrieve bookings based on a specific pcode and only groups
| pcode required | number |
| value | string |
| roomTypeId | number |
| status | string Enum: "ready" "tentative" "cancelled" "no-show" |
| offset | number |
| end | string Example: end=YYYY-MM-DD |
| start | string Example: start=YYYY-MM-DD |
| x-api-key required | string API Key for accessing this endpoint |
{- "data": [
- {
- "id": 1,
- "pcode": 123456,
- "groupId": 1,
- "groupPrice": 200,
- "groupQuantity": 2,
- "start": "2025-10-01",
- "end": "2025-10-05",
- "arrivalHour": "14:00",
- "departureHour": "12:00",
- "nights": 4,
- "createdAt": "2025-09-30",
- "resource": "Room 101",
- "price": 100,
- "paid": 100,
- "totalExtras": 20,
- "locked": false,
- "color": "#FF5733",
- "imported": false,
- "board": "nb",
- "policy": "4",
- "room": {
- "id": { },
- "roomTypeId": 1,
- "originalRoomTypeId": 1
}, - "locator": "string",
- "customer": {
- "id": 1,
- "name": "John Doe",
- "surname": "Doe",
- "documentType": "D",
- "documentNumber": "A12345678",
- "sex": "M",
- "address": "123 Main St",
- "city": "New York",
- "postalCode": "10001",
- "country": "ESP",
- "province": "madrid",
- "email": "john.doe@example.com",
- "phone": "+1 (555) 123-4567",
- "language": "es",
- "notes": "VIP customer",
- "relationship": "HJ"
}, - "companyId": 0,
- "notes": {
- "request": "Please prepare the room for a VIP guest",
- "internal": "Guest prefers a quiet room",
- "flat": "No special requests"
}, - "occupancy": {
- "adults": 2,
- "children": 2,
- "babies": 1,
- "total": 4
}, - "groupOccupancy": {
- "adults": 2,
- "children": 2,
- "babies": 1,
- "total": 4
}, - "otaId": 0,
- "checkInStatus": "string",
- "bookingStatus": "string",
- "releaseDateTentative": "2025-10-01",
- "virtualPayment": {
- "type": "directPayment",
- "amount": 100
}, - "paymentStatus": "no-paid",
- "bookingType": {
- "label": "string",
- "type": "bloqued-out-order",
- "typeV2": "blocked-out-order"
}, - "toDos": {
- "data": [
- {
- "id": 1,
- "pcode": 123456,
- "name": "Sample ToDo",
- "active": "2025-01-01",
- "start": "2025-01-01",
- "end": "2025-01-02",
- "bookingId": 1,
- "checked": true
}
], - "pendings": 5,
- "total": 10
}, - "guests": [
- {
- "id": 1,
- "name": "John Doe",
- "surname": "Doe",
- "documentType": "D",
- "documentNumber": "A12345678",
- "sex": "M",
- "address": "123 Main St",
- "city": "New York",
- "postalCode": "10001",
- "country": "ESP",
- "province": "madrid",
- "email": "john.doe@example.com",
- "phone": "+1 (555) 123-4567",
- "language": "es",
- "notes": "VIP customer",
- "relationship": "HJ"
}
], - "isSaleDirect": true,
- "housekeeping": {
- "dateToClean": "2025-10-01",
- "quantityNightsClean": 2,
- "weekDaysClean": {
- "mon": true,
- "tue": true,
- "wed": true,
- "thu": true,
- "fri": true,
- "sat": true,
- "sun": true
}
}
}
], - "total": 10
}Retrieve detailed information about a specific booking
| pcode required | number |
| bookingId required | number |
| x-api-key required | string API Key for accessing this endpoint |
{- "id": 1,
- "pcode": 123456,
- "groupId": 1,
- "groupPrice": 200,
- "groupQuantity": 2,
- "start": "2025-10-01",
- "end": "2025-10-05",
- "arrivalHour": "14:00",
- "departureHour": "12:00",
- "nights": 4,
- "createdAt": "2025-09-30",
- "resource": "Room 101",
- "price": 100,
- "paid": 100,
- "totalExtras": 20,
- "locked": false,
- "color": "#FF5733",
- "imported": false,
- "board": "nb",
- "policy": "4",
- "room": {
- "id": { },
- "roomTypeId": 1,
- "originalRoomTypeId": 1
}, - "locator": "string",
- "customer": {
- "id": 1,
- "name": "John Doe",
- "surname": "Doe",
- "documentType": "D",
- "documentNumber": "A12345678",
- "sex": "M",
- "address": "123 Main St",
- "city": "New York",
- "postalCode": "10001",
- "country": "ESP",
- "province": "madrid",
- "email": "john.doe@example.com",
- "phone": "+1 (555) 123-4567",
- "language": "es",
- "notes": "VIP customer",
- "relationship": "HJ"
}, - "companyId": 0,
- "notes": {
- "request": "Please prepare the room for a VIP guest",
- "internal": "Guest prefers a quiet room",
- "flat": "No special requests"
}, - "occupancy": {
- "adults": 2,
- "children": 2,
- "babies": 1,
- "total": 4
}, - "groupOccupancy": {
- "adults": 2,
- "children": 2,
- "babies": 1,
- "total": 4
}, - "otaId": 0,
- "checkInStatus": "string",
- "bookingStatus": "string",
- "releaseDateTentative": "2025-10-01",
- "virtualPayment": {
- "type": "directPayment",
- "amount": 100
}, - "paymentStatus": "no-paid",
- "bookingType": {
- "label": "string",
- "type": "bloqued-out-order",
- "typeV2": "blocked-out-order"
}, - "toDos": {
- "data": [
- {
- "id": 1,
- "pcode": 123456,
- "name": "Sample ToDo",
- "active": "2025-01-01",
- "start": "2025-01-01",
- "end": "2025-01-02",
- "bookingId": 1,
- "checked": true
}
], - "pendings": 5,
- "total": 10
}, - "guests": [
- {
- "id": 1,
- "name": "John Doe",
- "surname": "Doe",
- "documentType": "D",
- "documentNumber": "A12345678",
- "sex": "M",
- "address": "123 Main St",
- "city": "New York",
- "postalCode": "10001",
- "country": "ESP",
- "province": "madrid",
- "email": "john.doe@example.com",
- "phone": "+1 (555) 123-4567",
- "language": "es",
- "notes": "VIP customer",
- "relationship": "HJ"
}
], - "isSaleDirect": true,
- "housekeeping": {
- "dateToClean": "2025-10-01",
- "quantityNightsClean": 2,
- "weekDaysClean": {
- "mon": true,
- "tue": true,
- "wed": true,
- "thu": true,
- "fri": true,
- "sat": true,
- "sun": true
}
}
}| pcode required | number |
| x-api-key required | string API Key for accessing this endpoint |
required | object Booking dates |
required | object Host information |
required | Array of objects (Room) Rooms information |
required | object Settings information |
required | Array of objects (Product) Products information |
| groupId | number Group ID |
{- "date": {
- "from": "2024-12-20",
- "to": "2024-12-25"
}, - "host": {
- "name": "John",
- "surname": "Doe",
- "phone": "+1 234 567 8900",
- "email": "john.doe@example.com",
- "documentType": "D",
- "documentNumber": "12345678A",
- "city": "Cityville",
- "address": "123 Main St.",
- "postalCode": "12345",
- "country": "Countryland",
- "province": "Provinceland",
- "notes": "Some notes about the booking",
- "customerType": "particular",
- "companyId": 123,
- "isNewCompany": true,
- "company": {
- "name": "Company Ltd.",
- "documentNumber": "123456789",
- "phone": "+1 234 567 8900",
- "address": "123 Main St.",
- "city": "Cityville",
- "postalCode": "12345",
- "country": "Countryland",
- "province": "Provinceland"
}, - "language": "en"
}, - "rooms": [
- {
- "boardId": "hb",
- "politicId": "4",
- "pax": "2",
- "rtcode": "11111",
- "rcode": "A1B2C3",
- "ancillary": {
- "2025-01-01": 100
}, - "ancillaryWithDiscount": {
- "2025-01-01": 80
}, - "promoCode": "PROMO-123",
- "promoCodeManual": {
- "isActive": true,
- "type": "fbn",
- "value": 20.5
}
}
], - "settings": {
- "tentative": {
- "isActive": true,
- "releaseDateTentative": "2025-01-01"
}, - "hidePrices": false,
- "sendEmail": true,
- "locator": "ABC123",
- "otaId": 1,
- "arrivalHour": "15:00",
- "requestNotes": "Please prepare a crib for the baby.",
- "internalNotes": "Internal notes about the booking"
}, - "products": [
- {
- "id": 1,
- "quantity": 1,
- "start": "2024-12-20",
- "end": "2024-12-25",
- "startTime": "14:00",
- "endTime": "16:00",
- "tax": 10.5,
- "price": 100,
- "name": "Sample Product",
- "description": "This is a sample product description.",
- "discountType": "p",
- "discountValue": 15,
- "discountCalculated": 15,
- "productType": "pbd"
}
], - "groupId": 123
}Retrieve payments for a specific booking
| pcode required | number |
| bookingId required | number |
| x-api-key required | string API Key for accessing this endpoint |
[- {
- "id": 101,
- "invoiceId": 450,
- "reference": "PAY-2025-0001",
- "amountAuth": 120.5,
- "amount": 120.5,
- "date": "2025-01-15",
- "paymentType": "Cash",
- "type": "Cash",
- "providerType": "paycomet",
- "notes": "Paid via virtual POS",
- "userId": 12,
- "bookingId": 999,
- "pcode": 123456,
- "createdAt": "2025-01-15T10:22:00Z",
- "prePay": false,
- "prePayChannel": 1,
- "transactionType": "capture",
- "isRefunded": false
}
]Retrieve invoices for a specific booking
| pcode required | number |
| bookingId required | number |
| x-api-key required | string API Key for accessing this endpoint |
[- {
- "id": 1,
- "pcode": 123456,
- "coin": "EUR",
- "date": "2025-01-20",
- "prefix": "INV",
- "prefixAdditional": 2,
- "reference": "INV-2025-00001",
- "total": 450.75,
- "refundId": 99,
- "paymentsIds": [
- 10,
- 11
], - "totalPaid": 300.5,
- "isCredit": false,
- "invoiceWasSent": "2025-01-21T09:22:00Z",
- "type": "invoice",
- "bookingsIds": [
- 1001,
- 1002
], - "items": {
- "1": {
- "bookingId": 1001,
- "tax": 10,
- "total": 100
}, - "2": {
- "bookingId": 1002,
- "tax": 10,
- "total": 200
}
}, - "customerType": "particular",
- "name": "John",
- "surname": "Doe",
- "documentType": "D",
- "documentNumber": "X1234567",
- "phone": "+34 600 123 456",
- "address": "Main Street 123",
- "postalCode": "08001",
- "city": "Barcelona",
- "country": "ESP",
- "province": "Barcelona",
- "observations": "Customer requested digital invoice",
- "signed": true,
- "error": "Invalid tax calculation"
}
]Retrieve proformas for a specific booking
| pcode required | number |
| bookingId required | number |
| x-api-key required | string API Key for accessing this endpoint |
[- {
- "coin": "EUR",
- "date": "2025-02-10",
- "id": 50,
- "prefix": "PRO",
- "reference": "PRO-2025-00045",
- "total": 325,
- "isCredit": false,
- "proformaWasSent": "2025-02-10T12:30:00Z",
- "bookingsIds": [
- 1001,
- 1005
], - "items": {
- "1": {
- "bookingId": 1001,
- "tax": 10,
- "total": 150
}, - "2": {
- "bookingId": 1005,
- "tax": 10,
- "total": 175
}
}, - "customerType": "particular",
- "name": "John",
- "surname": "Doe",
- "documentType": "D",
- "documentNumber": "X9876543",
- "phone": "+34 600 123 456",
- "address": "Main Street 123",
- "postalCode": "08001",
- "city": "Barcelona",
- "country": "ESP",
- "province": "Barcelona",
- "observations": "Client requested summary breakdown."
}
]Retrieve deposits for a specific booking
| pcode required | number |
| bookingId required | number |
| x-api-key required | string API Key for accessing this endpoint |
[- {
- "id": 1,
- "pcode": 123456,
- "bookingId": 789,
- "amount": 150,
- "currency": "EUR",
- "date": "2025-01-10",
- "observations": "Deposit made at check-in",
- "createdAt": "2025-01-10T12:00:00Z",
- "paymentId": null,
- "refundId": null,
- "type": "deposit"
}
]| pcode required | number |
| bookingId required | number |
| x-api-key required | string API Key for accessing this endpoint |
{- "availables": {
- "101": {
- "id": 101,
- "rooms": [
- {
- "id": 1,
- "locked": false
}, - {
- "id": 2,
- "locked": true
}
]
}, - "102": {
- "id": 102,
- "rooms": [
- {
- "id": 3,
- "locked": false
}
]
}
}, - "notAvailables": {
- "201": {
- "id": 201
}, - "202": {
- "id": 202
}
}
}| pcode required | number |
| x-api-key required | string API Key for accessing this endpoint |
{- "101": {
- "id": 101,
- "name": {
- "en": "Single Room",
- "fr": "Chambre Simple"
}, - "description": {
- "en": "A room for one person",
- "fr": "Une chambre pour une personne"
}, - "position": 1,
- "occupancy": 1,
- "color": "#FF5733",
- "splits": {
- "1": {
- "name": "Standard",
- "color": "#33FF57"
}, - "2": {
- "name": "Deluxe",
- "color": "#3357FF"
}
}, - "rooms": {
- "1": {
- "id": 1,
- "name": "101",
- "doorNum": "101",
- "roomTypeId": 101,
- "status": "dirty",
- "floor": 1,
- "position": 1
}, - "2": {
- "id": 2,
- "name": "102",
- "doorNum": "102",
- "roomTypeId": 101,
- "status": "ready",
- "floor": 1,
- "position": 2,
- "locked": true
}
}
}
}| pcode required | number |
| x-api-key required | string API Key for accessing this endpoint |
[- {
- "id": "wh_12345",
- "pcode": 123456,
- "name": "Booking Created Webhook",
- "eventTypes": [
- "bookings-added"
], - "authentication": {
- "status": true,
- "username": "myUser",
- "password": "secretPass123"
}, - "isAvailable": true,
- "createdAt": "2025-01-10T14:35:00.000Z"
}
]| pcode required | number |
| x-api-key required | string API Key for accessing this endpoint |
| name required | string Name |
| url required | string Url |
| eventTypes required | Array of strings Items Value: "bookings-added" List of event types |
required | object Authentication details |
{- "name": "My Webhook",
- "eventTypes": [
- "bookings-added"
], - "authentication": {
- "status": true,
- "username": "myUser",
- "password": "myPassword"
}
}| pcode required | number |
| x-api-key required | string API Key for accessing this endpoint |
| name required | string Name |
| url required | string Url |
| eventTypes required | Array of strings Items Value: "bookings-added" List of event types |
required | object Authentication details |
| id required | string Webhook ID |
{- "name": "My Webhook",
- "eventTypes": [
- "bookings-added"
], - "authentication": {
- "status": true,
- "username": "myUser",
- "password": "myPassword"
}, - "id": "60d21b4667d0d8992e610c85"
}| pcode required | number |
| x-api-key required | string API Key for accessing this endpoint |
| id required | string Webhook ID |
| eventType required | string Value: "bookings-added" Webhook Event Type |
{- "id": "60d21b4667d0d8992e610c85",
- "eventType": "bookings-added"
}{- "pcode": 123456,
- "webhookId": "wh_789",
- "eventType": "bookings-added",
- "payload": {
- "bookingId": 1023,
- "test": true
}, - "statusCode": 200,
- "errorMessage": "Endpoint unreachable",
- "durationMs": 87
}| pcode required | number |
| id required | string |
| x-api-key required | string API Key for accessing this endpoint |
[- {
- "id": "log_00123",
- "pcode": 123456,
- "webhookId": "wh_789",
- "eventType": "bookings-added",
- "payload": {
- "bookingId": 1023,
- "action": "created"
}, - "statusCode": 200,
- "errorMessage": "Timeout after 5000ms",
- "durationMs": 154,
- "createdAt": "2025-01-10T14:35:00.000Z"
}
]