Post JSON data here to create new properties in an account.
See here for information about using the JSON API.
See getProperty for field definitions.
A propKey can be assigned to a property using this function when creating a property. A propKey cannot be added or changed on an existing property via any API function.
{
"authentication": {
"apiKey": "apiKeyAsSetInAccountSettings"
},
"createProperties": [
{
"name": "New Hotel 1",
"propKey": "YourKeyToUseForTheNewHotel1",
"notifyUrl": "http:\/\/www.newhotel1.com\/api\/newbookings",
"roomTypes": [
{
"name": "Room 1",
"qty": "1",
"minPrice": "0.00"
},
{
"name": "Room 2",
"qty": "3",
"minPrice": "0.00"
}
]
},
{
"name": "New Property 2",
"propKey": "YourKeyToUseForThepropIdNewProperty2",
"notifyUrl": "http:\/\/www.newproperty2.com\/api\/index.php?action=updatebooking",
"roomTypes": [
{
"name": "Camp Site",
"qty": "10",
"minPrice": "0.00"
},
{
"name": "Cabin",
"qty": "2",
"minPrice": "0.00"
}
]
}
]
}