---
title: "Zhifufm Create Order"
method: POST
path: "/api/v1/payment/zhifufm/create"
tags: ["payment"]
---

# Zhifufm Create Order

`POST /api/v1/payment/zhifufm/create`

## Request

- Base URL: `https://api.ticktest.cn` (the document declares no server; this is the origin it was published from)
- URL: `https://api.ticktest.cn/api/v1/payment/zhifufm/create`
- Auth: none declared

创建支付FM订单（微信/支付宝聚合支付）。

需要登录（Bearer Token）。返回 pay_url，前端渲染为二维码。
支付完成后支付FM异步回调 → TickTest 充值到账。

## Request body

- ZFMCreateOrderRequest: 支付FM 创建订单请求
  - `plan_id` string, required: 套餐ID: basic(¥29) / pro(¥99) / enterprise(¥299)
  - `pay_type` string: 支付方式: tloop(微信) / aloop(支付宝)

## Response `200`

Successful Response

- ZFMCreateOrderResponse
  - `success` boolean, required
  - `order_no` string, nullable
  - `platform_order_no` string, nullable
  - `pay_url` string, nullable
  - `amount` number, nullable
  - `plan_name` string, nullable
  - `credits` integer, nullable
  - `message` string, nullable

## Other responses

- `422`: Validation Error

---

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