[TOC=2]
## 枚舉變量
### 訂單狀態( status ):
| 可選值 | 說明 |
| --- | --- |
| pending | 申請中,表示用戶下單中 |
| receive | 已受理,表示商家已經接受 |
| finish | 已完成,表示交易完成 |
| cancel | 訂單關閉,附帶關閉原因 |
### 訂單關閉原因( cancel_type ):
| 可選值 | 說明 |
| --- | --- |
| merchant | 商家取消 |
| user | 用戶取消 |
| system | 系統取消,管理取消 |
| normal | 正常 |
## 訂單列表
~~~[api]
get:/order/list
int:current_page=1#當前頁
int:page_number=10#頁碼
<<<
success
<<<
error
~~~
## 處理訂單
~~~[api]
post:/order/process
*int:id=1#訂單id
*string:status=""#處理狀態
<<<
success
<<<
error
~~~
## 關閉訂單
~~~[api]
post:/order/cancel
*int:id=1#訂單id
string:reason=""#關閉原因
<<<
success
<<<
error
~~~