Short stay

Read a channel’s calendar and set it against the bookings held

Fetches the connection’s iCal export, or reads a feed sent as ical, and reconciles it against this unit. A stay the feed shows and we have no record of is written held rather than sold: a calendar carries dates and rarely money, so it blocks the nights and earns nothing until somebody prices it. Where the feed’s descriptions state a payout, a model is asked once per template where it sits, the answer is proved against those descriptions, and each stay is then priced from its own description only while it still reads as that template. A stay we already hold has the channel’s reference filled in. Nothing is cancelled and no overlap is resolved here; both raise a task instead.

post/api/v1/short-stay/connections/{id}/sync

Request

  • Base URL: http://localhost:5180
  • URL: http://localhost:5180/api/v1/short-stay/connections/{id}/sync
  • Auth: API key in cookie better-auth.session_token

Path parameters

idstring required

Request body

unitIdstring

Required when the connection covers more than one unit: a calendar feed is one listing, and which listing is not ours to guess.

icalstring

The feed itself, for a channel whose export URL we do not hold. Given this, nothing is fetched.

Response

What the feed said, and what was written.

okunknown required

Changes

No recorded changes to this operation across all 1 revision of this API.