Introduction

API Reference

This page refers to 365 api which is used for accessing data inside 365 Villas application.

 

Accessing the API

The 365 Villas API can be accessed over HTTPS at https://secure.365villas.com/vros/external-booking/.

 

JSON

All data is sent as array and received as JSON

Example POST request array data as following format:

{
  "key": "NTZjMjI4OWM4NzkyYTJkZDM5ZTFlNjNkMzQxZmZmMzRhZjM5YTEzMQ==",
  "pass": "YmMzZjVkMmUyZTVmYWFlZWYxZjkwNzZmZjcyODhkYmU3ZjY3MmZmYg==",
  "propertyId": "21",
  "action": "getinfo",
  "checkin": "2017-05-01",
  "checkout": "2017-05-08",
  "numberofadults": "3"
}

Key and pass can be obtained inside 365 panel. Each account will have different key and pass, this information is very important because it can be used for updating your booking data inside 365 application.

Example response is as the following format:

{
  "status": 0,
  "message": "Success",
  "data": {
    "bookingId": "2287",
    "totalRent": 7050,
    "taxTotal": 1692,
    "serviceTotal": 3765,
    "grandTotal": 12507,
    "qtyofnights": 7,
    "propertyName": "Property",
    "propertyId": "21",
    "checkin": "2017-05-01",
    "checkout": "2017-05-08",
    "createdDate": null,
    "cancellationDate": null,
    "numberofadults": 2,
    "numberofchildren": "1",
    "tax": [
      {
        "name": "Tax 1",
        "amount": 705
      },
      {
        "name": "Tax 4",
        "amount": 987
      }
    ],
    "service": [
      {
        "name": "Service 1",
        "amount": 1500,
        "taxAmount": 150
      },
      {
        "name": "Service 2",
        "amount": 2115,
        "taxAmount": 0
      }
    ]
  }
}