Stable ids and merged records
Which ids stay the same, and what a merged record answers.
Event ids
The id of an event is derived from the showtime, the local day and its position on that day. It stays the same when the showtime is edited, when its days are rebuilt, and when its start time moves within the same day. So you can store it and load the event later with GET /events/{id}.
It changes only when the date moves to another day: that is a different day with a different id, and the old id then answers 404.
If you store event ids, keep showtimeId and dayDate next to them: with those two you can always find the day again (GET /events?… filtered by the event series or venue, or GET /showtimes/{showtimeId}).
Merged records
When two venues, two event series or two festivals turn out to be the same, they are merged. A detail request for the merged-away record answers 301 Moved Permanently with Location set to the surviving record (same path and query, new id):
HTTP/1.1 301 Moved Permanently
Location: /api/v1/locations/c0ffee00-6666-4d7e-8f90-a1b2c3d4e5f6?lang=en
Content-Type: application/problem+jsonThe body is a problem (Errors) with title: "Moved Permanently" and code: "MOVED_PERMANENTLY". Follow it, and replace the stored id. This applies to GET /locations/{id}, GET /event-series/{id}, GET /festivals/{id}, GET /showtimes/{id}, GET /artists/{id} and GET /works/{id}, by id or by slug, and to GET /events/{id}. A survivor outside your scope is not revealed: you get 404. A 301 costs no credits (Credits); the request for the surviving record is charged as usual. Lists never contain merged-away records.
Showtimes and events. When two showtimes turn out to be the same date, one is merged into the other. The merged-away showtime answers 301 to the surviving showtime. Its events answer 301 to the event of the surviving showtime on the same day and in the same position on that day (the surviving showtime's events have their own ids). If that day does not exist on the surviving showtime, or the merged-away showtime's days are no longer on record, the event id answers 404; GET /changes (Removals: the changes feed) tells you which showtime the events now belong to.