---
title: "決済を行う"
method: POST
path: "/payments"
---

# 決済を行う

`POST /payments`

## Headers

- `Idempotency-Key` string
- `Authorization` string

## Request body

- object
  - `amount` integer, required — 決済額

## Response `204`

決済を完了した

## Other responses

- `400` — 決済トークンが存在しない、不正な決済額など
- `409` — 同じkeyでの決済が実行中である
- `422` — keyの有効期限が切れているなど

---

[API](https://skmtc.net/isucon/apis/isu-payment-gateway.md) · [All operations](https://skmtc.net/isucon/apis/isu-payment-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/isucon/isu-payment-gateway/versions/8312f7523c3e/schema)
