---
title: "Create Payment"
method: POST
path: "/payments/create"
tags: ["Payments"]
---

# Create Payment

`POST /payments/create`

创建新的支付订单（仅限注册用户，允许 API KEY 过期后续费）

## Request body

- CreatePaymentRequest
  - `amount` number, required — 支付金额（人民币）
  - `payment_method` 'alipay' | 'wxpay' — 支付方式 (alipay 或 wxpay)
  - `method` 'api' | 'web', nullable — 支付接口类型 (api 或 web)
  - `return_url` string, nullable — 支付后的自定义返回URL

## Response `200`

Successful Response

- PaymentResponse
  - `order_no` string, required
  - `payment_url` string, nullable
  - `qr_code` string, nullable
  - `qr_img` string, nullable
  - `status` string, required
  - `message` string, nullable
  - `api_key` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/deepshare/apis/markdown-to-docx-converter.md) · [All operations](https://skmtc.dev/deepshare/apis/markdown-to-docx-converter/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/deepshare/markdown-to-docx-converter/revisions/3c4ed7b0427a/schema)
