Property Synchronisation

Pull property profile data from Allbookers into your local database. This is a manual, admin-only process — it does not run automatically.

Live data is never cached

Rooms, availability, and prices are always fetched from the API at search time. Only static profile data (names, IDs) is stored locally via this sync process.

1

Get Property List

Affiliate → Allbookers API

1b

Identify New Properties

Compare with local DB

2

Request Full Data

Affiliate → Allbookers API

3

Receive Push

Allbookers → Affiliate

Step 1 — Get the Property List

GET {allbookers.api-url}/api/propertySync/initApi
AttributeValue
DirectionAffiliate → Allbookers API
MethodGET
RequestNo body required

Response — Array of InitAPIDTO

Response (200 OK)
[
  { "propertyId": 101, "propertyName": "Hotel Tirana International" },
  { "propertyId": 102, "propertyName": "Rogner Hotel Tirana" }
]
FieldTypeDescription
propertyIdLongAllbookers unique property identifier
propertyNameStringProperty display name

Step 1b — Identify Which Properties to Import

Before requesting full data, compare the list against your local database:

CaseAction
New propertyExists in Allbookers but not locally. Should be imported.
ID conflictSame property ID exists locally under a different name. Requires manual review.
Name conflictSame property name exists locally with a different ID. Requires manual review.
Conflicts require manual review

Only properties with no conflicts should be passed to Step 2. Conflicted properties must be resolved by an admin before importing.

Step 2 — Request Full Data

POST {allbookers.api-url}/api/propertySync/apiProperties
AttributeValue
BodyArray of Long (property IDs to import)
ResponseHTTP 200, no body. Allbookers will then push full property data (Step 3).
Request Body
[101, 102]

Step 3 — Allbookers Pushes Full Property Data

After Step 2, Allbookers will call your endpoint with the full property data.

POST {affiliate-base-url}/api/savePropertyDtoList (your endpoint — Allbookers calls you)
AttributeValue
DirectionAllbookers API → Affiliate
BodyArray of APIPropertyBasicDTO
SuccessHTTP 200
ErrorHTTP 400

APIPropertyBasicDTO — Schema

FieldTypeDescription
idLongProperty ID
propertyNameStringDisplay name
hotelStatusIdIntegerApproval status
hotelTypeIdIntegerProperty type
addressAPIAddressDTOAddress details
propertyUserDTOAPIPropertyUserDTOOwner account. Store as received — no action required on individual fields.
starsNoIntegerStar rating (1–5)
countryNameStringCountry name
logoPathStringLogo image path
firstNameStringOwner first name
lastNameStringOwner last name