# 예약 상세(소유권 확인)

`GET /api/v1/reservations/{reservation_id}` — 토큰 필요 · pdstock:read · 1포인트

재고 예약

## 경로 파라미터

| 이름 | 타입 | 설명 |
| --- | --- | --- |
| `reservation_id` **필수** | string | 예약번호, 예약 목록에서 확인. 본인 채널만(조회/조정). (최대 길이 64) |

## 응답

봉투는 HTTP 상태 코드만으로 판단합니다: 2xx 는 `{ data: … }`(목록은 `page / page_size / has_more` 또는 `total_count` 포함); 4xx / 5xx 는 `{ error: { code, message, hint, request_id, doc_url } }`.

```json
{
  "data": { … }
}
```

성공 응답에는 사람이 읽는 문구가 없습니다 — `code / result / msg` 없음. 프로그램이 분기해야 할 필드는 `error.code` 뿐이며 `message` 는 `Accept-Language` 를 따릅니다.

## 예제

### curl

```bash
curl "https://connect.everugg.net.au/api/v1/reservations/{reservation_id}" \
  -H "Authorization: Bearer $TOKEN"
```

### Python

```python
import requests

r = requests.get(
    "https://connect.everugg.net.au/api/v1/reservations/{reservation_id}",
    headers={"Authorization": "Bearer " + TOKEN},
)
data = r.json()
r.raise_for_status()  # 4xx/5xx: data["error"]["code"] / ["hint"]
```

### Node

```js
const res = await fetch("https://connect.everugg.net.au/api/v1/reservations/{reservation_id}", {
  headers: { Authorization: `Bearer ${TOKEN}` },
})
const data = await res.json()
if (!res.ok) throw new Error(`${data.error?.code}: ${data.error?.message}`)
```

### Java

```java
HttpRequest req = HttpRequest.newBuilder()
    .uri(URI.create("https://connect.everugg.net.au/api/v1/reservations/{reservation_id}"))
    .header("Authorization", "Bearer " + token)
    .GET()
    .build();
HttpResponse<String> res = HttpClient.newHttpClient().send(req, HttpResponse.BodyHandlers.ofString());
```

---
Markdown 원본: https://connect.everugg.net.au/reference/get-api-v1-reservations-reservation-id.md?lang=ko · 웹 페이지: https://connect.everugg.net.au/reference?op=get-api-v1-reservations-reservation-id&lang=ko
