NATSpayment.order.get读取订单
Try it 面板需要启用 JavaScript。
返回订单详情。
Request Payload
消息格式:JSON
| Name | Data Type | Required | Description |
|---|---|---|---|
| orderId | string | Yes | 订单 ID |
type RequestBody = {
/** 订单 ID */
orderId: string
}{
"orderId": "01JD8SNZFT8A1B7HB"
}Response Payload
回复使用统一信封 {id, code, messages, result},其 result:
| Name | Data Type | Required | Description |
|---|---|---|---|
| orderId | string | Yes | 订单 ID |
| userId | string | Yes | 用户 ID |
| title | string | Yes | 订单标题 |
| businessService | string | Yes | 业务服务 |
| amount | number | Yes | 金额 |
| currency | string | Yes | 币种 |
| status | string | Yes | pending / paid / canceled / refunded |
| paidAt | string | No | 支付时间 |
| createdAt | string | Yes | 创建时间 |
type ResponseBody = {
/** 订单 ID */
orderId: string
/** 用户 ID */
userId: string
/** 订单标题 */
title: string
/** 业务服务 */
businessService: string
/** 金额 */
amount: number
/** 币种 */
currency: string
/** pending / paid / canceled / refunded */
status: string
/** 支付时间 */
paidAt?: string
/** 创建时间 */
createdAt: string
}{
"orderId": "01JD8SNZFT8A1B7HB",
"userId": "01JD8SEGQ0P9N2XK4L7VDH3T6C",
"title": "Xeegam Cloud · 专业版年付",
"businessService": "cloud",
"amount": 288,
"currency": "USD",
"status": "paid",
"paidAt": "2026-10-14T15:03:12Z",
"createdAt": "2026-10-14T15:00:00Z"
}Response Code
回复使用统一信封 {id, code, messages, result},其 code 字段:
| code | Meaning | Notes |
|---|---|---|
| 0 | 成功 | 读取订单 |
Examples
{ "orderId": "01JD8SNZFT8A1B7HB" }
{
"id": "01JD8SX2QF6D3EA",
"code": 0,
"messages": [],
"result": {
"orderId": "01JD8SNZFT8A1B7HB",
"userId": "01JD8SEGQ0P9N2XK4L7VDH3T6C",
"title": "Xeegam Cloud · 专业版年付",
"businessService": "cloud",
"amount": 288,
"currency": "USD",
"status": "paid",
"paidAt": "2026-10-14T15:03:12Z",
"createdAt": "2026-10-14T15:00:00Z"
}
}