リファラル祖先(招待元チェーン)
GET
/events/:eventId/entries/:entryId/referral-ancestors指定参加登録から招待元を上方向に辿り、対象に近い順で返します。呼び出しユーザーが当該イベントの確定参加者(CONFIRMED / CHECKED_IN)でない場合は 403 です。
| 認証 | 要ログイン |
|---|
パスパラメータ
eventIdstring必須イベント ID
entryIdstring必須対象の参加登録 ID
クエリパラメータ
generationsnumber取得する祖先の最大段数。デフォルト 10(1〜50 にクランプ)
レスポンス
| フィールド | 型 | 説明 |
|---|---|---|
entryId | string | 対象の参加登録 ID |
entry | object | 対象の参加登録ノード(軽量 DTO) |
ancestors | object[] | 対象に近い順の祖先配列(無効 state の親は disabled: true / user: null) |
truncated | boolean | 無効 state・親欠損・段数上限のいずれかで打ち切った場合 true |
リクエスト
curl https://api.4s.link/events/EVENT_ID/entries/:entryId/referral-ancestors \-H "Authorization: Bearer 4s_at_..."
レスポンス例
{"entryId": "770fa622-...","entry": {"id": "770fa622-...","invitedByEntryId": "660e9511-...","invitationGeneration": 2,"invitationRootEntryId": "550e8400-...","user": { "id": "2b3c4d5e-...", "slug": "carol-lee", "firstName": "Carol", "lastName": "Lee" },"ticketName": "招待参加"},"ancestors": [{"id": "660e9511-...","invitedByEntryId": "550e8400-...","invitationGeneration": 1,"invitationRootEntryId": "550e8400-...","user": { "id": "1a2b3c4d-...", "slug": "bob-sato", "firstName": "Bob", "lastName": "Sato" },"ticketName": "招待参加"}],"truncated": false}