SPTECH-562: Document GET /{version}/availabilities/status/changes (availability delta feed) - #123
Merged
Merged
Conversation
Cursor-paginated feed of sold-out / back-in-stock availability changes. Mirrors getyourguide/public-partner-api#2038. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
pstarritt-gyg
marked this pull request as draft
September 2, 2026 11:04
Each delta carries its cursor; page returns first_cursor, last_cursor and page_size. state removed (derive from vacancies). limit 1..5000, default 1000. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
_metadata is a feed-specific CursorPageMetadata (first_cursor, last_cursor, page_size, has_next_page) instead of the shared MetaData; cursors are opaque base64 strings, one per delta. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The 4XX response here lives at components/responses/4XX (the internal repo names it ErrorResponse), which broke spec validation in CI. CursorPageMetadata moves to the shared metadata.yaml with element-generic wording for reuse by future cursor APIs. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
pstarritt-gyg
marked this pull request as ready for review
September 2, 2026 12:38
arihantgupta-28
approved these changes
Sep 17, 2026
…ill note Match the internal public-partner-api spec: - Rename delta field update_timestamp -> update_time (required list + property) to match the availability v4 export; document last-write-wins precedence. - Document the master-bill restriction (403 without the privilege) on the operation description. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Replace the old placeholder cursor examples with the realistic `v1:<timestamp>,<id>` base64 tokens used in the internal public-partner-api spec (request/delta cursor, and CursorPageMetadata start_cursor/end_cursor). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
arihantgupta-28
approved these changes
Sep 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Documents the new cursor-paginated availability delta endpoint:
GET /{version}/availabilities/status/changes?cursor=<opaque>&limit=<1..5000>This should only be merged when we want to expose it to all partners.
Returns slots whose bookability changed (sold out / back in stock) since the given cursor, ordered by feed position.
_metadatais a feed-specificCursorPageMetadata—start_cursor,end_cursor,page_size,has_next_page. Each delta carries its own opaque base64cursor, plustour_id,option_id, slotdate_time(UTC),vacancies(0= sold out;null= in stock, exact count unknown), andupdate_time(UTC, microsecond precision, for last-write-wins application — matches theupdate_timeof the availability v4 export). Partners page withend_cursorwhilehas_next_pageis true.The endpoint is limited to master-bill partners; a token without the master-bill privilege gets
403.Implementation PR (internal): getyourguide/public-partner-api#2038. Field rename to
update_timesynced from getyourguide/public-partner-api#2098 so this public spec matches the current API structure. The endpoint ships dark (empty pages) until the data path and the dedicated bulk instances land, so docs publication should be coordinated with the rollout.🤖 Generated with Claude Code