---
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の有効期限が切れているなど

## Changes

- **2024-12-07** `6871b704e1ee` — 1 info
  - endpoint added
- **2024-12-04** `5bfc45cb36f6` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/isucon/apis/isu-payment-gateway/changes/payments/post.md)

---

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