POST method to create a hotel data
Name | Description |
---|---|
account_id required | Your account unique identifier to access API. |
uuid required | Unique identifier for hotel |
name required | Hotel Name |
items required | Array with data for different languages |
items[language] required | Language of the hotel in ISO-2 format, Example: ES |
items[data] required | JSON with custom fields for hotel data |
items[data][Your custom hotel data field] | You can create a custom field hotel data and use it within your API request: 'https://www.cendyncrm.com/settings/hotel_data_custom_fields' |
POST
/v2/account/:account_id/hotel_data
Accept: application/json
Authorization: Token token={account.secret}
Content-Type: application/json
{
"uuid": "hotel_2",
"name": "Hotel 2",
"items": [
{
"language": "ES",
"data": {
"hotel_name": "Nombre del hotel"
}
},
{
"language": "DE",
"data": {
"hotel_name": "Name des Hotels"
}
}
]
}
201
{
"hotel_data": {
"name": "Hotel 2",
"uuid": "hotel_2",
"hotel_name": {
"ES": "Nombre del hotel",
"DE": "Name des Hotels"
}
}
}