---
title: "Usdt Package Create"
method: POST
path: "/api/v1/payment/usdt/package/create"
tags: ["payment"]
---

# Usdt Package Create

`POST /api/v1/payment/usdt/package/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/usdt/package/create`
- Auth: none declared

创建 USDT 套餐支付订单。

流程:
  1. 查 USDT_PLANS[plan_id] → cny_amount + credits
  2. 生成商户订单号: USDT_PKG_{plan_id}_{timestamp}_{user_hash}
  3. 调用 usdt_service.create_usdt_order()
  4. 写入 payment_orders (payment_method='usdt', order_type='package', symbol=plan_id)
  5. 返回收款地址 + USDT 金额

## Request body

- USDTPackageRequest: USDT 套餐支付请求
  - `plan_id` string, required: 套餐ID: basic/pro/enterprise

## Response `200`

Successful Response

- USDTOrderResponse: USDT 订单创建响应
  - `success` boolean, required
  - `order_id` string, nullable
  - `trade_id` string, nullable
  - `receive_address` string, nullable
  - `actual_amount` number, nullable
  - `cny_amount` number, nullable
  - `expiration_time` integer, nullable
  - `payment_url` string, 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)
