Reservas

Crear una reserva de hotel

post/api/v1/hotels/{hotel_id}/reservations

Request

  • Base URL
    https://aos.ayenda.co
  • URL
    https://aos.ayenda.co/api/v1/hotels/{hotel_id}/reservations
  • Auth
    HTTP bearer

Request body

Example request

{
  "hotel_reservation": {
    "start_at": "2024-03-15",
    "end_at": "2024-03-18",
    "observations": "Llegada después de las 10pm",
    "rooms": [
      {
        "room_type_id": 501,
        "adults": 2
      }
    ],
    "guest": {
      "full_name": "Juan Pérez",
      "email": "juan@example.com",
      "phone": "3000000000",
      "area_code": 57,
      "iso_code": "co",
      "identification_type": "citizenship_card",
      "identification_number": "123456789"
    }
  }
}

Response

created

Example response

{
  "data": {
    "id": 1001,
    "status": "ok",
    "rate_type": "refundable",
    "start_at": "2024-03-15",
    "end_at": "2024-03-18",
    "adults": 2,
    "total": 250000,
    "created_at": "2024-03-10T14:30:00.000Z",
    "rooms": [
      {
        "id": 55,
        "name": "101",
        "room_type": "Doble"
      }
    ],
    "guest": {
      "full_name": "Juan Pérez",
      "identification_type": "citizenship_card",
      "identification_number": "123456789"
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.