Skip to main content
Accommodation records are the stays booked for a tour — hotels, rentals, and residences. Accommodation IDs are integers. All endpoints require the standard authentication headers.

List accommodation

Returns the stays for a tour. Scope: accommodation.read Example
Path parameters Response data — array of stays:

Get one stay

Returns a single stay in full — including its custom fields and contact details. List accommodation returns a leaner projection, so use this when you need the whole record. Scope: accommodation.read Path parameters Response data — the list fields, plus:
Note the key names differ from venues: stays use customFields, emails, phonenumbers (one word) and urls, where venues use venueCustomFields, venueEmails, venuePhoneNumbers and venueUrls. All are read-only here — manage them through Custom Fields and Contacts, and rooms through Rooms.

Create accommodation

Scope: accommodation.write
Accommodation uses camelCase ID fields (tourId, dayId) — unlike most resources, which use snake_case (tour_id, day_id). See Field naming.
Body

Visibility

Stays use the same visibility model as schedule itemsvisibilityList in camelCase, as on schedule items.
Restricting a stay’s audience adds every tour admin unless you send explicitVisibility: true.When you name a restricted audience via visibilityList and/or invitesVisibilityList, Daysync assumes an older client that treats admin access as implicit and merges the tour’s current admin list into the audience you sent. Send explicitVisibility: true in the same request to mean the list literally:
This applies to create and edit alike, including an edit that only narrows an existing stay’s audience. Do not send it with isAdminsOnly: true — that flag is implemented by the same merge, so opting out would store an empty audience. Full explanation in Schedule → Visibility.

Date & time format

checkInDate, checkOutDate, checkInTime, and checkOutTime are numeric epoch milliseconds, not ISO strings. Confirmed against the live API. The stored check-in / check-out instant comes from checkInTime / checkOutTime — each is the full epoch-millisecond timestamp of the moment. checkInDate / checkOutDate are the date-only epoch-ms (midnight UTC) and do not affect the stored instant (they are used for date grouping only).
A previous version of this page described checkInTime / checkOutTime as “minutes from midnight” — that is incorrect. Passing minutes (e.g. 840) stores the time as 840 milliseconds past the Unix epoch (i.e. 1970), not 14:00. Always pass the full epoch-millisecond instant in checkInTime / checkOutTime.
Images: image_url accepts a publicly reachable image URL. The API fetches it server-side and re-hosts it in Daysync storage — the image returned by GET is a Daysync S3 URL, not the URL you sent. If the URL can’t be fetched, the create/edit fails with 400 { "error": "400", "message": "fetch failed" }, so the source must be reachable (mind spaces/encoding in the URL). Known quirk: the re-hosted filename currently comes out as undefined_<timestamp>.jpeg, but the image is stored and served correctly. (This differs from Venues, whose image field is not fetched.)
Response data: { "id": 318, "name": "…" }.

Edit accommodation

Scope: accommodation.write Path parameters Body — the edit input is a different, narrower set than create. Fields not listed below cannot be changed via edit.
Ignored on update: tourId, subtitle, dayId, and daysList are accepted in the request body but have no effect — sending them will not raise an error, but the values are silently ignored. They are set at creation time only and cannot be changed afterwards. The accommodationId is taken from the URL path — do not send it in the request body.
Response data: { "id": 318, "name": "…" }.

Delete accommodation

Scope: accommodation.write Path parameters Response data: none.

Location structure

The formatted_address field on create and edit accepts a Google Places–style location object. The geometry.location and geometry.viewport sub-fields are required for the address to be valid.

See also: Tours, Venues.