---
title: "创建支付订单"
method: POST
path: "/api/payment/create"
tags: ["Payment"]
---

# 创建支付订单

`POST /api/payment/create`

## Request

- Base URL: `https://roboparts.cc`
- URL: `https://roboparts.cc/api/payment/create`
- Auth: none declared

通过虎皮椒支付网关创建积分充值订单。支持3个套餐：Starter(¥9/500积分)、Pro(¥29/2000积分)、Lifetime(¥199/9999积分)。

## Request body

- object
  - `plan` 'starter' | 'pro' | 'lifetime', required
  - `api_key` string
  - `email` string

## Response `200`

订单创建成功，返回支付URL和二维码

- object
  - `order_id` string
  - `pay_url` string
  - `qr_code` string

---

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