---
title: "Create Oen Checkout"
method: POST
path: "/api/v1/payments/oen-checkout"
tags: ["payments"]
---

# Create Oen Checkout

`POST /api/v1/payments/oen-checkout`

## 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/oen-checkout`
- Auth: none declared

建立 Oen checkout session，回傳結帳頁 URL 給前端重導。

## Headers

- `Authorization` string, nullable

## Request body

- OenCheckoutRequest
  - `plan_type` string, required: lite_monthly/lite_yearly/basic_monthly/basic_yearly/pro_monthly/pro_yearly
  - `is_subscription` boolean: 定期定額 or 一次性
  - `referral_code` string, nullable: 可選：已驗證的推薦碼；後端重新驗證，不接受前端傳 referrer UID

## 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)
