---
title: "Create Order"
method: POST
path: "/billing/orders"
---

# Create Order

`POST /billing/orders`

## Request

- Base URL: `https://aihcc.cloud` (the document declares no server; this is the origin it was published from)
- URL: `https://aihcc.cloud/billing/orders`
- Auth: none declared

创建支付订单。返回支付链接或二维码。

下单前做购买资格校验（billing.plans.evaluate_purchase）：主套餐同款在有效期内再买、
或降档购买一律 409 拦截并返回到期日；流量包恒放行，CUA 加购包在有效期内拦截。
激活路径不再校验（钱已收），这里是唯一拦截点，保证用户在付款前就能看到结果。

## Request body

- CreateOrderRequest
  - `plan` string, required
  - `provider` 'qrcode' | 'wxpay' | 'alipay'
  - `period` string

## Response `200`

Successful Response

- OrderResponse
  - `order_id` integer, required
  - `plan` string, required
  - `amount` integer, required
  - `provider` string, required
  - `status` string, required
  - `pay_url` string
  - `qr_code` string

## Other responses

- `422`: Validation Error

---

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