---
title: "Alipay Credit Precreate"
method: POST
path: "/api/v1/payment/alipay/credit/precreate"
tags: ["payment"]
---

# Alipay Credit Precreate

`POST /api/v1/payment/alipay/credit/precreate`

## 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/alipay/credit/precreate`
- Auth: none declared

信用套餐扫码支付（当面付）— 直接返回二维码 URL。

## Request body

- AlipayCreditCreateRequest: 支付宝信用套餐创建订单请求
  - `plan_id` string, required: 套餐ID: basic(29元) / pro(99元) / enterprise(299元)

## Response `200`

Successful Response

- PrecreateResponse
  - `success` boolean, required
  - `out_trade_no` string, nullable
  - `qr_code` string, nullable: 支付宝当面付二维码 URL，可直接渲染为 <img> 标签
  - `amount` string, 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)
