Skip to content
Coursey CreativeSign in

GET /reservations/calendar

/api/store/[slug]/reservations/calendar

Serves the store's reservation bookings as a subscribable iCalendar (.ics) feed, filtered by the statuses configured on the feed and covering 14 days back through 365 days ahead.

Secret feed token in the token query parameterHow authentication works

Path parameters

slugstringrequired

Business (store) slug that identifies the tenant

Query parameters

tokenstringrequired

Calendar feed secret token (minimum 10 characters); identifies and authorizes the feed

Responses

200

The request succeeded.

403

The credential is valid but is not allowed to do this.

404

No such store, or no such record inside it.

503

A service this endpoint depends on is unavailable, usually Stripe.

What comes back

Not JSON on success - returns text/calendar (iCalendar VCALENDAR with one VEVENT per reservation: UID, DTSTART, DTEND, SUMMARY with customer name, DESCRIPTION with email/party size/notes, STATUS CONFIRMED or CANCELLED) with an inline .ics Content-Disposition and 120s public cache. Errors return JSON with an error key (404, 403, or 503 when calendar tables are missing).