---
title: "椅子向け通知エンドポイント"
method: GET
path: "/chair/notification"
tags: ["chair"]
---

# 椅子向け通知エンドポイント

`GET /chair/notification`

自分に割り当てられた最新のライドの状態を取得・通知する

## Response `200`

OK

- object — 自分に割り当てられたライドが１つでも存在する場合は最新のものをdataで返す。過去にライドが１つも割り当てられていない場合、dataは`null`または`undefined`
  - `data` ChairNotificationData — 椅子向け通知データ
    - `ride_id` string, required — ライドID
    - `user` User, required — 簡易ユーザー情報
      - `id` string, required — ユーザーID
      - `name` string, required — ユーザー名
    - `pickup_coordinate` Coordinate, required — 座標情報
      - `latitude` integer, required — 経度
      - `longitude` integer, required — 緯度
    - `destination_coordinate` Coordinate, required — 座標情報
      - `latitude` integer, required — 経度
      - `longitude` integer, required — 緯度
    - `status` 'MATCHING' | 'ENROUTE' | 'PICKUP' | 'CARRYING' | 'ARRIVED' | 'COMPLETED', required — ライドのステータス - MATCHING: サービス上でマッチング処理を行なっていて椅子が確定していない - ENROUTE: 椅子が確定し、乗車位置に向かっている - PICKUP: 椅子が乗車位置に到着して、ユーザーの乗車を待機している - CARRYING: ユーザーが乗車し、椅子が目的地に向かっている - ARRIVED: 目的地に到着した - COMPLETED: ユーザーの決済・椅子評価が完了した
  - `retry_after_ms` integer — 次回の通知ポーリングまでの待機時間 (ミリ秒単位)

---

[API](https://skmtc.dev/isucon/apis/isuride-api-specification.md) · [All operations](https://skmtc.dev/isucon/apis/isuride-api-specification/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/isucon/isuride-api-specification/revisions/9ded46d2bf61/schema)
