訂單列表
請求接口
請求頭部(Headers)
字段名 字段值 操作
+ 添加字段
請求參數(Params)
字段名 字段值 操作
+ 添加字段

* token用於請求頭部(Headers)或請求參數(Params)皆可

響應數據
{ "status": true, "code": 0, "msg": "获取成功", "data": { "page": 1, "total": 9, "totalPage": 1, "results": [ { "sn": "544987000", "member": 18, "payFrom": "balance", "status": "payed", "currency": "USD", "targetId": 31, "addtime": 20260305162723, "genre": "purchase", "totalFee": 6.5, "activationStatus": "activating", "voucherInfo": [], "categoryInfo": { "id": 31, "name": "3HK0", "sellCurrency": "USD", "brandId": 18, "trafficType": 1, "regionCode": "HK", "roamingRegionList": [ "MO" ], "trafficTypeInfo": { "id": 1, "symbol": "unlimited_speed", "name": "用完即停", "description": "全速上网", "speedLimitKbps": 0, "isCutOff": 1, "status": 0 } }, "brandInfo": { "id": 18, "brand": "3国际万能卡" } }, { "sn": "540538000", "member": 18, "payFrom": "balance", "status": "payed", "currency": "USD", "targetId": 31, "addtime": 20260210170728, "genre": "purchase", "totalFee": 6.5, "activationStatus": "activated", "voucherInfo": [ { "orderSn": "540538000", "categoryId": 31, "lpa": "LPA:1$xxx.prod.xxxxxxxxxxx.com$TEST1234567890", "status": 2, "number": "", "verifyCode": "123456", "qrcode": "data:image/png;base64,..." } ], "categoryInfo": {...}, "brandInfo": {...} }, ... ] } }
請求字段說明
字段 類型 說明
token string

訪問信令,用於請求接口的身分驗證

page number

訂單頁碼

pageSize number

每頁數量

genre string

訂單類型(可選),值為:recharge - 充值訂單,purchase - 購買訂單

status string

訂單狀態(可選),值為:payed - 已支付,pending - 未支付,closed - 已關閉, refuse - 已拒絕

響應字段說明
字段 類型 說明
status boolean

【請求狀態】

true - 請求成功

false - 請求失敗

code number

-

msg string

【請求說明】

data array

page - 當前頁碼

total - 總訂單數

totalPage - 總頁數

results - 訂單列表


【訂單詳情信息】

sn - 訂單編號

genre - 訂單類型(可選),值為:recharge - 充值訂單,purchase - 購買訂單

status - 訂單狀態(可選),值為:payed - 已支付,pending - 未支付,closed - 已關閉, refuse - 已拒絕

addtime - 訂單創建時間

member - 用戶ID

payFrom - 支付來源

currency - 貨幣類型

totalFee - 訂單金額

categoryInfo - eSim類型資訊

brandInfo - eSim品牌資訊

activation_status - eSim開通狀態(activated-已開通,activating-開通中)

voucherInfo - eSim憑證資訊(activation_status為activating時為空陣列;activated時為陣列,每個元素為一張eSim卡)


【eSim類型資訊】

id - eSim類型ID

name - eSim名稱

note - eSim說明

hasNumber - 是否有號碼

needRealname - 是否需要登記

renew - 是否可續費

highSpeedFlow - 高速流量(單位:Mb)

trafficType - 流量類型

lifetime - 有效期(單位:天)

sellCurrency - 貨幣類型

esimStore - 庫存數量


【eSim品牌資訊】

id - eSim品牌ID

brand - eSim品牌名稱


【eSim憑證資訊】(voucherInfo不為空時,每個元素包含以下欄位)

orderSn - 訂單編號

categoryId - eSim類型ID

lpa - eSim配置(用於生成二維碼)

status - 卡券狀態(2-已領取)

number - eSim卡號碼

verifyCode - eSim配置驗證碼

qrcode - eSim配置二維碼(base64格式)