---
search:
  tags:
    - 購入者
    - POST
seo:
  description: >-
    60秒・単回コードを購入者JWTへ交換する. Reference for the POST /customer/handoff/exchange
    endpoint in the Cozeni 外部 API.
sidebar:
  label: 60秒・単回コードを購入者JWTへ交換する
  badge: POST
title: 60秒・単回コードを購入者JWTへ交換する
type: openapi-operation
---
`POST /customer/handoff/exchange`

**Request body** (`application/json`, required)

- `code` (string, required)

Request body example:

```json
{
  "code": "string"
}
```

**Responses**

- `200` — 購入者JWT。自サイトのHttpOnly Cookieへ保存する。
- `400` — invalid\_input / invalid\_code。不正・期限切れ・消費済みを区別しない。
- `429` — rate\_limited。呼び出し回数の上限を超えた。Retry-After 秒待ってから新しい入場でやり直す。
- `503` — unavailable。交換の成否が不明なら新しいOTP入場から再開する。

Response example, 200:

```json
{
  "token": "string"
}
```
