---
title: "Buy Credits"
method: POST
path: "/api/v1/payments/buy-credits"
tags: ["payments"]
---

# Buy Credits

`POST /api/v1/payments/buy-credits`

## Request

- Base URL: `https://api.slidemaster.tw` (the document declares no server; this is the origin it was published from)
- URL: `https://api.slidemaster.tw/api/v1/payments/buy-credits`
- Auth: none declared

建立 Oen 一次性 Credits 購買訂單。

ECPay 的 checkout 已停用；保留 ECPay webhook 僅供歷史訂單相容。

## Headers

- `Authorization` string, nullable

## Request body

- BuyCreditsRequest
  - `pack_id` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/slidemaster/apis/slidemaster-ai-api.md) · [All operations](https://skmtc.dev/slidemaster/apis/slidemaster-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/slidemaster/apis/slidemaster-ai-api/revisions/a964c005977e?raw)
