NATSpayment.order.create创建收款订单

业务服务经本 subject 创建订单;用户侧展示与支付的 HTTP 面由 api_service 镜像。

Request Payload

消息格式:JSON

NameData TypeRequiredDescription
userIdstringYes下单用户 ID
titlestringYes订单标题
businessServicestringYes下单的业务服务标识
amountnumberYes金额
currencystringYes币种,如 USD
descriptionstringNo订单说明
type RequestBody = {
  /** 下单用户 ID */
  userId: string
  /** 订单标题 */
  title: string
  /** 下单的业务服务标识 */
  businessService: string
  /** 金额 */
  amount: number
  /** 币种,如 USD */
  currency: string
  /** 订单说明 */
  description?: string
}
{
  "userId": "01JD8SEGQ0P9N2XK4L7VDH3T6C",
  "title": "Xeegam Cloud · 专业版年付",
  "businessService": "cloud",
  "amount": 288,
  "currency": "USD"
}

Response Payload

回复使用统一信封 {id, code, messages, result},其 result:

NameData TypeRequiredDescription
orderIdstringYes订单 ID
statusstringYes固定为 pending
createdAtstringYes创建时间
type ResponseBody = {
  /** 订单 ID */
  orderId: string
  /** 固定为 pending */
  status: string
  /** 创建时间 */
  createdAt: string
}
{
  "orderId": "01JD8SNZFT8A1B7HB",
  "status": "pending",
  "createdAt": "2026-10-14T15:00:00Z"
}

Response Code

回复使用统一信封 {id, code, messages, result},其 code 字段:

code Meaning Notes
0 成功 创建收款订单

Examples

{
  "userId": "01JD8SEGQ0P9N2XK4L7VDH3T6C",
  "title": "Xeegam Cloud · 专业版年付",
  "businessService": "cloud",
  "amount": 288,
  "currency": "USD"
}
{
  "id": "01JD8SX1PE5C2DZ",
  "code": 0,
  "messages": [],
  "result": {
    "orderId": "01JD8SNZFT8A1B7HB",
    "status": "pending",
    "createdAt": "2026-10-14T15:00:00Z"
  }
}